:root {
    --background: #1E1E1E;
    --text: white;
    --vs-blue: #569CD6;
    --vs-orange: #ce9178;
    --vs-red: #f44747;
    --anchor: #7eaaff
}

/*#region general*/
.color-blue {
    color: var(--vs-blue);
}

.color-orange {
    color: var(--vs-orange);
}

.color-red {
    color: var(--vs-red);
}

a {
    color: var(--anchor);
}

h1 {
    font-size: 2rem;
}

.text-small {
    font-size: .8rem;
}

button:hover, input[type="checkbox"] {
    cursor: pointer;
}
/*#endregion general*/

/*#region body*/
body {
    background-color: var(--background);
    color: var(--text);
    font-family: "Oxanium", sans-serif;
    margin: 0 auto;
    padding: 0 2rem;
    max-width: 1200px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    body {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 0.5rem;
    }
}
/*#endregion body*/

main {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/*#region form*/
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form-group:has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row;
    gap: .5rem;
    align-items: center;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-group.reverse {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

input[type="text"] {
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--background);
    border: 1px solid var(--text);
    border-radius: 10px;
    color: var(--text);
    padding: .5rem;
}

#submit {
    font-family: inherit;
    padding: .5rem;
    background-color: var(--background);
    border: 1px solid var(--text);
    border-radius: 5px;
    color: var(--text);
    align-self: flex-start;
}

form *:disabled {
    opacity: 70%;
}

input[type="text"].error {
    border-color: var(--vs-red);
}
/*#endregion form*/

/*#region results table*/

table, td, th {
    border: 1px solid var(--text);
}

table {
    width: 100%;
}

legend, th, td {
    padding: .5rem;
}

th {
    color: var(--vs-orange);
}

legend {
    background-color: var(--vs-orange);
    border: 1px solid var(--vs-orange);
    text-align: center;
}

.table-container {
    animation: grow .3s linear;
    transform-origin: 0% 0%;
}

@keyframes grow {
  0% { transform: scaleY(0%); }
  100% { transform: scaleY(100%); }
}

/*#endregion results table*/

/*#region loader*/
.loader-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border-style: solid;
    border-width: .7rem;
    border-color: var(--vs-blue);
    border-bottom-color: transparent;
    animation: spin .5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/*#endregion loader*/

/*#region footer*/

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    padding: 1rem;
    background-color: rgba(0, 0, 0, .2);
    margin-top: 2rem;
}

.contact-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.contact-icon-container > a {
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
}

/*#endregion footer*/