* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    min-height: 100vh;
}

#logo_status {
    max-width: 350px;
    width: 90%;
    margin-bottom: 30px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 100vh;
    text-align: center;
}

#game_intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px 0 10px;
    width: 100%;
}

footer img {
    max-width: 400px;
    width: 90%;
    height: auto;
    object-fit: contain;
}

h1, h2 {
    color: #3e85c7;
    font-size: 30px;
}

.subtitulo {
    color: #3e85c7;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.martelo {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

#img-martelo {
    width: 100%;
    height: auto;
}

.termos {
    font-size: 12px;
    color: #5c65e0;
    max-width: 250px;
    margin-bottom: 15px;
}

#Game {
    width: auto;
    max-width: 400px;
}

/* Popup (end-game) styles */
.popup {
    width: 340px;
    min-height: 300px;
    background: #ffffff;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border: 4px solid #3e85c7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.popup-title {
    font-size: 22px;
    color: #3e85c7;
    margin: 0;
}

.popup-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.popup-option {
    border: 2px solid #3e85c7;
    background: #fff;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 120ms ease, transform 120ms ease;
}

.popup-option img,
.popup-option-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.popup-option:hover {transform: translateY(-4px);}

.selected-option {
    border-color: #f2c200 !important;
    box-shadow: 0 0 0 6px rgba(242,194,0,0.28);
}

.popup-confirm {
    margin-top: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: #3e85c7;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.popup-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 12px; */
    justify-items: center;
    /* align-items: center; */
    max-width: 500px;
    margin: 0 auto;
    padding-top: 30px;
}

.game-grid > div {
    display: flex;
    justify-content: center;
    border: solid 1px #3e85c7;
    margin: 5px;
}

.game-grid img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.btn {
    width: 220px;
    padding: 12px;
    border: none;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none !important;
}

.left {text-align: left;}
.center {text-align: center;}

div#4 {top: 30%;}
div#5 {top: 30%;}
div#6 {top: 30%;}

.participar {
    background-color: #3e85c7;
    color: white;
}


@media (max-width: 500px) {
    h1 {font-size: 24px;}
    .btn {width: 180px;}

    .martelo {
        width: 120px;
        height: 120px;
    }

    .game-grid div img {
        width: 80%;
        height: auto;
    }
}
