:root{
    --c1: #fdeafb;
	--c2: #2e212b;
    --c3: #ff586e;

    --c4: #ff70a9;
    --c5: #ffc266;


    font-size: 20px;
    scroll-behavior: smooth;
}

@font-face {
	font-family: "Fira Regular";
	src: url("../fonts/FiraSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;	
}

@font-face {
	font-family: "Fira Italic";
	src: url("../fonts/FiraSans-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;	
}

@font-face {
	font-family: "Fira Light";
	src: url("../fonts/FiraSans-Light.woff2") format("woff2");
	font-weight: 200;
	font-style: normal;	
}

::selection{
	background-color: var(--c1);
	color: white;
}

.de{
    display: none;
}

@media (prefers-color-scheme: light) {
    html{
        filter: invert(100%);
    }
}

body{
    margin: 30px 1% 30px 2%;
    background-color: var(--c2);
    color: var(--c1);
    font-family: "Fira Regular", sans-serif;
}

b{
    font-family: "Fira Regular", sans-serif;
}

#logo-a{
    position: fixed;
    width: 100px;
    top: -5px;
    right: 1%;
    z-index: 2;
}

#language{
    position: fixed;
    top: 65px;
    right: calc(1% + 19px);
    padding: 0;
    cursor: pointer;
    width: max-content;
    background-color: transparent;
    border: none;
    font-family: "Fira Light";
    color: white;
    font-size: 1.2rem;
    z-index: 2;
    transition: text-shadow 150ms;
}

#language:hover{
    text-shadow: 0px 0px 6px white;
}

#about{
    max-width: 77vw;
}

#expanded-about{
    max-width: 77ch;
    line-height: 1.3em;
    font-family: "Fira Light";
    z-index: 10;
    position: relative;
    text-shadow: 0px 0px 2px var(--c2), 0px 0px 6px var(--c2);
}

#expanded-about summary{
    margin-bottom: 1em;
    font-size: 1.3rem;
    cursor: pointer;
    width: max-content;
}

#expanded-about summary:hover{
    text-shadow: 0px 0px 4px white;
}

#fcf-form-id{
    display: none;
}

h1{
    position: relative;
    font-size: 3.6rem;

    line-height: 1.2em;
    margin-bottom: 0.5em;
    z-index: 2;
    text-shadow: 0px 0px 2px var(--c2), 0px 0px 6px var(--c2);
}


h2{
    position: relative;
    font-size: 1.3rem;
    line-height: 1.4em;
    margin-bottom: 1em;
    max-width: 60ch;
    font-family: "Fira Light";
    z-index: 2;
    text-shadow: 0px 0px 4px var(--c2), 0px 0px 6px var(--c2);
}

main {
    width: 100%;
    background-color: var(--c2);
    border-top: 2px solid var(--c3);
    position: relative;
    z-index: 2;
    margin-bottom: 4em; 

    display: grid;
    grid-template-columns: 1fr minmax(320px, 1024px) 1fr;
}

#call-list{
    grid-column:  2;
    padding-top: 2em;
    display: grid;
    grid-row-gap: 2em;
    grid-column-gap: 2em;
    grid-template-columns: 1fr;
}

#tag-pool{
    grid-row: 1;
}

#tag-pool button{
    padding: 0.6em 1em;
    margin: 0.6em;
    font-size: 0.8rem;
    cursor: pointer;
    background-color: var(--c2);
    font-family: "Fira Light";
    color: white;
    border: 1px solid var(--c3);
    transition: background-color 200ms, box-shadow 250ms, transform 250ms;
}

#tag-pool button:hover{
    box-shadow: 0px 0px 8px var(--c3);
    transform: rotate(5deg);
}

#tag-pool button:active{
    background-color: var(--c3);
    color: var(--c1);
}

.active-tag{
    box-shadow: 0px 0px 8px var(--c3);
    transform: rotate(5deg);
    color: var(--c1);
    background-color: var(--c3) !important;
     font-family: "Fira Regular" !important;
}

.blur-out{
    filter: blur(12px);
}

.old{
    display: none !important;
}

#reset{
    background-image: linear-gradient(to bottom, var(--c3), 50%, var(--c2));
    color: var(--c1) !important;
    font-family: "Fira Regular" !important;
    padding: 1em 1.2em !important;
    margin: 0.2em !important;
    transition: opacity 300ms !important;
}

#top-button{
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    text-decoration: none;
    background-color: var(--c3);
    color: var(--c1);
    padding: 0.4em 0.6em 0.5em 0.6em;
    font-size: 1.2em;
    transition: background-color 200ms, color 250ms;
}

#top-button:hover{
    background-color: var(--c1);
    color: var(--c3);
}

.reset-active{
    opacity: 1 !important;
    pointer-events: all !important;
}

.reset-inactive{
    opacity: 0 !important;
    pointer-events: none !important;
}

.call{
    display: grid;
    grid-template-columns: 1fr;
    border-top: 2px solid var(--c3);
    margin-bottom: 4em;
    transition: filter 250ms;
}

.call-title{
    font-size: 1.8em;
    line-height: 1.2em;
    color: var(--c3);
    cursor: pointer;
    transition: text-shadow 200ms;
}

.call-title:hover{
    text-shadow: 0px 0px 6px var(--c3);
}

.institution{
    font-size: 1.5em;
    margin-bottom: 1em;
}

.call-info{
    font-size: 1rem;
    line-height: 1.4em;

    font-family: "Fira Light";
}

.call-restrictions{
    font-size: 1rem;
    line-height: 1.4em;
    margin-top: 1em;
    color: var(--c3);

    font-family: "Fira Light";
}


summary::marker{
    color: white !important;
    font-size: 1.2rem;
} 

h4{
    grid-row: 3;
    font-size: 1.1rem;
    line-height: 1.3em;
    max-width: 68ch;
    margin-right: 20px;
    font-family: "Fira Light";
}

.general-info-container{
    vertical-align: baseline;
}

h5{
    font-size: 1.5rem;
    line-height: 1.2em;
    padding-top: 0.5em;
    padding-right: 0.5em;
    color: var(--c1);
    font-family: "Fira Regular";
    width: 90%;
}

h5:hover{
    text-shadow: 0px 0px 6px var(--c3);
    cursor: pointer;
}

time{
    position: relative;
    background-color: var(--c3);
    padding: 0.2em 0.4em;
    color: var(--c2);
    margin-bottom: 0.5em;
    justify-self: end;
    width: max-content;
    font-size: 1.2em;
    font-family: "Fira Regular";  
}

details{
    align-self: end;
}

.summary-calls{
    grid-row: 2;
    font-family: "Fira Italic";
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    cursor: pointer;
}

.summary-calls:hover{
    text-shadow: 0px 0px 6px white;
}

a{
    color: var(--c3);
    margin-bottom: 0.2em;
    margin-top: 0.2em;
}

a:hover{
    text-decoration: none;
    text-shadow: 0px 0px 6px var(--c3);
}

details[open] summary ~ * {
    animation: sweep .5s ease-in-out;
}
  
@keyframes sweep {
    0%    {opacity: 0; margin-top: -20px}
    100%  {opacity: 1; margin-top: 0px}
}

  @media (max-width: 640px) {

    #about{
        max-width: 95vw;
    }

    #logo-a, #language{
        position: absolute;
    }

    body{
        margin: 100px 2% 30px 2%;
    }
}
