@font-face {
    font-family: 'Etar';
    font-weight: 400;
    font-style: normal;
    src: url('../assets/EtarRNIDS-Regular.woff2');
}
  
@font-face {
    font-family: 'Etar';
    font-weight: 800;
    font-style: normal;
    src: url('../assets/EtarRNIDS-Bold.woff2');
}
  
@font-face {
    font-family: 'Etar';
    font-weight: 400;
    font-style: italic;
    src: url('../assets/EtarRNIDS-Italic.woff2');
}
  
@font-face {
    font-family: 'Etar';
    font-weight: 800;
    font-style: italic;
    src: url('../assets/EtarRNIDS-BoldItalic.woff2');
}

@font-face {
    font-family: 'Helvetica';
    font-weight: 400;
    font-style: normal;
    src: url('../assets/Helvetica-Neue-LT-Pro-93-Black-Extended.otf');
}

.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-y: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 32%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 28px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .navClose {
    position: absolute;
    top: 2px;
    right: calc(1.5rem* 0.5 + 12px);
    font-size: 45px;
}

@media screen and (max-height: 450px) {
    .overlay {overflow-y: auto;}
    .overlay a {font-size: 20px}
    .overlay .navClose {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

body {
    font-family: "Etar";
    max-width: 100%;
    min-height: 100vh;
    background-color: #f1f1f1;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav .hamburger {
    cursor: pointer;
    font-size: 26px;
    margin-right: 18px;
}

.nav .logo {
    margin-top: 20px;
    margin-left: 18px;
}

.nav p {
    font-size: 16px;
}

.nav img {
    margin-bottom: 5px;
    height: 26px;
}

@media only screen and (max-width: 575px) {
    .nav p {
        font-size: 14px;
    }
    
    .nav img {
        height: 24px;
    }
}

.hero {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    align-items: center;
    background-color: #3B4373;
    background-image: url('../assets/gradient.png');
    background-size: 105% 105%; /* Just slightly larger */
    animation: subtleShake 20s ease-in-out infinite;
    color: #F1F1F1;
}

@keyframes subtleShake {
    0% {
        background-position: 50% 50%;
    }
    25% {
        background-position: 51% 50%;
    }
    50% {
        background-position: 50% 51%;
    }
    75% {
        background-position: 49% 50%;
    }
    100% {
        background-position: 50% 50%;
    }
}

.floating-star {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.floating-star {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.star1 {
    top: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite;
}

.star2 {
    top: 60%;
    right: 20%;
    animation: float 12s ease-in-out infinite;
}

.star3 {
    top: 35%;
    right: 30%;
    animation: float 10s ease-in-out infinite;
}

.star4 {
    top: 75%;
    left: 25%;
    animation: float 9s ease-in-out infinite;
}

.star5 {
    top: 15%;
    right: 45%;
    animation: float 11s ease-in-out infinite;
}

.star6 {
    top: 45%;
    left: 35%;
    animation: float 13s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes rotateBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 400% 0; /* Adjust to the desired length of scrolling */
    }
}

.hero .pattern {
    background-image: url('../assets/patternDouble.svg');
    background-repeat: repeat-x; /* Repeat the background horizontally */
    background-size: 200%; /* Make the image smaller so it repeats twice in the width */
    height: 70vh;
    width: 60%;
    animation: rotateBackground 200s linear infinite; /* Adjust duration for speed */
}

.hero .content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    height: 100%;
}

.hero-text {
    flex: 0 0 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-video {
    flex: 0 0 25%;
    max-width: 700px;
    width: 100%;
    height: 100%;
    margin-right: 100px;
}

@media only screen and (max-width: 976px) {
    .hero-video {
        margin-right: 0px;
    }
}

@media only screen and (max-width: 1100px) {
    .hero .content {
        padding-right: 1rem;
    }
}

.hero .content h1 {
    font-family: "Helvetica";
    margin-top: 10px;
    line-height: 140%;
    text-align: center;
    margin-bottom: 20px;
}

@media (min-width: 1200px) {
    .hero .content h1 {
        font-size: 3.5rem;
    }
}

.hero .content h1:hover {
    filter: blur(2px);
    transition: 0.2s -webkit-filter linear;
}

.hero .content h1 #starIcon {
    height: 34px;
    margin-top: -18px;
    margin-left: 8px;
}

.hero .content .date, .hero .content .location {
    display: flex;
    flex-direction: row;
}

.hero .content .date:hover, .hero .content .location:hover {
    filter: blur(1px);
    transition: 0.2s -webkit-filter linear;
}

.hero .content .date i, .hero .content .location i {
    margin-right: 4px;
}

.hero .content .button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff26;
    color: white;
    cursor: pointer;
    text-decoration: none;
    padding: 10px 60px;
    margin-top: 10px;
}

.hero .content .button:hover {
    background-color: #ffffff5c;
    transition: background-color 0.2s ease;
}

.cursor-darkener {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Move all content above the darkener */
.hero .nav, 
.hero .content,
.hero .floating-star {
    position: relative;
    z-index: 2;
}

@media only screen and (max-width: 964px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }
    
    .hero-text {
        align-items: flex-start;
        margin-left: 25px;
        width: 100%;
        flex: none;
    }
    
    .hero-video {
        max-width: 100%;
        padding: 0 25px;
        flex: none;
        width: 100%;
    }
    
    .hero-video > div {
        padding: 0 !important;
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .hero-video iframe {
        position: relative !important;
        width: 100%;
        height: auto;
        aspect-ratio: 9/16;
    }
    
    .hero .content h1 {
        font-size: 42px;
        text-align: left;
    }
    .hero .content h1 #starIcon {
        height: 22px;
        margin-top: -18px;
        margin-left: 4px;
    }
    .hero .content {
        align-items: flex-start;
    }
}

.titleContainer {
    background-color: #2A2A2A;
    color: #f1f1f1;
}

.bigTitle {
    font-family: "Helvetica";
    text-align: center;
    padding-top: 30px;
    line-height: 140%;
    color: #F1F1F1;
    margin-bottom: 0;
}

.counter {
    background-color: #2A2A2A;
    color: #f1f1f1;
    padding-top: 60px!important;
    padding: 30px 0;
}

.counter .container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

@media only screen and (max-width: 767px) {
    .counter .container {
        display: flex;
        flex-direction: column;
    }
    .counter .container .box {
        margin: 20px 0;
    }
}

.counter .container .box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.counter .container .box h1 {
    font-family: "Helvetica";
    font-size: 38px;
}

.speakers {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

@media only screen and (max-width: 767px) {
    .speakers {
        flex-direction: column;
    }
}

.speakers .box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.speakers .box img {
    height: 200px;
    width: 200px;
    object-fit: cover;
}

.speakers .box h3 {
    font-family: "Helvetica";
    font-size: 24px;
    margin-top: 20px;
    text-align: center;
}

.speakers .box span {
    margin-bottom: 30px;
}

.title {
    font-family: "Helvetica";
    text-align: center;
    font-size: 28px;
    margin: 30px 0;
    color: #1c1c1c;
}

.agenda {
    background-image: url('../assets/gradient.png');
    color: #f1f1f1;
    background-size: cover;
    padding: 10px 0 20px;
}

.agenda .title {
    color: #f1f1f1;
}

.agenda .content {
    background-color: #f1f1f1;
    color: #1c1c1c;
    padding: 20px;
}

.agenda .content .agendaRow {
    display: flex;
    flex-direction: row;
    margin: 10px 0;
}

.agenda .content .agendaRow .time {
    font-size: 18px;
    padding-right: 20px;
    min-width: 150px;
}

.agenda .content .agendaRow .activity {
    font-family: "Helvetica";
    font-size: 24px;
    margin-left: 20px;
    margin-top: -4px;
}

@media only screen and (max-width: 767px) {
    .agenda .content .agendaRow {
        flex-direction: column;
    }
    .agenda .content .agendaRow .activity {
        margin-left: 0;
        margin-top: 5px;
    }
    .agenda .content .agendaRow {
        margin: 30px 0;
    }
    .agenda .content {
        padding: 1px 20px;
    }
}

.sponsors {
    margin-top: 10px;
    margin-bottom: 15px;
}

.sponsors .sponsor-level {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #1c1c1c;
}

.sponsors .sponsor-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.sponsors .sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    margin-left: 15px;
    margin-right: 15px;
}

/* Sponsor logo sizes based on level */
.sponsors .platinum .sponsor-logo img {
    height: 60px;
}

.sponsors .gold .sponsor-logo img {
    height: 50px;
}

.sponsors .silver .sponsor-logo img {
    height: 40px;
}

.sponsors .bronze .sponsor-logo img {
    height: 40px;
}

.sponsors .friends .sponsor-logo img {
    height: 30px;
}

@media only screen and (max-width: 767px) {
    .sponsors .platinum .sponsor-logo img {
        height: 50px;
    }

    .sponsor-level-bronze, .sponsor-level-friends {
        margin-top: 28px!important;
    }
    

}

.sponsors p a {
    color: #1c1c1c;
}

.ending {
    background-color: #1c1c1c;
    color: white;
    margin-top: 30px;
    padding: 20px;
    display: flex;
    padding-bottom: 24px;
}

.ending .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.ending .button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    color: #1c1c1c;
    cursor: pointer;
    text-decoration: none;
    padding: 10px 60px;
    margin-top: 10px;
    min-width: 200px;
}

@media only screen and (max-width: 767px) {
    .ending {
        padding-bottom: 40px;
    }
    .ending .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .ending .button {
        width: 100%;
    }
}

.ending .button:hover {
    background-color: #4f4f4f;
    color: white;
    transition: background-color 0.2s ease;
}

.ending h1 {
    font-family: "Helvetica";
    font-size: 38px;
    margin-top: 24px;
    color: #f1f1f1;
}

.footer {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.footer .container img {
    height: 38px;
    margin-bottom: 8px;
}

.footer .container .box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

@media only screen and (max-width: 767px) {
    .footer .container .box {
        align-items: center;
        margin: 0 14px;
    }
    .footer .container img {
        margin-left: 14px;
    }
    .footer .container .privacy {
        margin-left: 14px;
    }
}

.footer .container .privacy {
    color: rgb(95, 95, 95);
    margin-top: 10px;
}

.footer .container .box a {
    color: black;
    font-size: 28px;
    margin-left: 20px;
}