@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&display=swap");

/* Homepage for Impuls */

/* Main */

/* Header */

.header {
    color: var(--textColorLight);
    background: linear-gradient(180deg, var(--primaryColorMid) 0%, var(--primaryColor) 100%);
    margin: 0;
    min-height: 68vh;
    padding-top: 58px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.hero-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    padding: 4rem 1rem 3.5rem;
}

.hero-text-box .text {
    color: var(--textColorLight);
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 100%;
}

.hero-text-box .text h1 {
    text-transform: uppercase;
    display: block;
    margin-bottom: 0;
    font-size: clamp(3.2rem, 1.9rem + 4.4vw, 6.2rem);
    font-family: "Libre Baskerville", "Bookman Old Style", Georgia, serif;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transform-origin: 50% 50%;
    -webkit-animation: impulsHeroTitle 1.3s 2.5s both cubic-bezier(.22,.61,.36,1);
    animation: impulsHeroTitle 1.3s 2.5s both cubic-bezier(.22,.61,.36,1);
}

.hero-text-box .text h3 {
    display: block;
    text-align: center;
    font-size: clamp(0.92rem, 0.72rem + 0.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: min(1vh, 1vw);
    -webkit-animation: fadeIn 4.5s ease-in;
    animation: fadeIn 4.5s ease-in;
    white-space: nowrap;
}

.albin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(14rem, 34vh, 24rem);
    aspect-ratio: 1 / 1;
    height: auto;
    margin-top: 0;
    overflow: visible;
    position: relative;
}

.albin svg,
.albin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.albin svg {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.20));
    overflow: visible;
}

.hero-text-box .albin path {
    stroke: var(--secondaryColor);
    stroke-width: 0.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: var(--secondaryColor);
    fill-opacity: 0;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 1;
    -webkit-animation: animate 7s linear forwards;
            animation: animate 7s linear forwards;
}

.hero-text-box img {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.20));
    -webkit-animation: impulsLogoEnter 1.1s both cubic-bezier(.18,.84,.32,1);
    animation: impulsLogoEnter 1.1s both cubic-bezier(.18,.84,.32,1);
}

