* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

nav {
    background: linear-gradient(to bottom, #e89876, #d67856);
    padding: 3vh 5vw;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5vw;
    margin-right: 20px;
}

.logo-circle {
    width: 6vw;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    font-size: 3vw;
    font-weight: bold;
    font-family: "Pixelify Sans", sans-serif;
    color: #2a2a2a;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 1vw;
    margin-left: auto;
}

.nav-btn {
    background: #c85a3a;
    color: #2a2a2a;
    padding: 2vh 3vw;
    border: none;
    border-radius: 25px;
    font-size: 2vw;
    font-weight: bold;
    font-family: "Pixelify Sans", sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 0 #8b3a1a, 0 6px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: #d67856;
    box-shadow: 0 6px 0 #8b3a1a, 0 8px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.game-holder{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 20px;
}
.btn-holder{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 95%;
    margin-left: 20px;
    margin-right: 20px;
}
#gameCanvas {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 20px;
    width: 800px;
    height: 450px;
    background-color: #dcdcdc;
    border-radius: 10px;
    border: 5px solid #d67856;


}


.game-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #d67856;
    border-radius: 2px;
    font-size: 12px;
    color: black;
    padding: 10px;
    transition: transform 0.1s;
    font-family: "Pixelify Sans", sans-serif;
}

.game-btn:active {
    transform: scale(0.9);
}


.icon {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}
.btn-fullscreen {
    top: 10px;
    right: 10px;
    text-align: right;
    font-family: "Pixelify Sans", sans-serif;
}
.info{
    background: #e89876;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    width: 100%;
    height: auto;
    margin-top: 10px;
    padding-bottom: 20px;
}
.info-box{
    display: flex;
    width: 100%;
    background: #d67856;
    border-radius: 10px;
    align-content: center;
    justify-content: center;
}
.info-box-text{
    padding-top: 10px;
    padding-bottom: 10px;
}

.btn-sound {
    bottom: 10px;
    left: 10px;
    text-align: left;
    font-family: "Pixelify Sans", sans-serif;
}
.top-bar {
    width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.back-btn {
    background-color: #e67e22;
    color: black;
    padding: 10px 20px;
    font-family: "Pixelify Sans", sans-serif;

}

.game-info-box {
    background-color: #e67e22;
    padding: 10px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    font-family: "Pixelify Sans", sans-serif;
}

.game-icon-square {
    background-color: #dcdcdc;
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-family: "Pixelify Sans", sans-serif;
}

.btn-holder{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

footer {
    display: flex;
    background-color: #FE9B65;
    margin-top: 60px;
    align-items: center;
    padding: 0;
}

footer p {
    font-size: 25px;
    font-family: "Pixelify Sans", sans-serif;
}

.footerCntr-flexbox {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 5px;
    margin-left: 40px;
}
@media (max-width: 768px) {
    .nav-links {
        flex-direction: row;
        gap: 10px;

        display:flex;
        margin: 0;
        padding: 0;
    }
    .nav-btn {
        padding: 1vh 2vw;
        font-size: 3vw;
    }

    .logo-circle img {
        width:10vw;
        height: auto;
    }
    .game-holder {
        min-height: auto;
        margin: 10px;
    }


    .top-bar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .game-info-box {
        width: 160px;
        font-size: 14px;
    }
     .game-icon-square {
         height: 80px;
     }

    .back-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 10px 0;
    }

    canvas {
        border-width: 4px;
    }

    .btn-holder {
        width: 100%;
        justify-content: space-between;
        margin: 10px 0;
    }

    .game-btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .icon {
        font-size: 18px;
    }

    .info {
        font-size: 13px;
        border-radius: 15px;
        padding: 10px;
        margin-top: 10px;
    }

    .info-box {
        border-radius: 8px;
        padding-top: 20px ;
    }

}
