/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
}

/* .container {
    width: 80%;
    margin: auto;
} */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100vw;
    /* border-bottom: 2px solid #f1f3f5; */
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* overflow: hidden; */
    z-index: 1;
}

.logo:link,
.logo:visited {
    text-decoration: none;
    color: #343a40;
    font-family: "Merriweather", serif;
    font-size: 30px;
    margin-left: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.nav-big {
    margin-right: 40px;
    display: flex;
    gap: 16px;
}

.nav-big a:link {
    text-decoration: none;
    font-size: 18px;
    color: #343a40;
}

.nav-big a:visited {
    color: #343a40;
}

.nav-big a:hover {
    text-decoration: underline;
}

.super-menu {
    position: relative;
    overflow: visible;
}

.sub-menu {
    visibility: hidden;
    position: absolute;
    background: white;
    top: 18px;
    left: -75%;
    padding: 10px;
    padding-top: 24px;
    width: 250%;
    z-index: 10 !important;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
}

.sub-menu ul {
    list-style: none;
    /* margin-top: 32px; */
}

.sub-menu a:link,
.sub-menu a:visited {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    font-size: 16px;
    /* white-space: nowrap; */
}

.sub-menu li {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #495057;
    cursor: pointer;
}

.sub-menu li:hover {
    text-decoration: underline;
}

.nav-small {
    display: none;
    position: absolute;
    top: 8px;
    right: 20px;
    width: 40px;
    height: 40px;
    /* margin-right: 20px; */
    font-size: 32px;
    padding-left: 4px;
    padding-top: 4px;
    color: #343a40;
    border-radius: 100px;
    transition: 0.2s;
    z-index: 9999 !important;
}

.menu {
    /* visibility: hidden; */
    position: fixed;
    z-index: 10 !important;
    background: white;
    top: 0;
    right: -70vw;
    padding: 14px;
    padding-top: 60px;
    width: 70vw;
    height: 100%;
    /* box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1); */
    transition: right 0.2s;
}

.menu ul {
    list-style: none;
}

.menu a:link,
.menu a:visited {
    display: block;
    text-decoration: none;
    color: #343a40;
    /* background: blue; */
    font-size: 20px;
    width: 100%;
    padding: 12px;
}

.current {
    text-decoration: underline !important;
    color: #e67700 !important;
}

.content {
    position: fixed;
    z-index: 0 !important;
    width: 100vw;
    height: 100%;
    left: 0;
    top: 0;
    overflow: auto;
}

.overlay {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2 !important;
}

.detail {
    visibility: hidden;
    position: fixed;
    top: 1vh;
    left: 5vw;
    width: 90vw;
    height: 98vh;
    /* background: #212529; */
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20 !important;
    /* border-radius: 4px; */
}

.detail-frame {
    width: 98%;
    height: 96%;
    margin-top: 2%;
}

.close-btn {
    position: absolute;
    top: 4px;
    right: 14px;
    font-size: 32px;
    color: #f1f3f5;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #f8f9fa;
}

@media screen and (max-width: 600px) {
    .nav-small {
        display: block;
    }

    .logo {
        visibility: hidden;
        width: 50%;
    }

    .logo::after {
        content: "Bipasana";
        visibility: visible;
        position: absolute;
        top: 10px;
        left: 20px;
    }

    .nav-big {
        display: none;
    }

    .detail {
        top: 70px;
        left: 0;
        width: 100vw;
        height: 80vh;
    }

    .detail-frame {
        width: 100%;
    }

    .close-btn {
        top: -24px;
        right: 0;
    }
}
