/* Homepage for DaTe */

/* Main */

/* Header */

.header {
    color: var(--secondaryColor);
    background-color: var(--primaryColor);
    min-height: 45vh;
}

.hero-text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 3vh;
}

.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: min(calc(0.96*7vh), 7vw);
    font-weight: 400;
    -webkit-animation: fadeIn 3s;
    animation: fadeIn 3s;
}
.hero-text-box .text h3 {
    display: block;
    text-align: center;
    font-size: min(2.5vh, 3.5vw);
    font-weight: 700;
    letter-spacing: 0.74em;
    -webkit-animation: fadeIn 4.5s ease-in;
    animation: fadeIn 4.5s ease-in;
}

.scaling-svg-container {
    margin-top: 55px;
    position: relative;
    height: 30vh;
    width: 100%;
    padding: 0;
    /* override this inline for aspect ratio other than square */
}

.scaling-svg-container svg {
    height: 100%;
    width: 100%;
}

.hero-text-box path {
    stroke: var(--secondaryColor);
    fill: var(--secondaryColor);
    stroke-dasharray: 25000;
    opacity: 10;
    fill-rule: evenodd;
    animation: animate 3.5s cubic-bezier(0,.18,.50,.1);
}

/* Albin animation */
@keyframes animate {
    1% {
        opacity: 0;
        fill: none;
        stroke-dashoffset: 25000;
    }
    40% {
        opacity: 10;
        fill: none;
        stroke-dashoffset: 24500;
    }
    80% {
        fill: rgba(255,255,255,0);
        stroke-dashoffset: 23500;

    }
    100% {
        opacity: 10;
        fill: rgba(255,255,255,1);
        stroke-dashoffset: 0;
    }
}

/*NEWS-EVENTS*/

.news-events {
    margin-top: 2vh;
    background: linear-gradient(180deg, var(--secondaryColor) 0%, rgb(214, 231, 214) 100%);
    min-height: 100vh;
    word-break: break-all;
    word-break: break-word;
    border-radius: 5px;
}


/*News start*/

.main-container{
    grid-template-areas: 
      ". news sidebar ."
      ". ig-scroll ig-scroll .";
    align-items: start;
}

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


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

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

.more-news{
    color: var(--linkColor);
}

.more-news:hover{
    color: var(--linkSecondaryHover);
}


@-webkit-keyframes pulse {
    0% { text-shadow:0 0 1px #ff9600;}
    50% { text-shadow:0 0 6px #ff9600;}
    100% { text-shadow:0 0 1px #ff9600;}
}

@keyframes pulse {
    0% { text-shadow:0 0 1px #ff9600; }
    50% { text-shadow:0 0 6px #ff9600; }
    100% { text-shadow:0 0 1px #ff9600; }
}
    

/*News end*/

/*Event start*/

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

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


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


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


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

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

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


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


.clearfix {
  position: absolute;
  left: 0;
  right: 0;
}

/* Calendar tooltip */

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

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

/*Calendar end*/

/*logos start*/

.logo-container{
    grid-area: logos;
    display: block;
    overflow: hidden;
}

.carousel-logos{
    border-top: solid;
    border-bottom: solid;
    border-width: 2px;
    border-color: rgb(180, 180, 180);
}

.company-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    /* keep img ratio correct */
    width: auto !important;
}

.company-logo img{
    max-height: 100px;
    max-width: 100%;
    /* keep img ratio correct */
    height: auto !important;
}

/*logos end*/

/*Sidebar end*/

/*ig scroll*/

.ig-scroll{
    /* 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;
    grid-template-areas:
      ". ig-image .";
    padding-top: 2rem;
    padding-bottom: 2rem;
}

div.scroll-content img{
    max-height: 130px;
}

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

.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;
    }
}

/* 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 ."
          ". logos ."
          ". ig-scroll .";
    }

    .sidebar-container {
        display: contents;
    }

}

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

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