@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=M+PLUS+Rounded+1c&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
    justify-content: center;
    background-color: rgb(37, 37, 37);
    align-items: center;
    text-align: center;
    color: #f0f0f0;
    overflow: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.search-button {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#search_results {
    list-style-type: none;
    padding: 0;
}

#search_results li {
    margin-bottom: 10px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    color: #131817;
    transform: translate(-50%, -50%);
    background-color: #fffed2;
    border-radius: 20px;
    padding: 20px;
    z-index: 1000;
    font-weight: 900;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 6px solid #ffffff;
    /* Light grey */
    border-top: 6px solid #00b4b4;
    /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Search bar CSS */

@import url('https://fonts.googleapis.com/css?family=Inconsolata:700');


.search-container {
    position: inherit;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    height: 100px;

    .search {
        position: absolute;
        margin: auto;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 80px;
        background: #00a2e2;
        border-radius: 50%;
        transition: all 1s;
        z-index: 4;
        box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);

        &:hover {
            cursor: pointer;
        }

        &::before {
            content: "";
            position: absolute;
            margin: auto;
            top: 22px;
            right: 0;
            bottom: 0;
            left: 22px;
            width: 12px;
            height: 2px;
            background: white;
            transform: rotate(45deg);
            transition: all .5s;
        }

        &::after {
            content: "";
            position: absolute;
            margin: auto;
            top: -5px;
            right: 0;
            bottom: 0;
            left: -5px;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            border: 2px solid white;
            transition: all .5s;
        }
    }

    input {
        font-family: "Montserrat", sans-serif;
        position: absolute;
        margin: auto;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 50px;
        outline: none;
        border: none;
        background: #00a2e2;
        color: white;
        text-shadow: 0 0 10px #00a2e2;
        padding: 0 80px 0 20px;
        border-radius: 30px;
        box-shadow: 0 0 25px 0 #005f85,
            0 20px 25px 0 rgba(0, 0, 0, 0.2);
        transition: all 1s;
        opacity: 0;
        z-index: 5;
        font-weight: bolder;
        letter-spacing: 0.1em;

        &:hover {
            cursor: pointer;
        }

        &:focus {
            width: 300px;
            opacity: 1;
            cursor: text;
        }

        &:focus~.search {
            right: -250px;
            background: #363636;
            z-index: 6;

            &::before {
                top: 0;
                left: 0;
                width: 25px;
            }

            &::after {
                top: 0;
                left: 0;
                width: 25px;
                height: 2px;
                border: none;
                background: white;
                border-radius: 0%;
                transform: rotate(-45deg);
            }
        }

        &::placeholder {
            color: white;
            opacity: 0.5;
            font-weight: bolder;
        }
    }
}


body {
    height: 100vh;
    font: 400 16px 'Varela Round', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes pop {
    10% {
        transform: scale(1.2);
    }
}

.search {
    animation: jump-shaking 0.9s linear 2;
    animation-delay: 1s;
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}


@keyframes jump-shaking {
    0% {
        transform: translateX(0)
    }

    25% {
        transform: translateY(-9px)
    }

    35% {
        transform: translateY(-9px) rotate(17deg)
    }

    55% {
        transform: translateY(-9px) rotate(-17deg)
    }

    65% {
        transform: translateY(-9px) rotate(17deg)
    }

    75% {
        transform: translateY(-9px) rotate(-17deg)
    }

    100% {
        transform: translateY(0) rotate(0)
    }
}

/* scene packs heading */

.heading-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    appearance: none;
    border: 0;
    background: 0;
    position: relative;
    color: white;
    font-weight: 400;
    border-radius: 20px;
    overflow: hidden;
    font-family: inherit;
    font-weight: 500;
    margin: 20px;
}

.heading-button:after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 1);
    border-radius: inherit;
    mix-blend-mode: overlay;
}

.heading-button iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.5) rotate(15deg);
    opacity: 0.5;
    filter: blur(5px);
    transition: all 0.5s ease-in-out;
}

.heading-button span {
    position: relative;
    z-index: 1;
    opacity: 1;
    color: white;
    transition: all 0.5s ease-in-out;
    font-size: 40px;
}

.heading-button:hover .heading-frame {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: blur(0);
}

.heading-button:hover span {
    opacity: 1;
}

html,
body {
    background: black;
    font-family: system-ui, sans-serif;

}

