:root {
    --red-light: #EF233C;
    --red-dark: #D90429;
    --grey-dark: #2B2D42;
    --grey-light: #8D99AE;
    --bubblegum: #FF6388;
    --white: #EDF2F4;
    --black: #06081D;
    --ball-small: max(5em, 40vh);
    --ball-medium: max(15em, 70vh);
    --ball-large: max(20em, 100vh);
}
/**********************
**   General Style   **
**********************/
/* Fill Screen */
html {
    scrollbar-color: var(--red-dark) var(--grey-light);
    scrollbar-width: thin;
}
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    /* Colors */
    background-image: linear-gradient(to bottom right, var(--grey-dark), var(--red-light));
    background-attachment: fixed;
    color: var(--white);
}
a {
    color: var(--bubblegum);
}
hr {
    border-color: var(--grey-light);
}
/* Selected Text */
::-moz-selection {
    color: var(--grey-dark);
    background: var(--grey-light);
}
::selection {
    color: var(--grey-dark);
    background: var(--grey-light);
}
/* Container for content */
.flex{
    display: flex;
    flex-direction: column;
    margin: 0 1rem;
    z-index: 1;
}
/*************************
**   Position Heading   **
*************************/
h1 {
    margin: 1em 5vw 1em 20vw;
    font-size: 3em;
    z-index: 1;
}
/*************************
**   Fancy Background   **
*************************/
.bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.splash-1 {
    position: absolute;
    height: var(--ball-small);
    width: var(--ball-small);
    border-radius: calc(var(--ball-small)/2);
    right: calc(-1em - var(--ball-small)/2);
    top: calc(4vh - var(--ball-small)/2);
    background-color: var(--grey-light);
    z-index: -100;
}
.splash-2 {
    position: absolute;
    height: var(--ball-medium);
    width: var(--ball-medium);
    border-radius: calc(var(--ball-medium)/2);
    left: calc(-4em - var(--ball-medium)/2);
    top: calc(95vh - var(--ball-medium)/2);
    background-color: var(--grey-light);
    z-index: -100;
}
.splash-3 {
    position: absolute;
    height: var(--ball-large);
    width: var(--ball-large);
    border-radius: calc(var(--ball-large)/2);
    right: calc(-4em - var(--ball-large)/2);
    top: calc(105vh - var(--ball-large)/2);
    background-color: var(--grey-light);
    z-index: -100;
}
.splash-4 {
    position: absolute;
    height: var(--ball-medium);
    width: var(--ball-medium);
    border-radius: calc(var(--ball-medium)/2);
    right: calc(-8em - var(--ball-medium)/2);
    top: calc(50vh - var(--ball-medium)/2);
    background-color: var(--grey-light);
    z-index: -100;
}
/* Keep content in front of background */
center {
    z-index: 1;
    height: 100%;
}
/******************
**    Prompt     **
******************/
.prompt {
    display: block;
    position: relative;
    cursor: pointer;
    margin: auto;
    padding: .5rem; padding-right: 1em;
    width: 100%;
    max-width: 30rem;
    font-size: 1.5em;
    text-align: left;
    color: var(--white);
    background: var(--grey-dark);
    border: 2px solid var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.prompt:hover {
    border: 2px solid var(--grey-light);
    fill: var(--bubblegum);
    color: var(--bubblegum);
}
.prompt svg {
    position: absolute;
    top: .3em; right: .3em;
    width: .6em; height: .6em;
    transition: all 0.6s ease;
}
.prompt:hover svg,
.prompt:focus svg {
    transform: rotate(360deg);
}
.adjustments {
    display: flex;
    flex-direction: row;
    max-width: 30rem;
}
.adjust-btn {
    display: block;
    cursor: pointer;
    margin: auto;
    padding: .5rem;
    font-weight: bold;
    text-align: left;
    background: var(--grey-dark);
    color: var(--white);
    margin: auto;
    border: 2px solid var(--white);
    border-top: 0px;
    border-radius: 0px 0px 3px 3px;
}
.hidden {
    display: none;
}
/*******************
**    Buttons     **
*******************/
button>svg {
    position: relative;
    cursor: pointer;
    top: .13em;
}
.btn-container {
    position: relative;
    display: grid;
    left: 0px;
    right: 0px;
    margin: 2em auto;
    max-width: 30rem;
    gap: 1rem;
    justify-content: center;
}
.fancy-btn {
    display: inline-block;
    position: relative;
    cursor: pointer;
    z-index: 1;
    background: var(--grey-dark);
    width: min(25rem, 70vw);
    padding: .5rem 0;
    font-weight: 500;
    font-size: 1.5em;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.fancy-btn:after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    direction: rtl;
    z-index: -1;
    background: var(--grey-light);
    transition: all 0.3s ease;
}
.fancy-btn:hover {
    color: var(--black);
}
.fancy-btn:hover:after {
    left: 0;
    right: auto;
    width: 100%;
}
.fancy-btn:active {
    top: 2px;
}
/*******************
**   Responsive   **
*******************/
@media screen and (max-height: 60rem) {
    h1 {
        margin: 1em 2vw 1em 10vw;
        font-size: 1.6em;
    }
}
@media screen and (max-width: 30rem) {
    h1 {
        margin: 1em 2vw 1em 10vw;
        font-size: 1.6em;
    }
    .fancy-btn,
    .prompt {
        font-size: 1em;
    }
    svg {
        width: 1em;
    }
}
@media screen and (max-height: 51rem) and (min-width: 25rem) {
    .btn-container {
        grid-template-columns: 1fr 1fr;
    }
    .fancy-btn {
        width: 100%;
    }
    br,
    .two-span {
        grid-column: 1 / 3;
    }
}


/************************
**   Content Manager   **
*************************/
.cm-modal {
    z-index: 5;
    /* Sit on top */
    max-width: none; max-height: none;
    width: 100%; height: 100%;
    margin: 0; padding: 0;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
}

.cm-content {
    background-color: var(--grey-dark);
    margin: 10vh auto;
    padding: 1em;
    border: 2px solid var(--white);
    border-radius: .8em;
    width: 80%;
    font-size: 1.2em;
}

.cm-section {
    display: grid;
    margin-block: .5em;
    grid-template-columns: 1fr 1fr;
    column-gap: 1em;
    row-gap: .3em;
}

.cm-section>h2 {
    grid-column: span 2;
    margin-block: .5em;
    font-size: 1.3em;
    border-bottom: 2px solid var(--white);
    width: 100%;
}

.close {
    position: relative;
    top: -.3em;
    cursor: pointer;
    color: var(--white);
    float: right;
    font-size: 2em;
    font-weight: bold;
    transition: all 0s ease;
    text-decoration: none;
}
.close:hover,
.close:focus {
    color: var(--grey-light);
    transform: rotate(360deg);
    transition: all 0.6s ease;
}

input[type=checkbox] {
    position: relative;
    cursor: pointer;
    transform: scale(1.5);
    top: -.2em;
    margin-right: 1ch;
    accent-color: var(--bubblegum);
}
label {
    cursor: pointer;
}