html,body { min-height: 100dvh; position: relative;}

a {
    color: unset;
    text-decoration: unset;
}

#content-pane {
    font-family: 'MuktaExtraLight';
    
    width: 60%;
    margin: auto;
    clear:right; 
    background-color: #090909;
    color: #FAF9F6;
    border-top: 8px solid;
    border-bottom: 8px solid;
    border-image: linear-gradient(to top, #5ac3b0 49%, #5ac3b0 50%, #de5935 51%, #de5935 100%);
    border-image-slice: 100% 0% 100% 0%;
    box-sizing: border-box;
    box-shadow: 0px 0px 4px 4px rgba(0,0,0,0.6) inset;

    min-width: 600px;
}

#content-pane::after {
    content: "";
    clear: both;
    display: block;
}

.articleText {
    display: inline;
    font-size: 1.25em;
    line-height: 2em;
    font-family: 'MuktaExtraLight';
    text-align: justify;
    text-justify:distribute-all-lines;
    float: left;
    margin-bottom: 1.5em;
}

.imgContainer {
    padding: 0em 0.5em 0em 2.5em;
    float: right;
    shape-outside: ellipse();
}

.imgContainer > img {
    width: 20em;
    max-width: 100%;
    height: auto;
}

article {
    display: block;
    padding: 1.5em;
    padding-bottom: 2em;
    height: 100%;
}

article  h1 {
    color: #FDF0C8;
    font-variation-settings: 'opsz' 18;
    text-align: left;
    font-size: 2.5em;
    text-decoration-thickness: 5px;
    margin: 0;
    margin-bottom: 0.5em;
    font-family: 'BodoniModa';
    padding-left: 0.25em;
    border-left: 4px solid #f7cd46;
    
}

#impressum {
    text-align: center;
    margin-top: 2em;
}

h2 {
    margin: 0;
}

#impressum > h2 {
    text-decoration: underline;
    text-align: center;
    font-size: 1.2em;
    margin: 0;
}

#contact-form  {
    max-width:100%;
    width: 50em;
    margin:auto;
}


#contact-form > div {
    display: flex;
    flex-direction: column;
    margin-top: 1em;
}

#hamburger-icon {
    font-size: 1.2em;
    margin-bottom: 0.3em;
}

label {
    font-size: 1.2em;
    margin-bottom: 0.2em;
}

button {
    display: block;
    margin:auto;
    padding: 0.2em 0.5em;
    margin-top: 1.5em;
    color:black;
    font-size: 1.2em;
    background-color: #FDF0C8;
    border: 2px inset #f7cd46;
}

button:hover {
    cursor: pointer;
}

input {
    height:2em;
}

textarea {
    resize:none;
    height: 10em;
}

input, textarea {
    font-family: 'Times New Roman';
    border:2px inset #f7cd46;
    background-color: #FAF9F6;
    font-size: 1em;
}

#timetable {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    grid-template-rows: auto;
    margin-top: 1.5em;
}

#timetable > span {
     border-top: 1px solid black;
     padding-top:1em;
     padding-bottom: 1em;
     padding-right: 1em;
     height: 3em;
     font-size: 1.2em;
     line-height: 1.5em;
}

#timetable > span:nth-child(4n) {
    text-align: right;
}

#timetable > span:nth-child(4n-1) {
    text-align: justify;
    text-align-last:center;
}

#timetable label {
    text-align: justify;
    text-align-last:center;
}

#timetable label::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'><polyline points='6 9 12 15 18 9'></polyline>/%3E%3C/svg%3E");
    position: relative;
    bottom: -0.3em;
    left:0.1em
}

#timetable label:hover {
    cursor: pointer;
}

.date-toggle {
    display: none;    
}

.date-list {
    display: none;
}

.date-toggle:checked ~ .date-list {
    display: block;
    background-color: black;
    color: #FDF0C8;

    text-align: justify;
    text-align-last:center;
    
    max-height: 4em;
    overflow-y: scroll;

    width: fit-content;
    padding: 0 0.5em;
    margin: 0 auto;


    position:relative;
}

.date-list {
    /* Foreground, Background */
    scrollbar-color: #999 #333;
    scrollbar-width: thin;
  }
  .date-list::-webkit-scrollbar {
    width: 10px; /* Mostly for vertical scrollbars */
    height: 10px; /* Mostly for horizontal scrollbars */
  }
  .date-list::-webkit-scrollbar-thumb { /* Foreground */
    background: #999;
  }
  .date-list::-webkit-scrollbar-track { /* Background */
    background: #333;
  }  

#timetable > span:nth-child(4n-2) {
    text-align: center;
}


#navigation {
    margin-bottom: 2.5em;
}

#slideshow{
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
#slideshow > .bgi {
    position: absolute;
    width: 100%;
    height: 100%;

    animation: imageAnimationSubsites 63s infinite 0s;
}


#home-button > svg {
    fill: #FDF0C8;
}

#home-button {
    display: flex;
    justify-content: center; 
    width: fit-content;
    padding: 0.05em;
    position: absolute;
    left: 1em;
}

#home-button > svg {
    width: 2.5em;
    height: auto;
    color: #FDF0C8;
}


#youtube-embeds {
    margin-top: 2em;
    display: flex;
    flex-flow: column;
    justify-content: center;
    width: 100%;
}

