*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

.container, .navbar, .home{
    width: 100%;
    height: 100vh;
    background-color: #030397;
    position: relative;
    z-index: 10;
}

.container, .box, .animal, .navbar, .loading, .home, .round1-animal,
.round2-animal, .round3-animal, .round4-animal{
    display: flex;
    align-items: center;
    justify-content: center;
}

.round1-card, .round2-card, .round3-card, .round4-card{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #030397;
}

.round1-box {
    display: grid;
    grid-template-columns: 2fr 2fr;
    justify-content: center; 
    align-items: center;
}

.round2-box {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 2fr;
    justify-content: center; /* Gorizontal markazga */
    align-items: center;     /* Vertikal markazga */
}

.round3-box {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr 3fr;
    justify-content: center; /* Gorizontal markazga */
    align-items: center;     /* Vertikal markazga */
}

.round4-box {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr 4fr;
    justify-content: center; /* Gorizontal markazga */
    align-items: center;     /* Vertikal markazga */
}

#timer {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

.card{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.animal img{
    width: 40px;
    height: 35px;
}

.round1-animal img{
    width: 85px;
    height: 80px;
}

.round2-animal img{
    width: 70px;
    height: 65px;
}

.round3-animal img{
    width: 60px;
    height: 55px;
}

.round4-animal img{
    width: 50px;
    height: 45px;
}

.animal, .round1-animal, .round2-animal, .round3-animal, .round4-animal{
    width: 80px;
    height: 55px;
    background-color: #ff8000;
    margin: 10px;
    border-radius: 10px;
    cursor: pointer;    
}

.round1-animal{
    width: 150px;
    height: 120px;
}

.round2-animal{
    width: 120px;
    height: 100px;
}

.round3-animal{
    width: 95px;
    height: 80px;
}

.round4-animal{
    width: 85px;
    height: 70px;
}

.modal {
    display: none; /* Avval ko‘rinmasin */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Qoraygan fon */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content button {
    padding: 10px 20px;
    background: #ff8000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* Modal oynani o‘rtaga chiqarish */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 101;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #ff8000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background: #cc6600;
}

#muted, .sound, .resume, .card, .container, .home,
.round2-card, .round3-card, .round4-card{
    display: none;
}

.menu{
    position: absolute;
    right: 20px;
    top: 20px;
    color:#e0dfdf;
    font-size: 30px;
    cursor: pointer;
}

.resume{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 101;
    display: flex;
}

.button-box{
    position: relative;
    width: 300px;
    height: 450px;
    background-color: #0084ff;
    border-radius: 10px;
    color: white;
    text-align: center;
    padding-top: 13px;
}

.button-box .bx-x{
    color: white;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 35px;
}

.button-box h3{
    color: white;
    font-size: 25px;   
}

.buttons-list{
    font-size: 30px;
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #030397;
    width: 250px;
    height: 370px;
    border-radius: 5px;
    position: absolute;
    top: 60px;
    left: 25px;
}

.resume button{
    background-color: #568e02;
    color: white;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    font-weight: 800;
    transition: all .3s ease;
    width: 80%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.resume button i{
    font-size: 25px;
}

.music-list{
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    border-bottom: 0.5px solid #5d5c5c;
    width: 100%;
    padding-bottom: 15px;
}

.music-list p{
    font-size: 12px;
}

.sound-icon{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.music-icon{
    position: relative;
}

.music-item:nth-child(2){
    border-top: 0.5px solid white;
    border-bottom: 0.5px solid white;
}

.music-item:nth-child(3){
    border-bottom: 0.5px solid white;
}

.music-name{
    position: absolute;
    width: 70px;
    height: 30px;
    overflow-y: auto;
    background-color: #568e02;
    border-radius: 4px;
    left: 40px;
    top: 10px;
    display: none;
}

.music-name::-webkit-scrollbar {
    width: 2.5px;
}

.music-name::-webkit-scrollbar-track {
    background: transparent;
}

.music-name::-webkit-scrollbar-thumb {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid transparent; /* chet chizig‘i yo‘q, faqat silliq chiziq */
    box-shadow: none; /* soya yo‘q */
}

.music-name::-webkit-scrollbar-thumb:hover {
    background-color: #fff;
}

/* Scrollbar buttonlarni olib tashlash */
.music-name::-webkit-scrollbar-button {
    display: none;
}


.music-name p{
    padding: 8px;
    cursor: pointer;
    font-weight: 700;
}

.resume button, #loop, #muted, .button-box .bx-x, .bx-music{
    cursor: pointer;
}

.resume button:active{
    color: #568e02;
    background-color: white;
    border: 2px dashed #568e02;
}

.banner{
    animation: banner 4s linear forwards;
    flex-direction: column;
}

.banner h1, h2{
    color: white;
    text-transform: uppercase;
    text-align: end;
}

.banner h1{
    font-size: 70px;
}

.banner h2{
    font-size: 50px;
}

.banner h1 span{
    color: red;
    transform: rotate(-25deg);
    display: inline-block;
    padding: 0 3px;
}

.banner h2 span{
    font-size: 60px;
}

.loading{
    display: none;
    flex-direction: column;
    gap: 50px;
}

.load{
    width: 320px;
    height: 20px;
    background-color: white;
    border: 1px solid black;
    border-radius: 20px;
}

.prosent{
    background-color: red;
    border-radius: 20px;
    animation: prosent 4s ease forwards;
    visibility: hidden;
    animation-delay: 4s;
}

.logo{
    text-align: center;
}

.logo button{
    margin-top: 50px;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 800;
    border: none;
    border-radius: 40px;
    color: white;
    background-color: #ff8000;
    cursor: pointer;
}

.logo button:active{
    background-color: white;
    color: #ff8000;
    border: 2px dashed #ff8000;
}



@keyframes banner {
    0%{
        display: flex;
    }

    100%{
        display: none;
    }
}

@keyframes prosent {
    0%{
        visibility: visible;
    }

    25%{
        width: 80px;
        height: 20px;
    }

    50%{
        width: 160px;
        height: 20px;
    }

    75%{
        width: 240px;
        height: 20px;
    }

    100%{
        width: 320px;
        height: 20px;
    }
}


@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .round2-box, .round3-box, .round4-box{
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 500px) {
    .box, .round2-box, .round3-box, .round4-box{
        flex-wrap: wrap;
    }

    .loading img{
        width: 350px;
    }

    .home img{
        width: 350px;
    }
    
    .card, .round2-card, .round3-card, .round4-card{
        padding-top: 60px;
    }
}