/* General file for all pages. Dark mode. */
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansBlk.OTF");
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansBlkIt.OTF");
    font-weight: 900;
    font-style: italic;
}
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansRegular.OTF");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansItalic.OTF");
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansBold.OTF");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansBoldIt.OTF");
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansLight.OTF");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "RooneySans";
    src: url("/assets/fonts/RooneySansLightIt.OTF");
    font-weight: 300;
    font-style: italic;
}

:root
{
    color-scheme: dark;

    --bg-color: #1f1f1f;
    --bg-color-light: #2c2c2c;
    --bg-color-dark: #1a1a1a;
    --color: #dedede;
    --color-light: #ffffff;
    --color-dark: #b6b6b6;
    --color-placeholder: #5e5e5ec1;
    --main-color: #0234b3;
    --main-color-light: #5080f6;
    --main-color-bg: #14113b;

    --scale: 1;
    --font-huge: calc(4.0rem * var(--scale));
    --font-big: calc(3.1rem * var(--scale));
    --font-medium: calc(2.6rem * var(--scale));
    --font-small: calc(2.3rem * var(--scale));
    --font-tiny: calc(1.9rem * var(--scale));

    --default-font-family: "RooneySans";
    --default-font-weight: normal;

    --login-display: none;
    --not-login-display: unset;

    --navbar-height: 80px;
    --main-section-width: 100vw;
}

* 
{
    box-sizing: border-box;
}

html, body
{
    margin: 0;
    padding: 0;
	border: none;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 20px);
}
html
{
    font-size: 10px;
    overflow-y: auto;
}
body
{
    width: 100vw;
    background-color: var(--bg-color);
    color: var(--color);
    font-family: var(--default-font-family);
    font-weight: var(--default-font-weight);
}
code, pre
{
    font-family: var(--default-font-family);
    font-weight: var(--default-font-weight);
    margin: 0;
    text-wrap: wrap;
}

p
{
    margin: 0;
    margin-bottom: 10px;
}
span
{
    margin: 0;
    display: inline-block;
}

img
{
    -webkit-user-select: none;
    user-select: none;
}

template
{
    display: none !important;
}

button
{
    background: none;
}
button, input, select, textarea
{
    border: none;
    outline: none;
    appearance: none;
    font-family: var(--default-font-family);
    font-weight: var(--default-font-weight);
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: var(--color-placeholder);
}
::-moz-placeholder { /* Firefox 19+ */
    color: var(--color-placeholder);
}
:-ms-input-placeholder { /* IE 10+ */
    color: var(--color-placeholder);
}
:-moz-placeholder { /* Firefox 18- */
    color: var(--color-placeholder);
}

a
{
    /* text-decoration: underline;
    text-decoration-color: var(--main-color); */
    text-decoration: none;
    color: var(--main-color-light);
}
a:hover
{
    filter: brightness(1.2);
}
a:active
{
    filter: brightness(1.4);
}

.hidden
{
    display: none;
}

.login
{
    display: var(--login-display) !important;
}
.not-login
{
    display: var(--not-login-display) !important;
}

.loading
{
    height: 50px;
    width: 50px;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.center
{
    text-align: center;
    justify-content: center;
    align-items: center;
}

.login .editable, .login .editable > *:not(a)
{
    cursor: url("/assets/img/cursor-edit3.svg"), auto;
}
.pointer
{
    cursor: pointer;
}

#section-navbar
{
    height: var(--navbar-height);
    background-color: var(--main-color-bg);
    display: flex;
}
#main-section
{
    min-height: calc(100dvh - var(--navbar-height));
    display: flex;
}
#section-main-content
{
    width: var(--main-section-width);
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* align-items: center; */
}

.cd-signin-modal
{
    visibility: hidden;
    opacity: 0;
}

.main-content
{
    width: 100%;
    max-width: 1000px;
}

.row
{
    display: flex;
    flex-direction: row;
}
.col
{
    display: flex;
    flex-direction: column;
    flex: 1;
}
.col-25
{
    flex: 0.25;
}
.col-33
{
    flex: 0.33;
}
.col-50
{
    flex: 0.5;
}
.col-75
{
    flex: 0.75;
}

.bold
{
    font-weight: bold;
}
.title
{
    font-size: var(--font-huge);
    margin: 0 0 20px;
}
.sub-title
{
    font-size: var(--font-big);
    font-weight: bold;
    margin: 20px 0 20px;
}
.description
{
    font-size: var(--font-small);
    font-weight: 300;
    margin: 10px 0 20px;
}

.par
{
    margin-bottom: 30px;
}

.d-block
{
    display: block;
}
.d-flex
{
    display: flex;
}
.d-inline
{
    display: inline;
}
.d-inline-block
{
    display: inline-block;
}
.d-none
{
    display: none;
}

.gap-20
{
    gap: 20px;
}
.gap-50
{
    gap: 50px;
}
.mb-20
{
    margin-bottom: 20px;
}
.mb-50
{
    margin-bottom: 50px;
}
.mt-20
{
    margin-top: 20px;
}
.mt-50
{
    margin-top: 50px;
}
.ml-5
{
    margin-left: 5px;
}
.ml-10
{
    margin-left: 10px;
}
.ml-20
{
    margin-left: 20px;
}
.ml-50
{
    margin-left: 50px;
}
.mr-5
{
    margin-right: 5px;
}
.mr-10
{
    margin-right: 10px;
}
.mr-20
{
    margin-right: 20px;
}
.mr-50
{
    margin-right: 50px;
}

ul
{
    margin: 10px 0;
}

.choice-box-container
{
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.choice-box
{
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    padding: 15px;
}
.choice-box .title
{
    font-size: var(--font-medium);
    margin: 10px 0;
    color: var(--main-color-light);
    text-overflow: ellipsis;
    overflow: hidden;
}
.choice-box .description
{
    font-size: var(--font-small);
    font-weight: 200;
    margin: 10px 0;
    color: var(--color-dark);
    text-align: left;

    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 5; 
    overflow: hidden;
}
.choice-box-new
{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(215px * var(--scale));
}

.plus-icon
{
    height: calc(70px * var(--scale));
    width: auto;
}

.editable
{
    min-width: 150px;
    border-bottom: 1px solid transparent;
}
.editable.title
{
    padding: 1px 0;
}
input.no-style
{
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--color);
    width: 100%;
    border-bottom: 1px solid var(--color-dark);
    position: relative;
}
textarea.no-style
{
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--color);
    width: 100%;
    margin: 10px 0;
    border-bottom: 1px solid var(--color-dark);
    resize: vertical;
    /* min-height: calc(94px * var(--scale)); */
}
a.no-style
{
    color: var(--color);
    text-decoration: none;
}

form button[value=true], form button[value=false]
{
    color: white;
    min-width: 150px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: var(--font-small);
}
form button[value=true]
{
    background-color: #0a480c;
}
form button[value=false]
{
    background-color: #5e0b05;
}
form menu
{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 0;
}

.text-huge
{
    font-size: var(--font-huge);
}
.text-big
{
    font-size: var(--font-big);
}
.text-medium
{
    font-size: var(--font-medium);
}
.text-small
{
    font-size: var(--font-small);
}
.text-tiny
{
    font-size: var(--font-tiny);
}

.add-icon
{
    color: var(--color);
}

@media screen and (max-width: 1600px)
{
    :root
    {
        --scale: 0.85;
    }
}
