body{
    background-image: url("assets-flex/bg.webp");
    background-size: cover;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: #333333;
}

button:hover, a:hover {
    background-color: rgba(86, 52, 69, 0.8);
    color: white;
}
.nav-home:hover {
    background-image: none;
    background-color: rgba(86, 52, 69, 0.8);
}

button:active, a:active {
    background-color: rgba(86, 52, 69, 1);
}

.nav-home:active {
    background-image: none;
    background-color: rgba(86, 52, 69, 1);
}

.topic-btn:hover{
    color: white;
}
.topic-btn:active{
    color: white;
}

img{
    max-width: 100%;
}

nav{
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 10px;
}

.nav-home{
    background-image: url("assets-flex/btn.png");
    background-size: cover;

    padding: 15px;
    width: 130px;
    border-radius: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    text-decoration: none;
    color: aliceblue;
}

.nav-test{
    background-color: rgba(209, 81, 64, 0.9);

    padding: 15px;
    width: 130px;
    border-radius: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    text-decoration: none;
    color: aliceblue;
    border: none;
}

.hero{
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 15px;
}

.lesson{
    padding: 50px;
    padding-bottom: 0;
}

.lesson-wrapper{
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 40px;
        height: 700px;
}

.cat-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.cat-box img {
    width: 350px;
    z-index: 1;
}

.sushi-plate{
    background-image: url("assets-flex/woodplate.webp");
    border: 2px solid #926947;
    background-size: cover;
    border-radius: 25px;
    width: 100%;
    height: 430px;
    margin-top: -51px;
    z-index: 0;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

.sushi-plate img{
    width: 180px;
}

.scene-0 .sushi1{
    position: absolute;
    top: 20px;
    left: 50px;
}

.scene-0 .sushi2{
    position: absolute;
    top: 300px;
    left: 350px;
}

.scene-0 .sushi3{
    position: absolute;
    top: 150px;
    right: 100px;
}

.speech-bubble{
    background-color: #FFF5E8;
    border-radius: 25px;
    padding: 10px 60px;
    text-align: center;
    position: relative;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 30px 20px 0 20px;
    border-style: solid;
    border-color: #FFF5E8 transparent transparent transparent;
}

.text-box {
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 2px solid #926947;
    border-radius: 25px;
    padding: 40px;
}

.text-box p {
    font-size: 18px;
    margin-bottom: 20px;
}

.text-box pre {
    margin-top: auto;
    margin-bottom: 50px;
    background: transparent;
    padding: 0;
    margin-left: -30px;
    margin-right: -30px;
}

.text-box code {
    font-size: 20px;
    font-weight: bold;
    color: #2d6a4f;
    background: transparent;
}

.btn-flex {
    position: absolute;
    background-color: #3EA652;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 20px 50px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hidden-nav{
    display: none;
}

.arrow-btn{
    background-color: #3EA652;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.topic-btn{
    background-color: transparent;
    backdrop-filter: blur(10px);
    border: 2px solid #926947;
    border-radius: 25px;
    height: 35px;
    width: 150px;
}

.scene-row {
    display: flex;
    align-items: flex-start;
}

.scene-justify {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

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

.scene-gap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.scene-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-row {
margin-bottom: -8px;
}

.cat-justify{
    margin-bottom: 3px;
}

.cat-align{
    margin-bottom: -8px;
}

.cat-gap{
    margin-bottom: -10px;
}

.cat-column{
    margin-bottom: -3px;
}

.code-btn{
    background-color: transparent;
    backdrop-filter: blur(10px);
    border: 2px solid #926947;
    border-radius: 25px;
    padding:15px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 16px;
    color: #036C4D;
    font-weight: bolder;
}
.topic-btn.active {
    background-image: url("assets-flex/btn.png");
    background-size: cover;
    color: white;
}







.scroll-wrapper {
    background-image: url("assets-flex/scroll.webp");
    background-size: 100% 100%;
    padding: 100px;
    margin: 0px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.question img {
    width: 300px;
    border-radius: 15px;
    margin-top: 15px;
}

.answers img {
    width: 150px;
}

.end-cat{
    margin-bottom: -115px;
}

.question{
    margin-bottom: 40px;
    font-size: 20px;
}

.congrats{
    margin-top: 70px;
}

.test-title{
    color: #50303F;
    padding: 40px;
}

@media (max-width: 600px) {
    html, body {
        overflow-x: hidden;
        background-position: center;
    }

    .cat-row{
        margin-bottom: -1px;
    }

    .cat-justify{
        margin-bottom: 5px;
    }

    .cat-align{
        margin-bottom: 1px;
    }

    .cat-gap{
        margin-bottom: -2px;
    }

    .cat-column{
        margin-bottom: 1px;
    }

    .end-cat{
        margin-bottom: -100px;
    }

    nav {
        gap: 15px;
        margin-top: 20px;
    }

    .hero {
        margin: 0px;
        padding: 0px;
    }

    .lesson {
        padding: 10px;
    }

    .lesson-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }

    .text-box {
        padding: 15px;
    }

    .text-box p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .text-box pre {
        margin-bottom: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }

    .text-box code {
        font-size: 13px;
    }

    .speech-bubble {
        padding: 8px 15px;
        font-size: 13px;
    }

    .cat-box {
        width: 100%;
    }

    .cat-box img {
        width: 180px;
    }

    .sushi-plate {
        height: 200px;
        margin-top: -30px;
        overflow: hidden;
        width: 100%;
    }

    .sushi-plate img {
        width: 80px;
    }

    .scene-0 .sushi1 { top: 10px; left: 20px; }
    .scene-0 .sushi2 { top: 150px; left: 120px; }
    .scene-0 .sushi3 { top: 60px; right: 20px; }

    .btn-flex {
        padding: 8px 15px;
        font-size: 13px;
        width: 60%;
        z-index: 3;
    }

    .bottom-nav {
        gap: 10px;
    }

    .topic-btn {
        width: 80px;
        font-size: 10px;
    }

    .topic-btn {
        width: 60px;
        font-size: 9px;
        height: 28px;
    }

    .arrow-btn {
        display: none;
    }

    .bottom-nav {
        gap: 5px;
    }

    .code-btn {
        font-size: 12px;
        padding: 10px;
    }
    .scene-gap{
        gap: 40px;
    }

    .scroll-wrapper {
        background-image: none;
        backdrop-filter: blur(10px);
        border: 2px solid #926947;
        border-radius: 25px;
        padding: 40px 20px;
        margin: 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .test-title {
        font-size: 20px;
        padding: 20px;
    }
}

