@font-face {
    font-family: DaxOT;
    src: url(DaxOT-CondRegular.ttf);
}

@font-face {
    font-family: DaxBold;
    src: url(Dax_ExtraBold.ttf);
}

* {
    font-family: DaxOT;
    font-size: 20px;

    -webkit-user-drag: none;
    box-sizing: border-box;
    /* user-select: none; */
}

html,
body {
    --primary-color: rgb(240, 244, 240);
    --secondary-color: rgb(191, 209, 193);
    --accent-color: rgb(14, 127, 38);
    --accent-color-light: rgba(14, 127, 38, 0.9);
    --dark-color: rgb(75, 75, 77);
    --dark-color-trans: rgba(75,75,77,0.9);

    background-color: var(--secondary-color);

    min-height: 100%;
    padding: 20px 0;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}
@media (orientation: landscape) {

main {
    width: 850px;
    max-width: 80vw;

    padding: 30px 30px;
    border-radius: 15px;
    background-color: var(--primary-color);
    box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.1),
        -10px -10px 25px rgba(255, 255, 255, 0.1);

    row-gap: 30px;

    align-items: center;
    align-content: start;
    display: grid;
}


.g2 {
    display: grid;
    grid-template-columns: 30fr 70fr;
    column-gap: 20px;
}
.g3 {
    /* display: grid; */
    grid-template-columns: 25fr 50fr 25fr;
    justify-items: center;
}
.g4 {
    /* display: grid; */
    grid-template-columns: 10fr 40fr 10fr 40fr;
    column-gap: 30px;
}


.bold {
    font-family: DaxBold;
}
.at {
    align-self: start;
}
.ab {
    align-self: end;
}
.jc {
    justify-self: center;
}
.c1 {
    grid-column-start: 1;
}
.c2 {
    grid-column-start: 2;
}
.c3 {
    grid-column-start: 3;
}
.c4 {
    grid-column-start: 4;
}
.s2 {
    grid-column: span 2;
}
.s3 {
    grid-column: span 3;
}
.s4 {
    grid-column: span 4;
}
.tc {
    text-align: center;
}
.tl {
    text-align: left;
}
.tr {
    text-align: right;
}

span {
    width: 100%;
    text-align: center;
}

input,
select {
    height: 40px;
    width: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    text-align: left;
    padding-left: 10px;
    font-size: 18px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
}

input[type="submit"]:hover {
    background-color: var(--accent-color-light);
}

input[type="submit"]:active {
    box-shadow: none;
}

input[type="radio"] {
    accent-color: var(--accent-color);
    height: 1rem;
}

input[type="checkbox"] {
    accent-color: var(--accent-color);
    height: 1rem;
}

.large {
    height: 50px;
    font-size: 20px;
    text-align: center;
    padding: 0;
}

.large::placeholder {
    text-align: center;
}

input:disabled {
    cursor: not-allowed;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    width: 100%;
}

button {
    height: 40px;
    width: 100%;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: white;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    font-size: 18px;
    box-sizing: border-box;
}

button:hover {
    background-color: var(--accent-color-light);
}

button:active {
    box-shadow: none;
}

.box {
    width: 100%;
}

.logo {
    width: 50%;
}

*:focus {
    outline: none;
}

::placeholder {
    text-align: left;
}

:focus::placeholder {
    color: transparent;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 600px;
    background-color: var(--dark-color-trans);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;

    bottom: 100%;
    left: 50%;
    margin-left: -300px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
}

table, th, td {
    border: 1px black solid;
    border-collapse: collapse;
}

table tr:nth-child(10), table tr:nth-child(11) {
    background-color: lightgray;
    font-weight: bold;
}

td {
    vertical-align: top;
    padding: 10px;
}

th {
    height: 50px;
    background-color: gray;
}

p {
    margin-top: 0;
    margin-bottom: 10px;
}

.fm {    
    font-size: medium;
}
.fs {
    font-size: small;
}
}

@media (min-height: 1400px) {
    html,
    body {
        align-items: flex-start;
    }
}

@media (orientation: portrait) {
    html, body {
        box-sizing: border-box;
        max-width: 100vw;
    }

    main {
        width: 850px;
        max-width: 90vw;
    
        padding: 30px 30px;
        border-radius: 15px;
        background-color: var(--primary-color);
        box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.1),
            -10px -10px 25px rgba(255, 255, 255, 0.1);
    
        row-gap: 30px;
        box-sizing: border-box;
    
        align-items: center;
        align-content: start;
        display: grid;
    }

    .g2 {
        display: grid;
        grid-template-columns: 10fr 90fr;
        column-gap: 10px;
        overflow-x: hidden;
    }
    .g3 {
        justify-items: center;
    }
    .g4 {
        display: grid;
        grid-template-columns: 10fr 90fr;
        column-gap: 5px;
    }


    .c1 {
        grid-column-start: 1;
    }

    /* .c3 {
        grid-column-start: 2;
    } */

    .c4 {
        grid-column-start: 1;
        grid-column: span 2;
    }

    .s4 {
        grid-column: span 2;
    }
    .jc {
        justify-self: center;
    }
    .tc {
        text-align: center;
    }

    .fm {
        font-size: small;
    }

    .logo {
        width: 100%;
    }

    span {
        text-align: center;
    }

    input,
    select {
        /* height: 40px; */
        width: 100%;
        border: 2px solid var(--secondary-color);
        border-radius: 5px;
        text-align: left;
        padding-left: 10px;
        font-size: 18px;
        box-sizing: border-box;
    }

    input[type="submit"] {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: white;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
    }

    input[type="submit"]:active {
        box-shadow: none;
    }

    input[type="radio"] {
        accent-color: var(--accent-color);
        height: 1rem;
    }
    
    input[type="checkbox"] {
        accent-color: var(--accent-color);
        height: 1rem;
    }

    button {
        /* height: 40px; */
        width: 100%;
        background-color: var(--accent-color);
        border: 2px solid var(--accent-color);
        color: white;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
        border-radius: 5px;
        font-size: 18px;
        box-sizing: border-box;
    }

    button:active {
        box-shadow: none;
    }

    .large {
        height: 50px;
        font-size: 20px;
        text-align: center;
        padding: 0;
    }

    .large::placeholder {
        text-align: center;
    }
    
    a {
        color: var(--accent-color);
        text-decoration: none;
        width: 100%;
    }
    .tl {
        text-align: left;
    }
    .tr {
        text-align: right;
    }
}