/* GENERAL */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Inter&family=Space+Grotesk&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    scroll-behavior: smooth;
}

.container {
    padding-left: 5%;
    padding-right: 20%;
    background-color: #f8f8f8;
    padding-bottom: 30px;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media screen and (max-width: 768px) {
    .container {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* SPLASH */

#splash {
    position: relative;
    font-family: 'Bungee', sans-serif;
    padding-top: 105vh;
    padding-bottom: 10%;
    box-sizing: border-box;
    height: 205vh;
    background-image: url("https://knosmos.github.io/dbf_site/img/plane_crop.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

#splash-text {
    font-size: 160px;
    color: #333;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px rgb(255, 255, 255);
    line-height: 1;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

@media screen and (max-width: 768px) {
    #splash {
        padding-top: 5vh;
        padding-bottom: 10%;
        height: 100vh;
        background-image: url("https://knosmos.github.io/dbf_site/img/plane.jpg");
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        box-sizing: border-box;
    }
    #splash-text {
        font-size: 70px;
        -webkit-text-stroke: 1px rgb(255, 255, 255);
    }
}

.splash-text-seg-anim {
    -webkit-text-fill-color: white;
}

.container-header-anim {
    color: #09005e !important;
}

#splash-text-2 {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 40pt;
}

#splash-text #splash-text-small {
    font-size: 50pt;
}

#splash-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 60%;
}

#splash-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#cover-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10000;
}

#cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d4cfb2;
}

#cover img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    border-radius: 10px;
    width: 10%;
    animation: zoom-in 1s;
}

@keyframes zoom-in {
    0% {
        /* transform: translate(-50%, -50%) scale(1); */
        opacity: 0;
        transform: translate(-50%, 300%);
    }
    90% {
        transform: translate(-50%, -60%) scale(1.2);
        opacity: 0.6;
    }
    100% {
        /* transform: translate(-50%, -50%) scale(2); */
        opacity: 1;
    }
}

@keyframes swipe-out {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
        opacity: 0.8;
    }
}

/* CONTENT */

.h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 60pt;
    color: rgb(181, 181, 181);
    margin: 0px;
    padding: 20px 0px;
    font-weight: bold;
    padding-top: 100px;
}

@media screen and (max-width: 768px) {
    .h2 {
        font-size: 30pt;
    }
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 16pt;
    color: #333;
    line-height: 1.5;
    margin: 0px;
}

a {
    color: #cb8700;
    text-decoration: none;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background-color: #efefef;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #09005e;
}

th {
    background-color: #09005e;
    color: white;
}

.brz {
    background-color: #d4cfb2;
}

.sil {
    background-color: #cabe79;
}

.gold {
    background-color: #cfb731;
}

dialog {
    background-color: #f8f8f8;
    border: 1px solid #09005e;
    padding: 20px;
    width: 80%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    outline: none;
}

dialog ::backdrop {
    background-color: rgba(9, 0, 52, 0.671);
}

dialog .h2 {
    font-size: 40pt;
    margin: 0px;
    padding: 0px;
}

dialog .grid {
    margin: 0px;
}

dialog .close {
    border: none;
    font-size: 30pt;
    cursor: pointer;
    float: right;
    color: #09005e;
}

dialog p {
    font-size: 14pt;
}

dialog img {
    border: 1px solid #09005e;
}

@keyframes swipe-up {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes swipe-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* CARDS */
.h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20pt;
    color: #09005e;
    margin: 0px;
    padding: 5px 10px;
}

.card p {
    font-family: 'Inter', sans-serif;
    font-size: 14pt;
    color: #333;
    line-height: 1.5;
    margin: 0px;
    padding: 5px 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.card {
    border: 1px solid #09005e;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.card img {
    width: 100%;
    object-fit: cover;
}

.card .card-img{
    height:250px;
    background-size:cover;
    background-position:center;
    box-sizing: border-box;
    position:relative;
    border-bottom: 1px solid #09005e;
}

/* SPONSOR CAROUSEL */
.slider {
    height: 75pt;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    cursor: default;
    user-select: none;
    touch-action: none;
    background: #f8f8f8;
}

.slider:before {
    left: 0;
    top: 0;
}
.slider:after,
.slider:before {
    background: linear-gradient(
        to right,
        #f8f8f8 0%,
        hsla(0, 0%, 100%, 0) 100%
    );
    content: "";
    height: 75pt;
    position: absolute;
    width: 200px;
    z-index: 2;
}
.slider:after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}
.slider:after,
.slider:before {
    background: linear-gradient(
        to right,
        #f8f8f8 0%,
        hsla(0, 0%, 100%, 0) 100%
    );
    content: "";
    height: 75pt;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider .slide-track-1 {
    animation: scroll-l 10s linear infinite;
    display: flex;
    width: 3500px;
}

.slider .slide {
    height: 75pt;
    width: 350px;
    display: flex;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.slider .slide img {
    width: 320px;
    padding: 1pc;
    vertical-align: middle;
    margin: 0 auto;
    display: inline-block;
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}
.slider .slide img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll-l {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 5));
    }
}

/* NAVIGATION */

nav {
    background-color: #e9e6df;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #09005e;
}

nav .nav-links {
    display: flex;
    gap: 20px;
}

nav .nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16pt;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    font-size: 16pt;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.jump-link {
    position: relative;
    bottom: 60px;
}

.menu-icon {
    display: none;
    font-size: 16pt;
    color: #cb8700;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    nav {
        display: block;
    }
    nav .nav-logo {
        width: 100%;
    }
    nav .nav-links {
        display: none;
        padding: 10px 0;
    }
    nav .menu-icon {
        display: block;
    }
    nav .nav-links a {
        display: block;
        padding: 10px 0;
    }
    nav .nav-links.show {
        display: block;
    }
}