* {
    box-sizing: border-box;
}


body {
    margin:0;
    font-family: Arial, sans-serif;
    background:#f2f4f7;
    color:#222;
}


header {
    text-align:center;
    padding:20px;
    background:#1d3557;
    color:white;
}


main {
    max-width:900px;
    margin:auto;
    padding:20px;
}


.menu {
    display:flex;
    gap:10px;
    justify-content:center;
    margin-bottom:20px;
}


button {
    padding:12px 20px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#457b9d;
    color:white;
    font-size:16px;
}


button:hover {
    opacity:0.85;
}



.card {
    background:white;
    padding:20px;
    border-radius:12px;
    text-align:center;
}


.rank-image {
    width:250px;
    max-width:80%;
}



input {
    width:90%;
    max-width:400px;
    padding:12px;
    font-size:18px;
    margin:15px;
}



.grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}


.grid img {

    width:100%;
    aspect-ratio:1/1;
    object-fit:contain;

    background:white;
    border-radius:10px;
    padding:10px;

    cursor:pointer;
}



.correct {
    border:5px solid green;
}


.wrong {
    border:5px solid red;
}


#score {

    margin-top:20px;
    text-align:center;
    font-size:22px;
}



@media(max-width:600px){

    .grid {
        grid-template-columns:repeat(3,1fr);
        gap:8px;
    }


    button {
        font-size:14px;
        padding:10px;
    }

}
.component {

    color:#666;
    font-size:14px;

}
.grid img.selected {

    border: 5px solid orange;

}


.grid img.correct {

    border: 5px solid green;

}


.grid img.wrong {

    border: 5px solid red;

}


button:disabled {

    opacity:0.5;

}
