/* Parameterisation */
:root {
    --page-width-max: 900px;
    --page-width-min: 350px;
}

/* Themes */
.theme_blue {
    --colour-body-padding: #def;
    --colour-body-background: white;
    --colour-body-background-fade: rgba(255, 255, 255, 0.9);
    --colour-body-background--offset: #eee;
    --colour-body-background--emphasise: aliceblue;
    --colour-body-text: black;
    --colour-border-hard: black;
    --colour-border-soft: cornflowerblue;
    --colour-navbar-background: black;
    --colour-navbar-text: white;
    --colour-navbar-background--hover: white;
    --colour-navbar-text--hover: black;
    --colour-navbar-background--highlight: cornflowerblue;
    --colour-navbar-text--highlight: black;
    --colour-theme-background: cornflowerblue;
    --colour-theme-text: black;
}
.theme_dark {
    --colour-body-padding: #024;
    --colour-body-background: black;
    --colour-body-background-fade: rgba(0, 0, 0, 0.9);
    --colour-body-background--offset: #444;
    --colour-body-background--emphasise: #555;
    --colour-body-text: white;
    --colour-border-hard: white;
    --colour-border-soft: cornflowerblue;
    --colour-navbar-background: #555;
    --colour-navbar-text: white;
    --colour-navbar-background--hover: black;
    --colour-navbar-text--hover: white;
    --colour-navbar-background--highlight: cornflowerblue;
    --colour-navbar-text--highlight: white;
    --colour-theme-background: black;
    --colour-theme-text: white;
}
.theme_red {
    --colour-body-padding: rgb(255, 168, 173);
    --colour-body-background: white;
    --colour-body-background-fade: rgba(255, 255, 255, 0.9);
    --colour-body-background--offset: #eee;
    --colour-body-background--emphasise: darkgrey;
    --colour-body-text: black;
    --colour-border-hard: black;
    --colour-border-soft: rgb(255, 73, 73);
    --colour-navbar-background: black;
    --colour-navbar-text: white;
    --colour-navbar-background--hover: white;
    --colour-navbar-text--hover: black;
    --colour-navbar-background--highlight: rgb(255, 73, 73);
    --colour-navbar-text--highlight: black;
    --colour-theme-background: rgb(255, 73, 73);
    --colour-theme-text: black;
}
body {
    background-color: var(--colour-body-padding);
    color: var(--colour-body-text);
    margin: 0;
}
p {
    margin: 0.2rem;
}
.theme_button {
    background-color: var(--colour-theme-background);
    color: var(--colour-theme-text);
}

/* General Stuff */
* {
    font-family: "Open Sans";
}
a,
a:hover,
a:focus,
a:active {
    text-decoration: inherit;
    color: inherit;
}
td {
    text-align: center;
}
.page_content {
    max-width: calc(var(--page-width-max) - 80px);
    min-width: var(--page-width-min);
    padding: 40px;
    padding-top: 2.5rem;
    margin: auto;
    background-color: var(--colour-body-background);
}
.page_perimeter {
    background-color: var(--colour-border-soft);
    max-width: calc(var(--page-width-max) + 40px);
    margin: auto;
    padding-bottom: 20px;
}

