:root {
    --font-color: rgb(0, 0, 0);
    --surface-color: rgb(255, 255, 255);
    --raised-color: rgb(225, 225, 225);
    --primary-color: rgba(49, 127, 7, 0.85);
    --light-contrast-color: rgba(49, 127, 7, 0.71);
    --background-color: rgba(255, 248, 172, 0.85);
}

* {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: var(--font-color);
}

h1 { font-size: 1.45rem; margin: 10px 0 15px 0; color: var(--font-color); }
h2 { font-size: 1.3rem; margin: 10px 0 0 0; color: var(--font-color); }

p { margin: 5px 0; }

a { text-decoration: none; color: var(--primary-color); }
a:hover { text-decoration: underline; }

form {
    margin: 15px 0;
    display: flex; flex-direction: column;
}
form > * { margin: 10px 0; }
label > text { margin: 50px; }
label > input { width: 100%; }
input[type=submit], button { width: calc(100% - 20px); padding: 10px 0 }

input[type=submit], button { cursor: pointer; margin: 10px; color: var(--surface-color); background-color: var(--primary-color); border: transparent; border-radius: 10px; transition: 300ms; }
input[type=submit]:hover, button:hover { background-color: var(--light-contrast-color) }
input[type=submit]:active, button:active { color: black; background-color: var(--raised-color) }

td { padding: 0 10px; }
table { width: 100%; }
#ranking-wrapper { width: 100%; padding: 10px 0; overflow-x: auto }


/* default boxes */
.hbox { display: flex; flex-direction: row; }
.vbox { display: flex; flex-direction: column; }
.stacked { display: flex; }
.stacked > * { position: absolute; }
.horizontal-center { justify-content: center; }
.horizontal-space-around { justify-content: space-around; }
.horizontal-space-between { justify-content: space-between; }
.vertical-center { align-items: center; }
.textCenter { text-align: center; }

.Bold { font-weight: bold; }
.shadow { box-shadow: 5px 5px 10px 0 rgba(0,0,0,0.5) }

.SpacerHeight { height: 30px; }
.SplittingLine { height: 15px; width: calc(100% - 20px); border-bottom: solid #ececec 2px; margin: 0 10px 15px 10px; }


input, select { border: transparent; border-bottom: solid #cdcdcd 2px; }
input:focus, select { outline: none; border-bottom: solid var(--primary-color) 2px; }
select { width: 100%; padding: 5px; }

/* Main Page */
.page { overflow: hidden; transition: 500ms; }

#body { background-color: var(--background-color); padding: 50px; }
#main-page { max-width: 1020px; }
#main-layout { padding: 30px; background-color: var(--surface-color); border-radius: 10px; }

#logo-wrapper { width: calc(100% + 10px); margin: -5px; }
#logo-wrapper #logo { width: 100%; height: auto; }

.label-wrapper { margin-top: 5px; padding: 10px; }


/* Footer */
#feet-layout { padding: 0 30px 0 30px; }
#feet-layout .vbox { line-height: 18px; }

#loading-wrapper { height: 200px; }

.spinner { text-align: center }
.spinner > div {
    width: 30px;
    height: 30px;
    margin: 10px 10px 0 10px;
    background-color: var(--primary-color);
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 { -webkit-animation-delay: -0.32s; animation-delay: -0.32s; }
.spinner .bounce2 { -webkit-animation-delay: -0.16s; animation-delay: -0.16s; }

@keyframes sk-bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
