body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #3498db, #2c3e50) no-repeat center center fixed;
}

.nav-bar {
    height: 40px;
    /* background-color: #1cdd15; */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    color: white;
}

.nav-bar button {
    background-color: transparent;
    border: none;
    font-size: 1.2rem;
    color: white;
    height: 38px;
    border: 2px solid transparent;
}

.nav-bar h2 {
    font-size: 2.5rem;
    width: 90%;
}

.nav-bar button:hover {
    cursor: pointer;
    /* background-color: #3498db; */
    border: 2px solid white;
}

#name:hover {
    background-color: #3498db;
    /* font-size: 2.5rem; */
}

main {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84vh;
    margin: 0;
}
.main-box {
    justify-content: space-evenly;
    align-items: center;
}

.img-box {
    justify-content: center;
    align-items: center;
    height: 50px;
}


.img-box img {
    margin-left: 32%;
    left: 50%;
    height: 100px;
}
.container {
    
    text-align: center;
    background: linear-gradient(135deg, #3498db, #6a89cc);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* img {
    margin-left: auto;
    margin-right: auto;
    width: 20%;
    border-radius: 50%;
} */

.guess-box {
    
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.guess-box img {
    width: 15%;
}

main button {
    padding: 14px 28px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 18px;
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

main button:hover {
    background-color: #219e54;
}



input {
    padding: 14px;
    font-size: 18px;
    margin-top: 10px;
    width: 80px;
    border: 2px solid #3498db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    color: #333; 
    background-color: #fff; 
}
/* Remove arrows on number input */
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input:focus {
    border-color: #27ae60;
}

select {
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
    color: #333;
    background-color: #1d55cd;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: linear-gradient(to right, #bfdb34, #1cdd15) no-repeat center center fixed;
    font-family: d;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #000000;
    width: 80%;
    text-align: center;
    font-size: 20px;
}

.modal-content p {
    margin: 10px 0;
}

#back_button {
    left: 1120px
    ;
}

#message {
    margin-top: 20px;
    font-size: 20px;
    color: #333;
}

#attempts, #score {
    font-weight: bold;
    font-size: 20px;
    margin-top: 10px;
    color: #333;
}

#minRange, #maxRange {
    font-weight: bold;
    color: #333;
}

footer {
    height: 50px;
    background: linear-gradient(135deg, #3498db, #6a89cc);
    text-align: center;
    color: white;
    font-size: 30px;
}

@media only screen and (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .nav-bar h2 {
        margin-top: 10%;
        font-size: 1.5rem;
    }

    button {
        padding: 12px 24px;
        font-size: 16px;
    }

    input {
        width: 60px;
    }

    select {
        padding: 10px;
        font-size: 16px;
    }

    #message, #attempts, #score, #minRange, #maxRange {
        font-size: 18px;
    }
}
