html,
body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    background-color: #000;
    color: #fff;
    font-family: "proxima-nova", Helvetica, sans-serif;
    font-size: 1.1rem;
    line-height: 1.5rem;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    padding: 0 0 80px 0;
    touch-action: manipulation;
    width: 100%;
}

a {
    color: white;
}

.main {
    position: relative;
    display: block;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    display: block;
    font-size: 1.5em;
    padding: 0 20px;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

h2 {
    display: block;
    font-size: 1.2em;
    margin-block-start: 1em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

.header {
    display: flex;
    font-weight: bold;
}

.header div {
    flex: 1;
}

.header div:nth-child(3),
.header div:nth-child(4),
.header div:nth-child(5) {
    flex: none;
    width: 45px;
    text-align: right;
}

.header div:nth-child(1) {
    flex: none;
    width: 25px;
}

.body .row {
    display: flex;
}

.body .row div {
    flex: 1;
}

.body .row div:nth-child(3),
.body .row div:nth-child(4),
.body .row div:nth-child(5) {
    flex: none;
    width: 45px;
    text-align: right;
}

.body .row div:nth-child(1) {
    flex: none;
    width: 25px;
}

.scores {
    margin: 30px 0;
    line-height: 1.7em;
}

.scores .buttons {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.button {
    border: 2px solid #e80418;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8em;
    background-color: transparent;
    color: white;
    cursor: pointer;
}

.buttons {
    padding: 30px 0;
}

.form-button {
    padding-bottom: 20px;
    text-align: center;
}

.no-scores {
    padding: 20px;
    text-align: center;
}

.scores-select-form {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.leganda {
    font-size: 0.9em;
    padding-top: 20px;
    font-style: italic;
}

.form {
    text-align: center;
    font-size: 0.9em;
}

.form input[type=number] {
    font-size: 1em;
    padding: 5px;
    text-align: right;
}

.form h1 {
    margin-bottom: 30px;
}

.form .rating>div {
    margin: 20px 0;
    text-align: left;
}

.form div.row {
    display: flex;
    justify-content: space-between;
}

.form .rating {
    padding-top: 10px;
}

.form .form-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.form .box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-51.5%, -50%);
    color: #fff;
    padding: 1em 2em;
    border-radius: 8px;
    font-family: sans-serif;
}

.form .form-message.hidden {
    display: none;
}

.form .form-message .box.red {
    background: rgba(244, 67, 54, 0.95);
    ;
}

.form .form-message .box.green {
    background: rgba(67, 144, 54, 0.95);
    ;
}

.form .form-message .button {
    border-color: #fff;
    margin: 0 5px;
}

.form .form-message .button.hidden {
    display: none;
}

/* attendance */
.attendance {
    text-align: center;
    font-size: 0.9em;
}

.attendance .button {
    width: 45%;
}

/* Dropdown */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.custom-select .select-btn {
    background: #333;
    color: #fff;
    padding: 10px;
    border: none;
    width: 100%;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    height: 40px;
    position: relative;
    padding-right: 25px;
    font-size: 1em;
}

.custom-select .select-btn::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-select .options {
    display: none;
    position: absolute;
    background: #333;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    z-index: 1;
}

.custom-select .options div {
    text-align: left;
    padding: 5px;
    cursor: pointer;
    border-radius: 6px;
}

.custom-select .options div:hover {
    background: #555;
}

.custom-select .show {
    display: block;
}

/* Checkboxes */

.fancy-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.fancy-checkbox img {
    vertical-align: middle;
    margin-right: 20px;
}

.fancy-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
    display: none;
}

.fancy-checkbox .checkmark {
    position: relative;
    height: 30px;
    min-width: 30px;
    background-color: #eee;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.fancy-checkbox:hover .checkmark {
    background-color: #ccc;
}

.fancy-checkbox input:checked~.checkmark {
    background-color: #e80418;
}

.fancy-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.fancy-checkbox input:checked~.checkmark:after {
    display: block;
}

.fancy-checkbox .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.attendance {
    line-height: 34px;
}

.form-button.export {
    padding-top: 2em;
}

.form-button.export .button {
    padding-left: 16px;
    padding-right: 16px;
}