:root {
    --primary: #0062ff;
    --secondary: #0049c0;
    --contrast: #171717;
    --darker-contrast: #000000;

    --background: #ffffff;
    --background-2: #e2e2e2;

    --border-style: solid;
    --border-width: 1px;
    --border-radius: 8px;
}

* {
    text-align: center;
    margin: 0;
    padding: 0;
    font-family: "Noto Sans Display";
}

li::marker {
    display: none;
    content: "";
}

body {
    background-color: var(--background);
}

#loading {
    width: 100vw;
    height: 100vh;
}

#loading p {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#app {
    display: none;
}

#form-container {
    max-width: 90vw;
    width: 640px;
    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

#input-container {
    align-items: center;
    align-content: center;
}

#form-title {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 40px;
}

.form-input {
    height: fit-content;
    margin-bottom: 30px;
    padding: 30px;

    border-style: var(--border-style);
    border-radius: var(--border-radius);
    border-width: var(--border-width);
    border-color: var(--primary);
    background-color: var(--background-2);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

.form-input h2 {
    margin-bottom: 15px;
    font-size: 30px;
}

.form-input h2, .form-input p {
    font-size: 20px;
}

.form-input #input {
    margin-top: 40px;
    padding: 5px;
    width: calc(100% - 10px);
    height: 40px;

    background-color: var(--background);

    border-style: var(--border-style);
    border-radius: var(--border-radius);
    border-color: var(--primary);
    border-width: var(--border-width);
}

.form-input p#input {
    cursor: pointer;
    align-content: center;
}

#options-container {
    display: none;
    overflow: scroll;

    margin-top: 20px;
    padding: 0px 5px 0px 5px;
    width: calc(100% - 10px);
    height: fit-content;
    max-height: 150px;

    align-items: center;
    align-content: center;

    background-color: var(--background);

    border-style: var(--border-style);
    border-radius: var(--border-radius);
    border-color: var(--primary);
    border-width: var(--border-width);
}

#options-container li {
    background-color: var(--background);
    cursor: pointer;

    margin-top: 5px;
    margin-bottom: 5px;

    border-radius: 5px;
}

#options-container li:hover{
    background-color: var(--background-2);
}

#submit-button {
    color: var(--background);
    font-weight: bold;
    font-size: 20px;

    padding: 10px 15px 10px 15px;
    margin-top: 10px;
    margin-bottom: 40px;

    background-color: var(--primary);
    border-radius: var(--border-radius);
    border-style: none;
}

#submit-button:hover {
    background-color: color-mix(in srgb, var(--primary) 80%, rgb(0, 0, 0));
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.input-error {
  animation: shake 0.4s ease;
  border: 1px solid red !important;
}

@media(max-width: 1200px) {
    .form-input {
        width: calc(100% - 20px);
        height: fit-content;
        margin-bottom: 30px;
        padding: 10px;
    }
}