/* 
#6592CF
#243D83
#EEB850
*/

@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("/font/AtkinsonHyperlegible-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("/font/AtkinsonHyperlegible-Bold.ttf");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("/font/AtkinsonHyperlegible-Italic.ttf");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("/font/AtkinsonHyperlegible-BoldItalic.ttf");
    font-weight: bold;
    font-style: italic;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    background-image: url("/images/bg.png");
    font-family: "AtkinsonHyperlegible";
}

main {
    display: flex;
    padding: 60px 0;
    flex-flow: row wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

header,
footer {
    padding: 0;
    width: 100%;
    position: fixed;
    background: #243d83;
    color: #fff;
}

header {
    top: 0;
    z-index: 1000;
}

footer {
    bottom: 0;
    display: grid;
    grid: 20px / 1fr 5fr 1fr;
}

footer * {
    padding: 0 10px;
    margin: 0;
}

footer :first-child {
    text-align: left;
}

footer :last-child {
    text-align: right;
}

footer :nth-child(2) {
    text-align: center;
}

#headline {
    align-self: flex-start;
    width: 100%;
    text-align: center;
}

#subtitle {
    width: 100%;
    text-align: center;
    font-size: larger;
}

h1,
h2,
h3 {
    margin: 0 0 5px 0;
}

input {
    margin: 5px;
}

ul {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul {
    margin: 0 20px;
    height: 40px;
}

nav ul li {
    display: grid;
    height: 100%;
    grid: 1fr / 1fr;
    align-items: center;
}

nav ul li a {
    display: grid;
    padding: 0 10px;
    text-decoration: none;
    color: white;
    height: 100%;
    grid: 1fr / 1fr;
    align-items: center;
}
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

nav ul li:last-child a {
    color: black;
    font-weight: bold;
    background-color: #6592cf;
}

nav ul li p {
    height: fit-content;
    margin: 0;
}

#navbar-aligner {
    margin-left: auto;
}

#logout {
    align-self: flex-end;
    order: 100;
    margin-left: auto;
}

.warning {
    color: red;
    text-align: center;
}

.card {
    display: grid;
    justify-items: center;
    background-color: #6592cf;
    border: #243d83 solid;
    border-radius: 10px;
    padding: 5px;
    cursor: default;
}

 @keyframes vibrate {
    0%, 10%, 50%, 90%, 100% {transform: translateX(0);} 
    20%, 60% {transform: translateX(-2px);} 
    40%, 80% {transform: translateX(2px);} 
 } 

button {
    background-color: #eeb850;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 5px 5px 2px 5px;
    box-shadow: rgba(255, 255, 255, 0.4) 0 3px 3px inset;
}

button:hover>.icon,
.clickable:hover>.icon {
    animation: 1s linear infinite vibrate;
}

button:hover {
    border: 1px solid #243d83;
    cursor: pointer;
}

.clickable:hover {
    color: #243d83;
    cursor: pointer;
}

*[allowed="true"] {
    background-color: green;
}

*[allowed="false"],
.bg-warning {
    background-color: red;
}

.modal {
    position: fixed;
    width: 800px;
    max-width: 90%;
    height: 80%;
    margin: 5% auto;
    left: 0;
    right: 0;
    z-index: 1;
    top: 20px;
    overflow: auto;
    padding: 10px;
    background-color: whitesmoke;
    border: #243d83 solid;
    border-radius: 10px;
}

textarea {
    width: 100%;
    height: 75vh;
}

data {
    display: none;
}

.exit {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 1em;
    z-index: 1;
}