/* Navbar */
.navbar_wrapper {
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    background-color: var(--colour-navbar-background);
    font-size: 1.2rem;
}
.navbar_mainmenu {
    display: flex;
    flex-direction: row;
    color: var(--colour-navbar-text);
    max-width: var(--page-width-max);
    margin: auto;
}
.navbar_leftlinks {
    width: 100%;
    display: inline-flex;
}
.navbar_rightlinks {
    display: inline-flex;
    width: fit-content;
}
.navbar_item {
    padding: 10px;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.navbar_dropdown {
    display: none;
    position: absolute;
    background-color: var(--colour-navbar-background);
    z-index: 1;
    top: calc(1rem + 24px);
    left: 0px;
}
.navbar_item:hover .navbar_dropdown {
    display: flex;
    flex-direction: column;
}
.navbar_dropdown_item {
    background-color: var(--colour-navbar-background);
    color: var(--colour-navbar-text);
    padding: 20px 10px 20px 10px;
}
.navbar_item:hover,
.navbar_dropdown_item:hover {
    background-color: var(--colour-navbar-background--hover);
    color: var(--colour-navbar-text--hover);
}
.navbar_item--active,
.navbar_dropdown_item--active {
    font-weight: bold;
}
.navbar_item--active {
    background-color: var(--colour-navbar-background--highlight);
    color: var(--colour-navbar-text--highlight);
}

/* User page */

.user_cookievalue {
    display: inline-flex;
    overflow-x: scroll;
    max-width: 50%;
    background: var(--colour-body-background--emphasise);
    border-radius: 3px;
    padding: 0 5px 0 5px;
}

.logout_button {
    font-size: 2rem;
    padding: 0.5rem;
    background-color: var(--colour-body-background--offset);
    border-radius: 1rem;
    border-color: var(--colour-border-soft);
}

.logout_button:hover {
    background-color: var(--colour-body-background--emphasise);
    border-color: var(--colour-border-hard);
}

/* Verity App */
.verity_multisolution {
    display: flex;
    width: fit-content;
    margin: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.verity_solution {
    border-style: solid;
    border-color: var(--colour-border-soft);
    padding: 5px;
    border-radius: 10px;
    margin: 10px;
    width: fit-content;
    background-color: var(--colour-body-background--emphasise);
}
.verity_shape {
    height: 8rem;
    background-size: cover;
    aspect-ratio: 1;
    border-radius: 0.25rem;
}
.verity_direction {
    font-size: 4rem;
    padding-left: 0.5rem;
    display: block;
    text-align: center;
}
.verity_shape--medium {
    height: 6rem;
}
.verity_shape--smaller {
    height: 4rem;
}
.verity_direction--smaller {
    font-size: 2rem;
    padding-left: 0.5rem;
}
.verity_navbarupper {
    border-bottom-style: solid;
    border-color: var(--colour-border-soft);
    display: inline-flex;
    width: 100%;
}
.verity_navbarupper_item {
    background-color: var(--colour-body-background--emphasise);
    padding: 10px;
    margin-right: 5px;
}
.verity_navbarupper_item--active {
    background-color: var(--colour-navbar-background--highlight);
    font-weight: bold;
}
.verity_root,
.verity_navbarupper,
.verity_navbarupper_item {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.verity_content {
    border-bottom-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-color: var(--colour-border-hard);
    min-width: 300px;
}
.verity_navbarlower {
    background-color: var(--colour-navbar-background);
    color: var(--colour-navbar-text);
    display: inline-flex;
    width: 100%;
}
.verity_navbarlower_item {
    padding: 10px;
}
.verity_navbarlower_item--active {
    background-color: var(--colour-navbar-background--highlight);
    color: var(--colour-navbar-text--highlight);
    font-weight: bold;
}
.verity_button {
    font-size: 1rem;
    font-weight: bold;
}
.verity_option {
    background-color: var(--colour-body-background--offset);
    border-style: solid;
    border-radius: 10px;
    padding: 1rem;
    margin: 5px;
    align-content: center;
}
.verity_option:hover {
    background-color: var(--colour-body-background--emphasise);
}
.verity_yesno {
    font-size: 2rem;
}
.verity_multishape {
    padding: 0;
    display: inline-flex;
}
.verity_shape--circle {
    background-image: url("/static/img/circle.png");
}
.verity_shape--square {
    background-image: url("/static/img/square.png");
}
.verity_shape--triangle {
    background-image: url("/static/img/triangle.png");
}
.verity_questionblock {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
}
.verity_challenge--right {
    width: 100%;
    text-align: right;
}
.verity_table {
    min-height: 4rem;
    margin: 4px 0 4px 0;
}

/* Roulette */
.flippyflip--on {
    transform: rotateY(-180deg);
    perspective: 1000px;
}
.flippyflip--un {
    transform: rotateY(180deg);
}
.flippyflip,
.flippyflip--un,
.flippyflip--on {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    transition: all;
    transition-timing-function: linear;
    width: 100%;
    height: 100%;
    background-repeat: round;
    border-style: solid;
    border-width: 4px;
    border-color: var(--colour-border-hard);
}
.roulette_content {
    width: 80%;
    aspect-ratio: 1.777777777777777;
    perspective: 2000px;
    margin: auto;
}
.roulette_label {
    position: relative;
    color: white;
    top: calc(50% - 1.5rem);
    font-size: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    display: block;
    padding: 3px 0 3px 0;
}
.roulette_button {
    padding: 10px;
    margin: 0 5% 0 5%;
}
.roulette_multibutton {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

/* Stats */
.stats_overall_section {
    background-color: var(--colour-body-background--emphasise);
    padding: 10px;
    border-radius: 10px;
    color: var(--colour-body-text);
}

.stats_overall_factum {
    border: var(--colour-border-hard);
    border-style: solid;
    border-radius: 10px;
    padding: 10px;
    margin: 10px auto;
    width: fit-content;
    background-color: var(--colour-body-background--offset);
}

.stats_activity_section {
    background-color: var(--colour-body-background--emphasise);
    padding: 20px;
    border-radius: 10px;
    color: var(--colour-body-text);
}

.stats_activity_tile {
    background-size: cover;
    border-radius: 10px;
    padding: 10px 30px;
    margin: 20px 0;
}

.stats_activity_tile_text {
    background-color: var(--colour-body-background-fade);
    border-radius: 10px;
    padding: 10px;
    color: var(--colour-body-text);
}
