/* Body */
body {
    display: block;
    position: relative;
    width: 100dvw;
    height: 100dvh;
}

/* Background Image */
.bg-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-image: url('../images/bg/lp_bg_002_deskn.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: 1;
}

/* Header */
header {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    padding: 0 5rem;
    overflow: hidden;

    .head-logo {
        display: block;
        width: 180px;
        transition: all 300ms linear;

        .head-img {
            width: 100%;
            height: auto;
        }
    }

    .head-logo:hover {
        filter: drop-shadow(5px 5px 10px var(--col-pri-l2));
    }

    .head-links {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 5rem;

        .head-link {
            display: block;
            text-decoration: none;
            font-size: 2rem;
            font-weight: bold;
            letter-spacing: 3px;
            color: var(--col-txt-light);
            transition: all 300ms linear;
        }

        .head-link:hover {
            filter: drop-shadow(5px 5px 10px var(--col-pri-l2));
        }

        .head-button {
            display: none;
            text-decoration: none;
            font-size: 2rem;
            font-weight: bold;
            letter-spacing: 3px;
            color: var(--col-txt-light);
            /* background: linear-gradient(to bottom, var(--col-pri) 50%, var(--col-pri-l1) 100%); */
            border: 2px solid var(--col-txt-light);
            padding: 1rem 2rem;
            border-radius: 5px;
            transition: all 300ms linear;
        }

        .head-button:hover {
            /* color: var(--col-pri-l1); */
            /* background: linear-gradient(to bottom, var(--col-pri-l1) 50%, var(--col-pri) 100%); */
            border: 2px solid var(--col-pri);
            background-color: var(--col-pri);
        }
    }
}

/* Nav */
nav {
    .nav-link {
        flex: 0 0 auto;
        text-decoration: none;
        font-size: 2rem;
        font-weight: bold;
        color: var(--col-txt-light);
        transition: all 300ms linear;
    }

    .nav-link:hover {
        filter: drop-shadow(5px 5px 10px var(--col-pri-l2));
    }
}

.nav-full {
    max-width: 100dvw;
}

/* Footer */
footer {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100dvw;
    z-index: 10;
    background-color: var(--col-pri);
    padding: 1rem;

    .footer-links {
        display: flex;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 3rem;

        .footer-link {
            display: block;
            text-decoration: none;
            font-size: 1.8rem;
            letter-spacing: 3px;
            color: var(--col-txt-light);
        }

        .footer-link:hover {
            color: var(--col-pri-l2);
            filter: drop-shadow(5px 5px 10px var(--col-pri-l2));
        }
    }
}

/* News ticker */
.news {
    position: absolute;
    display: flex;
    flex-direction: row;
    left: 0;
    bottom: 58px;
    width: 100dvw;
    background-color: var(--col-txt-light);
    border: 2px solid var(--col-pri);
    white-space: nowrap;
    z-index: 10;
    padding: 1rem 0;
    overflow: hidden;
    gap: 10rem;

    .news-block {
        display: inline-flex;
        flex-direction: row;
        gap: 10rem;
        animation: 120s roll infinite linear;

        .news-blank {
            min-width: 100dvw;
            font-size: 2.2rem;
            font-weight: bold;
            letter-spacing: 1rem;
            text-align: center;
        }

        .news-msg {
            display: flex;
            flex-direction: row;
            gap: 1rem;
            align-items: center;

            .news-src {
                display: block;
                height: 25px;
                width: 25px;
            }

            .news-title {
                display: block;
                color: var(--col-txt-dark);
                font-size: 2rem;
                font-weight: bold;
            }
        }
    }
}

@keyframes roll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Search box */
.search-box {
    display: flex;
    position: absolute;
    top: 35%;
    left: 50%;
    background: linear-gradient(to bottom, var(--col-pri) 50%, var(--col-pri-l1) 100%);
    z-index: 10;
    flex-direction: row;
    align-items: center;
    padding: 5px 30px;
    border-radius: 30px;
    gap: 5px;
    transform: translateX(-50%);
}

.search-ext {
    display: block;
    position: absolute;
    width: 500px;
    top: calc(35% + 70px);
    left: 50%;
    /* background-color: var(--col-pri); */
    background: linear-gradient(to bottom, var(--col-pri) 50%, var(--col-pri-l1) 100%);
    z-index: 10;
    border-radius: 5px;
    transform: translateX(-50%);
    overflow: hidden;
    max-height: 0;
    max-width: 0;
    transition: all 300ms linear;
}

.search-ext-open {
    max-height: 100dvh;
    max-width: 100dvw;
}

.search-input {
    height: 50px;
    font-size: 3rem;
    border: 1px solid var(--col-pri-l1);
    background-color: var(--col-pri-l2);
    border-radius: 5px;
    padding: 0 2rem;
}

.search-button {
    display: flex;
    height: 50px;
    aspect-ratio: 1;
    border: 1px solid var(--col-pri);
    border-radius: 5px;
    font-size: 3rem;
    background: linear-gradient(to bottom, var(--col-pri) 50%, var(--col-pri-l1) 100%);
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    border: 1px solid var(--col-pri-l1);
    background: linear-gradient(to bottom, var(--col-pri-l1) 50%, var(--col-pri) 100%);
}

.search-opt {
    transition: all 300ms linear;
}

.search-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--col-txt-light);
}

.search-options {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: var(--col-txt-light);
    border-radius: 5px;
    padding: 1rem;
    margin: 5px;

    .search-options-blk {
        display: grid;
        grid-template-columns: 30px 1fr;
        gap: 5px;

        .search-chk {
            display: block;
            height: 25px;
            aspect-ratio: 1;
            border: 1px solid var(--col-pri-l1);
            background-color: var(--col-pri-l2);
        }

        .search-lbl {
            display: block;
            font-size: 2rem;
        }
    }
}

@media screen and (min-width: 851px) {
    .head-logo {
        width: 180px;
    }

    .menu-button {
        display: none;
    }

    .head-links {
        display: flex;
    }

    nav {
        display: none;
    }

    .search-input {
        width: 40dvw;
    }
}

@media screen and (max-width: 850px) and (min-width: 501px) {
    .head-logo {
        width: 180px;
    }

    .menu-button {
        display: block;
    }

    .head-links {
        display: none;
    }

    nav {
        position: absolute;
        top: 100px;
        right: 0;
        max-width: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
        z-index: 10;
        margin: 0 4rem;
        overflow: hidden;
        transition: max-width 300ms ease-in-out;
    }

    .nav-full {
        transition: max-width 300ms ease-in-out;
    }

    .search-input {
        width: calc(90dvw - 170px);
    }
}

@media screen and (max-width: 500px) {
    .head-logo {
        width: 150px;
    }

    .menu-button {
        display: block;
    }

    .head-links {
        display: none;
    }

    nav {
        position: absolute;
        top: 100px;
        right: 0;
        max-width: 0;
        width: 98dvw;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        z-index: 50;
        margin: 0 auto;
        overflow: hidden;
        transition: max-width 300ms ease-in-out;
    }

    .nav-full {
        transition: max-width 300ms ease-in-out;
    }

    .footer-link {
        font-size: 1.6rem!important;
    }

    .search-input {
        width: calc(90dvw - 120px);
    }

    .search-box {
        top: 150px;
    }

    .search-ext {
        width: calc(90dvw - 70px);
        top: 220px;
        max-width: 100dvw;
        max-height: 100dvh;
        gap: 2rem
    }

    .search-options {
        flex-direction: column;
        justify-content: flex-start;
        gap: 2rem;
    }

    #options {
        display: none;
    }
}
