:root{
    --link-color: #007AFF;
    --link-color-hover: #004da0;
    --error-strong: #ff0000;
    --error-muted: #ffa9a9;
    --error-mid: #ff7e7e;
    --warning-strong: #c8ff00;
    --warning-muted: #eeffb0;
    --warning-mid: #eaff9d;
    --success-strong: #00c431;
    --success-muted: #a2ffb9;
    --success-mid: #7bff9c;
    --hover-transition-time: 0.1s;
}


body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > div{
    flex: 1;
}

*{
    padding: 0;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-decoration: none;
}
table{
    border-collapse: collapse;
    margin: auto;
}
th, td{
    border: 1px solid black;
    padding: 0.25rem 0.5rem;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr.successful{
    background-color: #cdffd0
}
tr.successful:nth-child(even){
    background-color: #aaffaf
}
.table-spacer-cell{
    border: none;
}

a{
    text-decoration: underline;
    color: var(--link-color);
    transition: color var(--hover-transition-time);
}
a:hover{
    color: var(--link-color-hover);
}
h1{
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
h2{
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
h3{
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
h4{
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

ul{
    padding: 0.5rem 0;
}
ul#formFieldList{
    list-style-type: none;
}
li{
    list-style-position: inside;
    margin: 0.5rem 0;
}

button, .button, .delete-button{
    color: white;
    border-radius: 0;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
}
@media (max-width: 1200px) {
    button, .button, .delete-button{
        padding: 0.5rem 1rem;
    }
}
button, .button{
    background-color: #2A4C96;
}
button:hover, .button:hover{
    background-color: #4468b8;
    color: white;
}

.delete-button{
    background-color: #962a2a;
}
.delete-button:hover{
    background-color: #c53b3b;
    color: white;
}

.button-container{
    list-style: disc;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.button-container-col{
    display: inline-flex;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.formfield-card-button-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-content{
    width: 95%;
    padding: 0;
    margin: 3rem auto 1rem auto;
}

.landing-page{
    width: 92%;
    max-width: 980px;
    margin: 0 auto;
    padding: 5rem 0 6rem;
}
.landing-header{
    border-left: 0.4rem solid #2A4C96;
    padding: 0 0 1rem 1.25rem;
    margin-bottom: 2rem;
}
.landing-kicker{
    color: #2A4C96;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.landing-header h1{
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    margin: 0.45rem 0 0.75rem;
}
.landing-header p:last-child{
    color: #555;
    font-size: 1.1rem;
}
.landing-events{
    display: grid;
    gap: 0.75rem;
}
.landing-section-title{
    margin: 2.5rem 0 1rem;
}
.landing-event{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #111;
    background: #f4f6fa;
    border: 1px solid #d9deea;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: border-color var(--hover-transition-time), transform var(--hover-transition-time);
}
.landing-event:hover{
    color: #111;
    border-color: #2A4C96;
    transform: translateX(0.25rem);
}
.landing-event h2{
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}
.landing-event p{
    color: #555;
    margin: 0;
}
.landing-event-arrow{
    color: #2A4C96;
    font-size: 1.75rem;
    flex: 0 0 auto;
}
.landing-empty{
    border: 1px solid #d9deea;
    padding: 1.5rem;
    color: #555;
}
.invitation-select{
    width: min(100%, 32rem);
    min-height: 12rem;
}
@media (min-width: 1200px) {
    .page-content{
        max-width: 1400px;
        width: 80%;
    }
}

@media (max-width: 1200px) {
    .hide-small{
        display: none;
    }
}
@media (min-width: 1201px) {
    .hide-large{
        display: none;
    }
}

.menubar{
    position: sticky;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.message-text{
    /* white-space: pre; */
    margin: 2rem 0;
}

.banner-container{
    position: relative;
    width: 100%;
    height: 20vh;
    min-height: 180px;
    margin-top: 1rem;
}
.banner-container img{
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.banner-image-gradient{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(1,57,95,0) 29%, rgba(2,0,36,0) 100%);
}
.formfield{
    width: 100%;
    display: flex;
    margin: 1rem 0;
    font-size: 1.25rem;
}
.formfield label{
    width: 100%;
    display: flex;
    gap: 1rem;
}
.formfield label span{
    min-width: 200px;
}
.formfield label input, .formfield label textarea{
    flex-grow: 1;
    font-size: inherit;
}
.url-label{
    font-family: monospace;
    font-size: 1rem;
}
.url-label input{
    font-family: monospace;
    font-size: inherit;
    width: 22ch;
}

.formfield-card{
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.formfield-options{
    margin: auto;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

button svg, .card-handle svg, .button svg{
    width: 24px;
    color: white;
}
button svg, .button svg{
    color: white;
}
.card-handle svg{
    color: black;
}

.textarea-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1rem;
}

.textarea-container > div > textarea{
    width: 100%;
    box-sizing: border-box;
}

.eventtitle-input{
    font-size: inherit;
    font-weight: inherit;
    max-width: 100%;
    box-sizing: border-box;
}

.inputfield{
    margin: 1rem 0;
}

.edit-hint{
    margin-top: 4rem;
}
.text-hint{
    margin: 0.25rem 0;
}
.span-hint{
    font-style: italic;
}

.checkbox-label{
    display: inline-flex;
    gap: 0.25rem;
}

#countdown{
    font-family: monospace;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 1rem;
}

.input-fieldtitle{
    width: 18ch;
}


.alert-success, .alert-warning, .alert-error{
    padding: 0.5rem 1rem;
    border-width: 1px;
    border-style: solid;
}
.alert-success{
    background-color: var(--success-muted);
    border-color: var(--success-strong);
}
.alert-warning{
    background-color: var(--warning-muted);
    border-color: var(--warning-strong);
}
.alert-error{
    background-color: var(--error-muted);
    border-color: var(--error-strong);
}

.event-registration-count, .event-registration-count-full{
    border-radius: 99999px;
    border: 1px solid;
    background-color: #dddddd;
    padding: 0.125rem 0.5rem;
    margin: 0.125rem 0.5rem;
    display: inline-block;
    color: black;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color var(--hover-transition-time);
}
.event-registration-count{
    border-color: black;
    background-color: var(--success-muted);
}
.event-list a:hover .event-registration-count{
    background-color: var(--success-mid);
}
.event-registration-count-full{
    border-color: black;
    background-color: var(--error-muted);
}
.event-list a:hover .event-registration-count-full{
    background-color: var(--error-mid);
}

.disclaimer-container{
    margin-top: 2rem;
}
.disclaimer-text{
    margin-bottom: 1rem;
}


.footer {
    min-height: 50px;
    border-radius: 0;
    background-color: #204b9b;
    border-color: #204b9b;
    color: #FFF;
    position: static;
    bottom: 0;
    width: 100%;
    margin-top: 10px;

}

.footer a:link, .footer a:visited{
    color: #FFF;
}

.footer .footer-menu {
    padding: 0;
}

.footer .footer-menu>li {
    list-style-type: none;
}

.footer .footer-menu>li>a {
    color: #FFF;
    font-size: 1.3em;
    font-weight: bold;
}

.footer > .container{
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem;
}