*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;

    background-image: url("img/imagem 8.jpg");
    background-size: cover;        /* preenche a tela inteira */
    background-repeat: no-repeat;  /* não repete a imagem */
    background-position: center;   /* centraliza */
    min-height: 100vh;
}

/* Centraliza tudo */
main {
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Caixa do semáforo */
main > div:first-child {
    background-color: #111;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

/* Imagem */
#img {
    width: 120px;
    display: block;
}

/* Área dos botões */
#buttons {
    display: flex;
    gap: 15px;
}

/* Botões */
.button {
    width: 110px;
    padding: 10px 0;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Cores dos botões */
#red {
    background-color: #e53935;
}

#yellow {
    background-color: #fbc02d;
    color: #222;
}

#green {
    background-color: #43a047;
}

#automatic {
    background-color: #1e88e5;
}

/* Efeito hover */
.button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}