@keyframes impulsLogoEnter {
    0% {
        opacity: 0;
        transform: scale(0.88) rotate(-4deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@-webkit-keyframes impulsLogoEnter {
    0% {
        opacity: 0;
        transform: scale(0.88) rotate(-4deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes impulsHeroTitle {
    0% {
        opacity: 0;
        transform: scale(0.88);
        filter: blur(4px);
    }
    60% {
        opacity: 1;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@-webkit-keyframes impulsHeroTitle {
    0% {
        opacity: 0;
        transform: scale(0.88);
        -webkit-filter: blur(4px);
                filter: blur(4px);
    }
    60% {
        opacity: 1;
        -webkit-filter: blur(1px);
                filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        -webkit-filter: blur(0);
                filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-text-box .albin path,
    .hero-text-box img,
    .hero-text-box .text h1 {
        -webkit-animation: none;
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* Albin animation */
@-webkit-keyframes animate {
    0% {
        opacity: 0;
        fill-opacity: 0;
        stroke-dashoffset: 1;
    }
    48% {
        opacity: 1;
        fill-opacity: 0;
        stroke-dashoffset: 0.76;
    }
    54% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0.72;
    }
    80% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
}
@keyframes animate {
    0% {
        opacity: 0;
        fill-opacity: 0;
        stroke-dashoffset: 1;
    }
    48% {
        opacity: 1;
        fill-opacity: 0;
        stroke-dashoffset: 0.76;
    }
    54% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0.72;
    }
    80% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: 1;
        fill-opacity: 1;
        stroke-dashoffset: 0;
    }
}

/*About content*/

.about{ 
    background-color: var(--secondaryColor);
    color: var(--textColorDark);
    min-height: 35vh;
    padding: 20px;
}

/*NEWS-EVENTS*/

.news-events {
    margin-top: 0;
    background: linear-gradient(180deg, var(--secondaryColorDarker) 0%, var(--secondaryColor) 100%);
    word-break: break-all;
    word-break: break-word;
}


/*News start*/

.main-container{
    grid-template-areas: 
      ". news events ."
      ". news extras ."
      ". ig-scroll ig-scroll .";
}


div.news-content a{
    color: var(--linkColorDark);
}

div.news-content a:hover{
    color: var(--linkColorDarkHover);
}

.more-news{
    /* Sits directly on the navy page background, not a white card, so this
     * uses --linkColorDeepHover rather than --linkColorDeep: the fully dark
     * shade only clears ~1.6:1 contrast here, well under WCAG's 3:1 minimum
     * for text. --linkColorDeepHover already clears 3.8:1. */
    color: var(--linkColorDeepHover);
}

.more-news:hover{
    color: var(--linkColorDeepLight); /* ~6.2:1 on navy */
}


@keyframes shine {
    0% {
        background-position: -100% 0, 0 0;
    }
    50% {
        background-position: 200%0, 0 0;
    }
    100% {
        background-position: -100% 0, 0 0;
    }
}

.aa-img {
    background-color:transparent;
    width:35px;
    height:35px;
    border-radius:50px;
    box-shadow: 0 0 6px 2px rgb(201, 115, 142);
    -webkit-animation: pulse 2s linear 1s infinite;
    animation: pulse 2s linear 1s infinite;
    position: absolute;
    left: 95%;
    bottom: 0%;
  }


.aa-img img{
    max-width: 100%;
    border-radius: 20px;
    -webkit-filter: saturate(45%); /* Safari 6.0 - 9.0 */
    filter: saturate(45%);
}

@-webkit-keyframes pulse {
    0% { box-shadow:0 0 6px 2px rgb(201, 115, 142);}
    50% { box-shadow:0 0 14px 2px rgb(201, 115, 142);}
    100% { box-shadow:0 0 6px 2px rgb(201, 115, 142);}
}

@keyframes pulse {
    0% { box-shadow:0 0 6px 2px rgb(201, 115, 142); }
    50% { box-shadow:0 0 14px 2px rgb(201, 115, 142); }
    100% { box-shadow:0 0 6px 2px rgb(201, 115, 142); }
}
    

/*News end*/

/*Sidebar*/

/*Event start*/

  
.event-card > .card .badge {
    background: var(--primaryColorLighter);
  }
  
  
.event-card a{
    color: var(--linkColorDeep);
    border-top: 2px solid var(--linkColorDeep);
  }

.event-card a:active{
    color: var(--linkColorDeep);
  }

.event-card a:hover{
    border-top: 2px solid var(--linkColorDeepHover);
    color: var(--linkColorDeepHover);
  }
  

.chevron-box {
    border: 1px solid var(--linkColorDark);
}


.events-container{
    grid-area: events;
}


.event-box{
    display: grid;
    /*background-color: var(--primaryColorLighter);*/
    border-top: var(--linkColorDark) solid 2pt;
    display: grid;
}


.more-events-button{
    color: var(--linkColorDeep);
}

.more-events-button:hover{
    color: var(--linkColorDeepHover);
}
/*Events end*/

/*Calendar*/
.calendar-box{
    border: 2px solid rgb(163, 163, 163);
}


div.calendar-container a {
    color: var(--linkColorDark);
}


/* "Today" only gets its own highlight when it has no event that day —
 * matching the site's own background makes it read as an absence of the
 * usual white day-circle rather than a competing color. When an event
 * also lands on today, .calendar-eventday below takes over instead. */
.vanilla-calendar-day__btn_today:not(.calendar-eventday) {
    color: var(--textColorLight) !important;
    background-color: var(--primaryColor) !important;
}

.vanilla-calendar-day__btn_today:not(.calendar-eventday):hover {
    background-color: var(--primaryColorMid) !important;
}

/* Today + an event on the same day: keep the event's own color (it's the
 * more important signal) but add a ring so the day doesn't lose its "this
 * is today" affordance entirely. */
.vanilla-calendar-day__btn_today.calendar-eventday {
    box-shadow: inset 0 0 0 2px var(--textColorLight) !important;
}

.vanilla-calendar-day__btn_selected {
    background-color: #A3A3A3 !important;
}

.vanilla-calendar-day__btn_selected:hover {
    background-color: #7A7A7A !important;
}


/* Calendar tooltip */

.calendar-eventday {
    color: white !important;
  /* Override vanilla calendar default
   * Dont use this class for anything else*/
  background-color: var(--linkColorDeep) !important;
}

.calendar-eventday:hover {
    background-color: var(--linkColorDeepHover) !important;
}

.calendar-eventday-popup {
  /* Override vanilla calendar default
   * Dont use this class for anything else*/
  color: var(--linkColorDeep);
}

.calendar-eventday-popup:hover {
    color: var(--linkColorDeepHover);
}

/*Calendar end*/

/*extras start*/

.extra-container{
    grid-area: extras;
    display: block;
}

.extra-container a {
    color: var(--linkColorDark);
}

.extra-container a:hover {
    color: var(--linkColorDarkHover);
}

/*extras end*/

/*Sidebar end*/

/*Instagram start*/

.ig-scroll {
    --ig-height: 150px;
    /* The track is the doubled --ig-items, so the duration is halved below. */
    --ig-seconds-per-item: 4.5s;
    grid-area: ig-scroll;
    display: grid;
    grid-template-columns: 0 1fr 0;
    grid-template-rows: auto auto;
    grid-template-areas:
      ". ig-title ."
      ". ig-image .";
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.ig-title {
    grid-area: ig-title;
}

div.scroll-content img {
    height: var(--ig-height);
    width: auto;
}

.scroll-content {
    grid-area: ig-image;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: var(--ig-height);
}

.images {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    width: max-content;
    animation: slideshow calc(var(--ig-items, 32) * var(--ig-seconds-per-item) / 2) linear infinite;
}

.images a {
    flex: none;
    margin-right: 0.5rem;
}

.scroll-content:hover .images,
.scroll-content:focus-within .images {
    animation-play-state: paused;
}

.scroll-content img:hover {
    box-shadow: 4px 6px 9px 0px rgba(0, 0, 0, 0.5);
    transition: .2s ease;
}

@keyframes slideshow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .images {
        animation: none;
    }
}

@media screen and (max-width: 550px) {
    .ig-scroll {
        --ig-height: 112px;
        --ig-seconds-per-item: 3.4s;
    }
}

/*Instagram end*/

/* Generic animations*/

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*width responsiveness*/


@media screen and (max-width: 991px){
    .main-container{
        grid-template-areas:
          ". events ."
          ". news ."
          ". extras ."
          ". ig-scroll .";
    }

}

@media screen and (max-width: 550px) {

    .aa-img {
        left: 85%;
      }

}

/*misc*/
.heading-link a{
    color: var(--textColorDark)
}

.heading-link a:hover{
    color: var(--textColorMedium)
}
