@font-face {
    font-family: "Noland";
    src: url("../assets/fonts/Noland-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400;
    src: url("../assets/fonts/Figtree-Regular.ttf") format("truetype");
}

@font-face {
    font-display: swap;
    font-family: "Figtree";
    font-style: normal;
    font-weight: 700;
    src: url("../assets/fonts/Figtree-Bold.ttf") format("truetype");
}

body {
    font-family: Figtree, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5rem;
    font-family: Figtree, sans-serif;
    font-style: normal;
    font-weight: 700;
    line-height: 3rem;
}

h2 {
    font-size: 2rem;
    font-family: Figtree, sans-serif;
    font-style: normal;
    font-weight: 700;
    line-height: 2.5rem;
}

header {
    color: #000;
    font-size: 3.5rem;
    line-height: 4rem;
    font-family: Noland, Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.toolbar {
    background-color: #f8f8f8;
    border-radius: 3.5rem;
    border: none;
    padding: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

nav {
    width: 17rem;
    position: fixed;
    top: 0;
    left: -17rem;
    height: 100%;
    overflow-y: auto;
    background-color: #f1f1f1;
    padding-top: 20px;
    margin-bottom: 20px;
    transition: left 0.3s ease;
    border-radius: 0 3rem 0 0;
    background: linear-gradient(0deg, #d2b3ff 0%, #ceff00 100%);
    transition: left 0.3s ease;
    overflow-x: hidden;
    scrollbar-width: thin;
    direction: rtl;
    text-align: left;
}

nav::-webkit-scrollbar {
    width: 7px;
}

nav::-webkit-scrollbar-thumb {
    background-color: #f8f9fa;
}

nav::-webkit-scrollbar-track {
    background-color: #f8f9fa;
}

nav a {
    display: block;
    padding: 2px 20px;
    text-decoration: none;
    color: #000;
    font-size: 0.875rem;
    line-height: 1.2rem;
    font-weight: 400;
}

nav a:last-child {
    margin-bottom: 50px;
}

nav a:hover {
    opacity: 0.8;
}

nav img {
    display: block;
    margin: 0 auto 1rem;
    max-width: 80%;
}

.lang-selector {
    text-align: center;
    margin: 0 auto 3.5rem;
}

.lang-selector .flag-icon {
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    position: relative;
    display: inline-block;
    line-height: 1em;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 32px;
    margin:5px;
    cursor: pointer;
}

.lang-selector .flag-icon:hover {
    opacity: 0.7;
}

.lang-selector .flag-icon.lt {
    background-image: url("../assets/img/flag-lt.svg");
}

.lang-selector .flag-icon.gb {
    background-image: url("../assets/img/flag-gb.svg");
}

section {
    margin-left: 17rem;
    padding: 20px;
    max-width: 1160px;
    display: block;
}

section a {
    color: #000;
}

section .image {
    padding: 20px 0px;
}

section img {
    max-width: 100%;
}

section video {
    max-width: 100%;
    max-height: auto;
}

.info-box {
    border-color: #ceff00;
    background-color: #f8ffd9;
    padding: 1.25rem;
    border-radius: 32px;
    border-style: solid;
    border-width: 2px;
}

.menu-toggle {
    cursor: pointer;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    text-align: center;
    font-size: 18px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1;
    outline: none;
    border-radius: 4px;
}

pre {
    background-color: #f4f4f4; 
    border: 1px solid #ccc; 
    padding: 10px; 
    border-radius: 5px;
}

@media screen and (min-width: 601px) {
    .menu-toggle {
        display: none;
    }

    nav {
        left: 0;
    }
}

@media screen and (max-width: 600px) {

    section img {
        max-width: 100% !important;
    }

    nav {
        left: -17rem;
        transition: none;
    }

    nav a {
        text-align: center;
        padding: 10px 0;
    }

    section {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }
}

@media screen and (min-width: 992px) {
    section {
        padding-left: 3.5rem !important;
    }
}