/* =========================
   PHONE RESPONSIVE CSS
   flag_guess_phone.css
   ========================= */

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #eaeaea;
    margin: 0;
    padding: 15px;
}

.game-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Flag image */
img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Answer buttons */
.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.option {
    width: 90%;
    max-width: 320px;
    background-color: white;
    color: black;
    border: none;
    padding: 16px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s ease;
}

.option:hover {
    background-color: #2196F3;
    color: white;
}

/* Result text */
.result {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* =========================
   END SCREEN
   ========================= */

#black-square {
    position: relative;
    width: 90%;
    max-width: 350px;
    height: 350px;
    background-color: black;
    border-radius: 15px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Correct guesses text */
#correct-count {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    color: white;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    z-index: 2;
}

/* Home button */
#go-home-button {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 260px;
    height: 60px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

#go-home-button:hover {
    background-color: #38833c;
}

/* =========================
   SMALLER PHONES
   ========================= */

@media (max-width: 480px) {

    h1 {
        font-size: 26px;
    }

    p {
        font-size: 18px;
    }

    .option {
        font-size: 18px;
        padding: 14px;
    }

    .result {
        font-size: 20px;
    }

    #correct-count {
        font-size: 32px;
    }

    #go-home-button {
        font-size: 20px;
        height: 55px;
    }
}