/*********
 Variables
 *********/

:root {
    --background-color: white;
    --text-color: black;
    --large-font-size: 1.35rem;
    --hover-font-size: 1.1rem;
    --standard-font-size: 1rem;
    --small-font-size: 0.85rem;
    --tiny-font-size: 0.75rem;
}


/********
 Body/All
 ********/

html {
    font-family: Public Sans;
    font-size: max(2vmin, 14px);
    font-weight: 350;
    background-color: var(--background-color);
    color: var(--text-color);
    fill: black;
    user-select: none;
    overflow: hidden;
}

body {
    padding-top: 15vmin;
    padding-bottom: 8vmin;
}
body.waiting, body.waiting * {
    cursor: wait !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}


main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/**********
 Containers
 **********/

.row-container {
    display: flex;
    justify-content: center;
    margin-left: 4vmin;
    margin-right: 4vmin;
}

.box {
    margin-top: 8vmin;
    margin-left: 4vmin;
    margin-right: 4vmin;
    padding: 6vmin;
    padding-bottom: 4vmin;
    border: solid 2px black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vh-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 4vmin));
}

/****
 Text
 ****/

@font-face {
    font-family: Signika;
    src: local('Signika'), url("../fonts/Signika/Signika.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: PlayFair;
    src: url("../fonts/PlayFair.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: PlayFair Italic;
    src: url("../fonts/PlayFair-Italic.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: Public Sans;
    src: url("../fonts/PublicSans.ttf") format("truetype");
    font-display: swap;
}


.title {
    font-family: PlayFair;
    font-size: var(--large-font-size);
    text-align: center;
    margin-bottom: 1.1rem;
    font-weight: 600;
}
.title + .subtitle {
    font-size: var(--small-font-size);
    text-align: center;
    margin-top: -1.1rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
}

.section {
    font-size: var(--hover-font-size);
    margin-bottom: 0.55rem;
    font-weight: 600;
}
.section ~ .section {
    margin-top: 1.1rem;
}

p, .text {
    font-size: var(--standard-font-size);
}
p + p, .text + .text, ul + .text {
    margin-top: 0.55em;
}
p + ul, .text ul, ul li:not(:first-child) {
    margin-top: 0.2em;
}
ul {
    margin-left: 1.1rem;
}
ul.no-bullets {
  list-style-type: none;
  margin-left: 0.55rem;
}
b {
    font-weight: 600;
}

.dimmed-text {
    font-weight: 300;
}

.hidden-text {
    width: 0;
    height: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
}

.note, .note b {
    font-size: var(--small-font-size);
    margin-top: 1.75rem;
}
.note + .note {
    margin-top: 0.2em;
}


/*****
 Icons
 *****/

svg {
    height: var(--standard-font-size);
    vertical-align: middle;
}

.svg-text {
    display: none;
    padding-left: 1vmin;
    line-height: var(--standard-font-size);
}


/*****
 Links
 *****/

a {
    color: black;
    text-decoration: none;
}
.link {
    cursor: pointer;
}

.link:hover {
    font-style: italic;
    cursor: pointer;
}
.link:hover img {
    transform: scale(1.05);
}
.link:hover svg {
    transform: scale(1.1);
}
.link:hover .svg-text {
    font-size: calc(1em * 1.05);
    letter-spacing: -0.0225em;
}

.link.current, .link.current .svg-icon {
    cursor: default;
    font-style: italic;
}
.link.current img {
    transform: scale(1.1);
}
.link.current svg {
    transform: scale(1.1);
}
.link.current .svg-text {
    font-size: calc(1em * 1.05);
    letter-spacing: -0.0225em;
}

.text .link, .note .link, li .link {
    display: inline;
}


/****
 Dark
 ****/

.dark {
    background: rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 0.7);
    fill: rgba(255, 255, 255, 0.7);
}
.dark .dimmed-text {
    color: rgba(255, 255, 255, 0.5);
}

.dark .link:hover {
    color: rgba(255, 255, 255, 0.9);
    fill: rgba(255, 255, 255, 0.9);
}
.dark .link.current {
    text-decoration: underline;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    cursor: default;
}

/*********
 ScrollBar
 ********/

.scroller {
    scrollbar-width: thin;
    scrollbar-height: thin;
    scrollbar-color: rgba(0, 0, 0, 0.6) rgba(255, 255, 255, 0.8);
    scrollbar-radius: 100px;
    scrollbar-background: rgba(255, 255, 255, 0.8);
}

.scroller::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.8);
}

.scroller::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 100px;
}

.scroller::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 1);
    background-clip: padding-box;
}

.scroller::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.8);
}

.scroller.left-scroller {
    direction: rtl;
}
.scroller.left-scroller div {
    direction: ltr;
}
button, .button {
    font-size: inherit;
    margin: 2.5vmin;
    margin-top: 0;
    min-width: 25vmin;
    height: 8vmin;
    border: solid 2px black;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    background: white;
    cursor: pointer;
    text-align: center;
}
.button.disabled {
    cursor: default;
    box-shadow: none;
}
button:hover, .button:hover {
    box-shadow: none;
}

.fixed {
    position: absolute;
    top: 17vmin;
    left: 2vmin;
    z-index: 20;
    background: white;
    padding: 0.5vmin 2vmin;

}
