
:root {
    /* https://www.color-hex.com/color-palette/38440 */
    --royal-blue: #000033;
    --gold-1: #8b6508;
    --gold-2: #b8860b;
    --gold-3: #cd950c;
    --gold-4: #eead0e;
}
/* reset */
html,
body {
    padding: 0;
    margin: 0;
    font-size: 30px;
}

/* font */
body,
input {
    font-family: 'Times new roman', serif;
}
h1 {
    font-size: 2em;
}
input,
label,
p,
h2 {
    font-size: 1em;
}
h2 {
    font-weight: normal;
}
input[type='radio'] + label {
    font-size: 2em;
}

html {
    background: var(--gold-4);
}
p {
    color: var(--royal-blue);
}
h1 {
    background: var(--royal-blue);
    color: var(--gold-4);
    margin: 0;
    padding: 20px;
}
h1 a {

}
h1 a:link,
h1 a:visited {
    color: var(--gold-4);
    text-decoration: none;
}
h1 a:hover,
h1 a:active,
input[type='submit']:hover,
input[type='submit']:active {
    color: var(--gold-1);

}

input[type='submit'] {
    background: var(--royal-blue);
    color: var(--gold-4);
    border-width: 0;

}
input[type='text'],
input[type='password'] {
    border-color: var(--royal-blue);
    background: var(--gold-4);
    color: var(--royal-blue);
    border-width: 0;

}
input::placeholder {
    color: var(--gold-1);
}
/* radio buttons */
/* https://markheath.net/post/customize-radio-button-css */

input[type='radio'] {
    /* hide radio circles */
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
}
input[type='radio']:checked + label {
    background: var(--gold-2);
}
input[type='radio']:focus + label,
input[type='radio']:hover + label {
    background-color: var(--gold-3);

}

/* center text */
h1,
form p,
ul li,
p,
p input[type='text'],
p input[type='password'],
.clicker-form h2 {
    text-align: center;
}
/* flex */

form p {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin: 0;
    padding: 0;


}
p input[type='text'],
p label,
p input[type='password'] {
    /* problem: space is not divided 50/50*/
    flex-basis: 50% 0;
    width: 50%;
}

p input[type='text'],
p label,
p input[type='submit'] {
    flex-grow: 2 ;
}
/*
 * Height
 */
p input[type='text'] {
    padding-top: 1em;
    padding-bottom: 1em;
}
p input[type='submit'] {
    padding-top: 1em;
    padding-bottom: 1em;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

ul li a,
p a {
    text-decoration: none;
}
ul li a:link,
ul li a:visited,
p a:link,
p a:visited {
    color: var(--royal-blue);
}
ul li a:hover,
ul li a:active,
p a:hover,
p a:active {
    background: var(--gold-3);
}
ul li {
    display: flex;

}
ul li a {
    flex-grow: 1;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}

/* table students */

table {
    /* center table */
    margin-left: auto;
    margin-right: auto;

    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
}

table, td, th {
    border-width: 1px;
    border-style: solid;
    border-color: var(--royal-blue);
}
th, td {
    padding-left: 0.4em;
    padding-right: 0.4em;
}

.copyright {
    font-size: 0.5em;
}

/* chart */
#chart_div {
    margin-left: auto;
    margin-right: auto;
    /* center chart */
    /* width has to be same as in the file google_chart.js */
    width: 800px;
}

/* Fix submit button on iPhone */
input[type='submit'] {
    -webkit-appearance: none;
    border-radius: 0;
}