body {
    align-items: center;
    justify-content: center;
}

/* squares */

@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

* {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: 'Exo', sans-serif;
}


.context {
    width: 100%;
    position: absolute;
    top: 50vh;

}

.context h1 {
    text-align: center;
    color: #fff;
    font-size: 50px;
}




.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;

}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}



@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}

/* navbar */

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

.html {
    font-size: 62.5%;
}

.navbar input[type="checkbox"],
.navbar .hamburger-lines {
    display: none;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.navbar {
    top: 0%;
    box-shadow: 0px 5px 10px 0px #000000;
    position: fixed;
    width: 100%;
    background: #3a3a3a;
    color: #ebebeb;
    opacity: 0.85;
    z-index: 5;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

.menu-items {
    order: 2;
    display: flex;
}

.logo {
    order: 1;
    font-size: 2.3rem;
}

.menu-items li {
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.3rem;
}

.navbar a {
    color: #f3f3f3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover {
    color: #00f0f8;
}

@media (max-width: 768px) {
    .navbar {
        opacity: 0.95;
    }

    .navbar-container input[type="checkbox"],
    .navbar-container .hamburger-lines {
        display: block;
    }

    .navbar-container {
        display: block;
        position: relative;
        height: 64px;
    }

    .navbar-container input[type="checkbox"] {
        position: absolute;
        display: block;
        height: 32px;
        width: 30px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }

    .navbar-container .hamburger-lines {
        display: block;
        height: 28px;
        width: 35px;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #ffffff;
    }

    .navbar-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.3s ease-in-out;
    }

    .navbar .menu-items {
        padding-top: 100px;
        background: #3b3b3b;
        height: 100vh;
        max-width: 300px;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 40px;
        transition: transform 0.5s ease-in-out;
        box-shadow: 5px 0px 10px 0px #000000;
        overflow: scroll;
        color: #f0f0f0;
    }

    .navbar .menu-items li {
        margin-bottom: 1.8rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: #f0f0f0;
    }

    .logo {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
        display: none;
    }

    .navbar-container input[type="checkbox"]:checked~.menu-items {
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked~.hamburger-lines .line1 {
        transform: rotate(45deg);
    }

    .navbar-container input[type="checkbox"]:checked~.hamburger-lines .line2 {
        transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked~.hamburger-lines .line3 {
        transform: rotate(-45deg);
    }

}

@media (max-width: 500px) {
    .navbar-container input[type="checkbox"]:checked~.logo {
        display: none;
    }
}


/* list items */
/* container */

.search {
    position: relative;
}



.search-results-container {
    position: fixed;
    bottom: 0;
    top: 50%;
    width: 50%;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 20px;
    padding-top: 20px;
    z-index: 1;
    overflow: auto;
    background-color: #1a1a1a;
    box-shadow: 0 0 45px 0 rgba(0, 0, 0, 0.4);
    /* Ensure no child elements protrude from container */
}



@media (max-width: 1080px) {
    .search-results-container {
        position: fixed;
        bottom: 0;
        top: 50%;
        width: 90%;
        max-height: 350px;
    }
}

.search-results-container::-webkit-scrollbar {
    width: 10px;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 20px;
}

.search-results-container::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 20px;
}

/* li */

.search-results-container li a {
    display: block;
    background-color: #c8c8c8;
    width: 90%;
    margin: 0 auto;
    text-align: left;
    text-decoration: none;
    padding: 15px 10px 15px 15px;
    border-radius: 10px;
    font-weight: 900;
    z-index: 2;
    font-family: "Montserrat", sans-serif;
    transition: transform 0.2s ease-in-out;
}

/* unvisited link */
.search-results-container li a:link {
    color: rgb(19, 19, 19);
}

/* visited link */
.search-results-container li a:visited {
    color: rgb(0, 75, 85);
}

/* mouse over link */
.search-results-container li a:hover {
    color: rgb(212, 0, 46);
    background-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.5);
}

/* selected link */
.search-results-container li a:active {
    color: rgb(39, 39, 39);
}



body {
    background: linear-gradient(-45deg, #161515, #161515, #131817, #000000);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    overflow: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* no results message */


#search_results p {
    /* Add your styles here */
    margin-top: 20px;
    color: rgb(0, 0, 0);
    font-size: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    background-color: #ccc;
}

.load-more-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007ed1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.load-more-btn:hover {
    background-color: #0069b1;
}