@import "forms.css";
@import "variables.css";

* {
    box-sizing: border-box;
}

body {
    font-family: 'Comfortaa', cursive;
    font-size: 25px;
    line-height: 150%;
    margin: 0px;
    padding: 0px;
    top: 0px;
    text-align: left;
    height: 100%;
    color: rgb(50,50,50);
    background-color: white;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

/*------------------------------------------------*/

.box {
    position: relative;
    width: 100%;
}

.box-content {
    box-sizing: border-box;
    width: 95%;
    max-width: 500px;
    margin: 0 auto;
}

#content {
    min-height: calc(100vh - 139px);
}

/*------------------------------------------------*/

#header {
    background-color: var(--main-red);
}

#header .box-content {
    max-width: 350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header img {
    height: 40px;
    display: none;
}

.not-app #header img {
    display: inline-block;
}

.nav {
    list-style-type: none;
    display: flex;
    align-items: center;
    padding-left: 0;
    margin: 10px 0;
}

.nav a {
    display: block;
    font-size: 18px;
    padding: 0 20px;
    font-weight: bold;
    cursor: pointer;
}

.nav li:first-of-type a {
    padding-left: 0;
}

.nav a, .nav a:visited, .nav a:hover {
    color: white;
    text-decoration: none;
}

.nav a:hover {
    color: rgba(220,220,220);
}

/*--------------------------------------------------*/

#footer {
    font-size: 14px;
    text-align: center;
    background-color: rgb(235,235,235);
}

#footer .box-content {
    padding: 17px 0 14px 0;
}

#footer a, #footer a:hover, #footer a:visited {
    color: black;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    border-bottom: 1px solid rgba(190,190,190,1);
    height: 30px;
}

#footer a:hover {
    border-bottom: 1px solid rgba(200,200,200,0);
}

/*--------------------------------------------------*/

#nfc-loaded {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 65px;
    height: 65px;
    font-size: 30px;
    border: 2px solid;
    border-radius: 50%;
    margin-top: 10px;
}

#nfc-loaded.unloaded {
    color: rgb(205,0,0);
    border-color: rgb(205,0,0);
}

#nfc-loaded.unloaded i:first-of-type {
    display: none;
}

#nfc-loaded.loaded {
    color: rgb(0,179,0);
    border-color: rgb(0,179,0);
}

#nfc-loaded.loaded i:last-of-type {
    display: none;
}

/*--------------------------------------------------*/

h1 {
    font-size: 16px;
    text-align: right;
    color: white;
    padding: 5px 0;
}

h2 {
    font-size: 18px;
    margin: 0;
    padding: 20px 0 10px 0;
}

.fs-16 {
    font-size: 16px;
}

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

/*--------------------------------------------*/

table {
    font-size: 16px;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
}

td, th {
    border: 1px solid rgb(220,220,220);
    padding: 3px 8px 0px 8px;
    white-space: nowrap;
}

th {
    border: 1px solid rgb(100,100,100);
    background-color: rgb(100,100,100);
    color: white;
}

.history-table td:nth-of-type(2) {
    text-align: right;
}

.stat-table tr:nth-of-type(2) td{
    font-weight: bold;
    background-color: rgb(220,220,220);
}

.responsive_table {
    overflow: auto;
}

/*--------------------------------------------*/

#exitFullscreen, #enterFullscreen {
    background-color: rgb(100,100,100);
    color: white;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: 18px;
    border-radius: 50%;
    font-size: 16px;
}

#exitFullscreen {
    display: none;
}

.not-app #exitFullscreen, .not-app #enterFullscreen {
    display: none !important;
}
