
/* Full-screen overlay for the animation */
#animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background */
    z-index: 9999;
    overflow: hidden;
}

/* Math symbols */
.math-symbol {
    position: absolute;
    opacity: 0;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fly 6s ease-in-out forwards;
    aspect-ratio: 1/1;
}

/* Random positions and animations */
.math-symbol:nth-child(1) { animation-delay: 0s; }
.math-symbol:nth-child(2) { animation-delay: 0.5s; }
.math-symbol:nth-child(3) { animation-delay: 1s; }
.math-symbol:nth-child(4) { animation-delay: 1.5s; }
.math-symbol:nth-child(5) { animation-delay: 2s; }
.math-symbol:nth-child(6) { animation-delay: 2.5s; }
.math-symbol:nth-child(7) { animation-delay: 3s; }
.math-symbol:nth-child(8) { animation-delay: 3.5s; }
.math-symbol:nth-child(9) { animation-delay: 4s; }
.math-symbol:nth-child(10) { animation-delay: 4.5s; }

/* Flying animation */
@keyframes fly {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: translate(calc(50vw - 25%), calc(80vh - 40%)) rotate(180deg);
        opacity: 1;
    }
    50% {
        transform: translate(calc(80vw - 40%), calc(50vh - 25%)) rotate(360deg);
        opacity: 1;
    }
    75% {
        transform: translate(calc(50vw - 25%), 0) rotate(540deg);
        opacity: 1;
    }
    100% {
        transform: translate(0, calc(100vh - 50%)) rotate(720deg);
        opacity: 0;
    }
}


/* Fade out the overlay */
#animation-overlay.fade-out {
    animation: fade-out 1s ease-in-out forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Background image for the animation section */
#animation {
    position: relative;
    background-image: url('../assets/img/animation_background.svg');
    background-size: cover;
    background-position: center;
    max-width: 100%;
    aspect-ratio: 16/9; 
    mask-image: linear-gradient(to bottom, black 30%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent);
}




/* icons */

.social-icon img {
    height: 2.0rem;
    width: 2.0rem;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}


/* article */

.article {
    border: 3px solid black; 
    border-radius: 10px; 
    margin: 10px 0px 10px 0px; /* top right bottom left */ 
    padding: 10px;
    width: 100%;
}

.img-fluid-article {
    width: 18rem;
    height: auto;
}


@media (min-width: 768px) {
  .article {
    width: 20rem;
  }
}
@media (min-width: 992px) {
  .article {
    width: 20rem;
  }
}
/* aspect ratio of hobbies should be 10:7 */
.force-10-7-ar {
    aspect-ratio: 10 / 7;
}

.center-h-div{
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-block {
    background-color: #94b4c1;
    border-radius: 2.5rem;
}

.btn-border {
    border: 2px solid black !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background-color: transparent !important;
    color: black !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: background-color 0.3s, color 0.3s, transform 0.3s !important;
}

.text-height {
    height: 100%;
}

.list-nobullet {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.list-nobullet li {
    margin: 1rem 0;
}

/* colors */
.bronze {
    color: rgb(205, 127, 50);
}

.silver {
    color: rgb(192, 192, 192);
}

.gold {
    color: rgb(255, 215, 0);
}

/* talks */
li.talk-venue {
    list-style-type: none;
    border-radius: 8px;
    text-align: right; margin: 5px 0;
}

.talk-venues {
}

.talk-name {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  .talk-name  {
    font-size: 2rem;
  }
}