#youtube-embeds > div {
    max-width: none;
    min-width: none;
    padding: 1em;
    margin: 1em;
    z-index: 0;
}    

#calendar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#calendar-header {
    font-family: BodoniModa;
    font-variation-settings: 'opsz' 8;
    background-color: #f7cd46;
    font-size: 2.25em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    color: black;
}

#calendar-header > h2 {
    margin: 0.5em;
    font-size: 0.75em;
}

#days {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    background-color: #f7cd46;
    color: black;
    border-bottom: 3px solid black;
    border-top: 3px solid black;
    font-size: 1.2em;
}

#days > div {
    padding: 3px;
    padding-top: 5px;
}

#calendar-body {
    display: grid;
    font-size: 1.2em;
    text-align: center;
    color:black;
    grid-template-columns: repeat(7, 1fr);
    background-color: #333;
    transition: opacity 0.4s ease;
    opacity: 1;
}

#calendar-body > div {
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    box-sizing: border-box;
}

#calendar-body > div:nth-child(7n) {
    border-right: none;
}

#calendar-body > div:nth-last-child(-n+7) {
    border-bottom: none;
}

#calendar-body.fade-out {
    opacity: 0;
}

#calendar-body div {
    aspect-ratio: 1/1;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#calendar-body > div.today {
    background-color: #de5935;
}

.next-date, .prev-date {
    background-color: lightgray!important;
}

#calendar-body > div.event {
    background-color: #5ac3b0!important;
    box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.5) inset;
    font-size: 1.1em;
    cursor: pointer;
}


.change-month {
    cursor: pointer;
}



@media screen and (max-device-width: 1000px) {
    #timetable > span:nth-child(4n-1) {
        display: block;
    }
    #timetable {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        margin-top: 1.5em;
    }

    #timetable > span {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 4.5em;
        line-height: 1.5em;
        padding: 0em;
   }

   #timetable > span:nth-child(4n-1), #timetable > span:nth-child(4n){
        border-top: none;
    }

    #timetable > span:nth-child(4n-1) {
     text-align: center;
     text-align-last:center;
    }
 
}



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

    #timetable > span:nth-child(4n-1) {
        display: block;
    }

    #home-button {
        position: fixed;
    }

    #timetable {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 1.5em;
    }

    #timetable > span {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 4.5em;
        line-height: 1.5em;
        padding: 0em;
   }

   #timetable > span:nth-child(4n-1) {
    text-align: center;
    text-align-last:center;
   }

   #timetable > span:nth-child(4n-2),#timetable > span:nth-child(4n-1), #timetable > span:nth-child(4n){
    border-top: none;
    }

    #home-button {
        border: none;
        top:0.35vh;
    }

    #home-button > svg {
        fill: black;
        color: black;
        height: 5.6vh;
        width: auto;
    }

    #navigation {
        z-index: 1;
        margin-bottom: 0;
        position: sticky;
        top:0;
    }

    #content-pane {
        min-width: unset;
        width: 100dvw;
        min-height: 92dvh;
        border-top: none;
        border-image-slice: 0% 0% 100% 0%;
    }
    
    #menu-toggle:checked ~ #content-pane {
        display: none;
    }

    .imgContainer > img {
        width: 100%;
        height: auto;
    }

    .imgContainer {
        shape-outside: unset;
        clear: right;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0em;
        margin-bottom: 1.5em;
        padding: 0;
    }
}

@keyframes imageAnimationSubsites { 
    0% { opacity: 0; animation-timing-function: ease-in; visibility: visible; }
    1% { opacity: 0.5; animation-timing-function: ease-out; }
    11% { opacity: 0.5; }
    12% { opacity: 0; visibility: hidden; }
    100% { opacity: 0; }
}

 /* The Modal (background) */
 .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
  }
  
  /* Modal Content/Box */
  .modal-content {
    display: grid;
    grid-template-rows: 1fr 2fr 1fr;
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    font-variation-settings: 'opsz' 8;
  }
  
#event-name {
    padding-left: 0.5em;
    font-size: 2em;
    font-weight: bold;
}
/* The Close Button */
.close {
    padding-right: 1em;
    color: black;
    margin-left: auto;
}
  
  .close > svg {
    fill:black;
    width: 2.5em;
    height: auto;
  }

  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  } 

   /* Modal Header */
.modal-header {
    margin-top: 0;
    background-color: #5ac3b0;
    color: black;
    display: flex;
    justify-content: center; /* Align horizontal */
    align-items: center; /* Align vertical */
    flex-flow: row;
  }

  .modal-body {
    background-color: #f7cd46;
    color: black;
    padding: 1em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  /* Modal Footer */
  .modal-footer {
    background-color: #de5935;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #event-link {
    color: black;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-size: 1.75em;
  }

#event-date {
    text-align: start;
    font-size: 1.75em;
}

#event-location {
    grid-column: 1 / span 2;
    text-align: start;
    font-size: 1.75em;
}

  #event-time {
    grid-column: 2;
    text-align: end;
    font-size: 1.75em;
  }
  
  /* Modal Content */
  .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 60%; /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
  }
  
  /* Add Animation */
  @keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
  } 

  @media screen and (max-device-width: 615px) {
    article {
        padding: 1.5em 0.7em;
    }    

    .modal-content {
        width: 100%;
    }

    #slideshow > .bgi {
        animation: imageAnimation 63s infinite 0s;
    }
}