@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

html, textarea, input, button {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "GRAD" 0,
        "ROND" 0;
    color: var(--text-color);
}
button, h1, h2, h3, h4, h5 {
    font-weight: 600;
}
span {
    font-size: 15px;
}
select {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}
select > option {
    color: var(--text-color);
}
button svg {
    pointer-events: none;
}

:root {
    --site-theme-color: rgb(105, 65, 255);
    --theme-color-shade: rgb(70, 10, 225);
    --site-theme-translucent: rgba(65, 25, 255, 0.2);

    --background-color: #fcfcfc;
    --secondary-color: #f7f7f7;
    --third-color: lightgrey;

    --background-color-translucent: #fcfcfc50;
    
    --tag-chip-color: #dedede;

    --gray-text: gray;
    
    --border-color: #7e7e7e;

    --opposite-of-background-color: rgb(25, 25, 25);

    --text-color: black;

    --correct-color: rgb(102, 182, 80);
    --correct-color-shade: rgb(31, 144, 0);
    --red-color: rgb(255, 68, 68);
    --red-shade: darkred;
    --info-yellow: rgb(255, 175, 0);
    --info-yellow-translucent: rgba(255, 174, 0, 0.350);

    --header-height: 65px;

    --default-quiz-thumbnail: /static/images/default_thumbnail/default.webp;
}

:root[data-theme="light"] {
    --background-color: #fcfcfc;
    --secondary-color: #f7f7f7;
    --third-color: lightgrey;
    --background-color-translucent: #fcfcfc50;
    --tag-chip-color: #dedede;
    --gray-text: gray;
    --opposite-of-background-color: rgb(25, 25, 25);
    --text-color: black;
    --default-quiz-thumbnail: /static/images/default_thumbnail/default.webp;
}

:root[data-theme="dark"] {
    --background-color: #111;
    --secondary-color: #1d1d1d;
    --third-color: rgb(52, 52, 52);
    --background-color-translucent: #11111150;
    --tag-chip-color: #282828;
    --gray-text: lightgray;
    --opposite-of-background-color: rgb(235, 235, 235);
    --text-color: whitesmoke;
    --default-quiz-thumbnail: /static/images/default_thumbnail/defaultnight.webp;
}

:root[data-theme="navy"] {
    --background-color: #0c0b22;
    --secondary-color: #15122f;
    --third-color: rgb(30, 26, 62);
    --background-color-translucent: #11111150;
    --tag-chip-color: #282828;
    --gray-text: lightgray;
    --opposite-of-background-color: rgb(235, 235, 235);
    --text-color: whitesmoke;
    --default-quiz-thumbnail: /static/images/default_thumbnail/defaultnight.webp;
}

:root[data-theme-color="blue"] {
    --site-theme-color: rgb(65, 159, 255);
    --theme-color-shade: rgb(10, 46, 225);
    --site-theme-translucent: rgba(65, 159, 255, 0.2);
}

body {
    background-color: var(--background-color);
    margin: 0;
    height: calc(100vh - var(--header-height));
}

a,
input,
button,
select {
    color: var(--text-color);
    outline: none;
    text-decoration: none;
    cursor: pointer;
}
input {
    cursor: text;
}
header {
    height: var(--header-height);
    display: flex;
    position: fixed;
    gap: 5px;
    top: 0;
    left: 0;
    width: 100%;
    align-items: center;
    background-color: var(--background-color);
    z-index: 999;
    padding: 10px;
    box-sizing: border-box;
}
header > div {
    display: flex;
    width: 100%;
}
header > div:last-child {
    width: fit-content;
    align-items: center;
    gap: 10px;
}
.svg-logo {
    height: 27px;
    padding: 10px 10px 10px 0;
}
header > div > div:last-child {
    margin-left: auto;
}
.logo-link {
    display: flex;
}
.view-height {
    min-height: 100vh;
}

footer {
    border-top: 1px solid var(--third-color);
    padding: 20px 0 120px 0;
    align-items: center;
}
.social-media-links {
    display: flex;
    flex-direction: row;
    gap: 5px;
}
.social-media-links > a {
    display: flex;
    aspect-ratio: 1;
    padding: 5px;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
}
.social-media-link-logo-svg {
    height: 20px;
    width: 20px;
}
.footer-link-list {
    color: gray;
    font-size: small;
}
.footer-link-list > a {
    color: gray;
    border-bottom: 1px solid gray;
    margin: 5px;
}
.hideable-at-dcc {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selection-parent {
    align-content: center;
}
.language-choice-container {
    position: absolute;
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}
.language-choice-container > button {
    font-size: medium;
    font-weight: normal;
    padding: 5px 20px 5px 10px;
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: left;
}
.language-choice-container > button:hover {
    background-color: var(--secondary-color);
}
.screen-width-limit {
    max-width: 1200px;
    margin: auto;
    margin-top: 100px;
    padding: 10px;
}
.quiz-creation-screen-width-limit {
    width: 728px;
    margin: 75px auto 50px auto;
    min-width: 380px;
    margin-bottom: 100px;
}
.creation-categories-btns {
    display: flex;
    width: 100%;
    gap: 5px;
}
.creation-categories-btns > button {
    flex: 1;
}

.container-with-pronounced-border,
.second-container-with-pronounced-border{
    box-sizing: border-box;
    border: 1px solid var(--third-color);
    color: var(--text-color);
}
.container-with-pronounced-border {
    background-color: var(--background-color);
    border-radius: 0.5rem;
    padding: 5px;
}
.second-container-with-pronounced-border {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 10px;
}

.quiz-info-wrapper-container,
.created-questions-container {
    padding: 10px;
}

#quizProgressBar {
    height: 0.5rem;
    width: 4rem;
    border-radius: 100px;
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    overflow: hidden;
}
#quizProgress {
    height: 100%;
    width: 0%;
    background-image: linear-gradient(var(--site-theme-color), var(--theme-color-shade));
    transition: ease-in-out 200ms;
}

.dcc-screen-width-limit,
.quiz-screen-width-limit,
#quizPlayerContainer {
    width: 100%;
    max-width: 700px;
    margin: auto;
    padding: 10px;
    height: fit-content;
    box-sizing: border-box;
}
#finishedQuizContainer {
    display: none;
    margin: 150px auto auto;
    width: 100%;
    max-width: 1200px;
}
.center-child {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-register {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.generic-input-wrapper,
.question-input-wrapper,
.alternative,
.text-answer,
.option,
.ranking-item {
    display: flex;
    gap: 5px;
    padding: 0.25rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    border-radius: 5px;
    align-items: center;
}

.lang-cat-thumb-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.thumbnail-control-panel {
    display: flex;
}

.upload-icon {
    background-size: 100px;
    height: 40px;
    width: 40px;
    background-repeat: no-repeat;
    margin: auto;
    fill: var(--third-color);
    transition: ease-in-out 200ms;
}

.upload-icon-undertext,
.upload-icon-explonation,

.upload-icon-undertext-question-image,
.upload-icon-explonation-question-image {
    font-weight: bold;
    opacity: 0.3;
}
.upload-icon-undertext {
    font-size: 20px;
}
.upload-icon-explonation,
.upload-icon-explonation-question-image {
    font-size: 15px;
}
.upload-icon-undertext-question-image {
    font-size: 20px;
}

.image-container {
    width: 100%;
    cursor: pointer;
    align-content: center;

    border: 2px solid var(--third-color);
    border-style: dashed;
    border-radius: 10px;
}

.image-container.dragover,
.image-container:hover {
    background-color: var(--secondary-color);
}

.quiz-lang-cat-choice > #selectedCategoryLabel {
    font-size: small;
}

.generic-input-wrapper > input,
.generic-input-wrapper > textarea {
    font-size: 15px;
    border: none;
    outline: none;
    background-color: transparent;
    width: 100%;
    resize: none;
    color: var(--text-color);
    padding: 0.35rem;
}

.write-option,
.write-option > input {
    display: block;
    font-weight: bold;
    box-sizing: border-box;
}

#tags {
    display: flex;
    flex-flow: wrap;
}

.tag-wrapper {
    height: fit-content;
}

.tag {
    display: flex;
    flex-direction: row-reverse;
    background-color: var(--secondary-color);
    padding: 3px 10px 3px 3px;
    border-radius: 500px;
    font-weight: bold;
    margin: 5px 5px 0px 0px;
    width: fit-content;
    align-items: center;
}

.tag > button {
    color: var(--text-color);
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 999px;
    font-size: medium;
    aspect-ratio: 1;
    padding: 5px;
    display: flex;
    align-items: center;
}
.remove-btn,
.remove-text-answer {
    background-color: transparent;
    font-size: 15px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: ease-in-out 200ms;
    font-weight: bold;
    text-transform: uppercase;
    align-items: center;
    display: flex;
}

.remove-btn:disabled {
    opacity: 0.5;
    cursor: unset;
}
.alternative > .remove-btn > svg,
.remove-text-answer > svg {
    height: 25px;
    pointer-events: none;
}
.alternative > .remove-btn > svg > path,
.remove-text-answer > svg > path {
    height: 25px;
    pointer-events: none;
    stroke: var(--opposite-of-background-color);
}

.alternative-input-conatiner {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px;
}

.content-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    display: grid;
}

.correct-input {
    display: none;
}

.correct-label {
    background-color: var(--background-color);
    display: flex;
    aspect-ratio: 1;
    cursor: pointer;
    transition: ease-in-out 200ms;
    border-radius: 10px;

    border: 2px solid var(--third-color);
    height: 26px;
    width: 26px;
    align-self: center;
}

.option > span,
.option > input,
.ranking-item > span,
.correct-label {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.correct-label-middle {
    width: 0%;
    height: 0%;
    transition: ease-in-out 200ms;
}

.correct-input:checked + .correct-label > .correct-label-middle {
    background-color: var(--site-theme-color);
    width: 75%;
    height: 75%;
    border-radius: 5px;
    box-shadow: 0 0 5px var(--site-theme-color);
}

.ranking-number {
    display: flex;
    height: 22px;
    aspect-ratio: 1;
    font-weight: bold;
}

/** No Such Quizzes **/
/*********************/

.no-such-quizzes-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    align-items: center;
    margin: auto;
}

.no-such-quizzes-container > span {
    font-size: 12px;
    letter-spacing: -0.3px;
    max-width: 450px;
    color: var(--gray-text);
}

/** Char limit **/
/****************/

.counter-display {
    padding: 0.20rem;
    font-weight: bold;
}

/** Buttons **/
/*************/

button,
.sign-in-button,
.quiz-creation-choice {
    cursor: pointer;
    background-color: transparent;
    border: none;
    align-items: center;
}
.sml-btn,
.thn-btn,
.med-btn,
.big-btn {
    white-space: nowrap;
    width: fit-content;
    border-radius: 5px;
}
.sml-btn {
    padding: 5px;
    font-size: small;
}
.thn-btn {
    padding: 5px 10px;
    font-size: 15px;
}
.med-btn {
    padding: 0.5rem 0.75rem;
    font-size: 15px;
}
.big-btn {
    padding: 10px;
    font-size: large;
}
.full-width {
    width: 100%;
}
.full-height {
    height: 100%;
}
.light-hover-btn,
.thicker-light-hover-btn {
    padding: 5px;
    border-radius: 5px;
    font-size: medium;
    font-weight: 400;
    font-size: 15px;
}
.thicker-light-hover-btn {
    padding: 0.5rem;
}
.light-hover-btn:hover,
.thicker-light-hover-btn:hover {
    background-color: var(--secondary-color);
}

.submit-quiz-button {
    background-color: var(--site-theme-color);

    text-transform: capitalize;
    font-size: large;
    white-space: nowrap;
    
    padding: 5px 10px;
    border-radius: 8px;
    width: fit-content;
    transition: ease-in-out 500ms;
    cursor: pointer;
}

#addAlternativeBtn {
    font-size: x-large;
    background-color: transparent;
    aspect-ratio: 1;
    font-weight: 500;
}

#addAlternativeBtn:disabled,
#addBtn:disabled,
#submitQuizBtn:disabled {
    filter: grayscale(1);
    cursor: not-allowed;
    box-shadow: none;
}

.gradient-theme-button {
    background-image: linear-gradient(var(--site-theme-color), var(--theme-color-shade));
    border: 1px solid var(--theme-color-shade);
    box-sizing: border-box;
    color: whitesmoke;
}
.gradient-background-button {
    background-image: linear-gradient(var(--secondary-color), var(--third-color));
    border: 1px solid var(--third-color);
    box-sizing: border-box;
    color: whitesmoke;
}
.gradient-green-button,
.correct:has(input:checked) {
    background-image: linear-gradient(var(--correct-color), var(--correct-color-shade));
    border: 2px solid var(--correct-color-shade);
    color: whitesmoke;
}
.gradient-red-button {
    background-image: linear-gradient(var(--red-color), var(--red-shade));
    border: 1px solid var(--red-shade);
    color: whitesmoke;
}

.button-panel {
    display: flex;
    flex-direction: row;
    width: fit-content;
    border: 1px solid var(--third-color);
    background-color: var(--background-color);
    padding: 0.25rem;
    border-radius: 5px;
}
.button-panel > button {
    display: flex;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}
.active {
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    color: var(--text-color);
}


/*************/
/*************/

/** Quiz Page **/

.option > span {
    height: fit-content;
    margin: auto;
    text-align: center;
}
.ranking-item {
    cursor: grab;
}
.option,
.ranking-item {
    cursor: pointer;
    padding: 0.5rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    font-weight: bold;
}
.option > input {
    display: none;
}
.option:has(input:checked) {
    background-image: linear-gradient(var(--site-theme-color), var(--theme-color-shade));
    border-color: var(--theme-color-shade);
    color: white;
}
.correct-option:has(input:checked),
.write-option.correct-option,
.ranking-item.correct-option {
    background-image: linear-gradient(var(--correct-color), var(--correct-color-shade));
    border-color: var(--correct-color-shade);
    color: white;
}
.wrong-option:has(input:checked),
.write-option.wrong-option,
.ranking-item.wrong-option {
    background-image: linear-gradient(var(--red-color), var(--red-shade));
    border: 1px solid var(--red-shade);
    color: white;
}
.correct-option > input, .wrong-option > input {
    color: white;
}
.text-answer {
    margin-bottom: 5px;
}
/***************/

.quiz-question-preview {
    display: flex;
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 15px;
    border-color: var(--opposite-of-background-color);
}

.quiz-question-preview > h4 {
    font-size: x-large;
    margin: 0;
    color: var(--text-color);
    opacity: 0.5;
}

.quiz-question-image-preview {
    aspect-ratio: 16/9;
    height: 100%;
    min-width: 125px;
    max-width: 125px;
    background-color: var(--third-color);
    border-radius: 10px;
    align-content: center;
    overflow: hidden;
    text-align: center;
}

.remove-question-btn,
.view-question-btn,
.edit-question-btn {
    border-radius: 5px;
    aspect-ratio: 1;
    display: flex;
}
.remove-question-btn > svg,
.view-question-btn > svg,
.edit-question-btn > svg {
    height: 24px;
    width: 24px;
}
.question-preview-buttons {
    display: grid;
    gap: 5px;
    grid-template-columns: auto auto;
}


.thumbnail-preview,
.question-image-preview {
    width: 200px;
    min-width: 200px;
    height: 112.5px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    box-sizing: border-box;
    position: relative;
}
#removeThumbnailBtn,
#removeQuestionImageBtn {
    top: 5px;
    right: 5px;
    position: absolute;
}

.question-image-preview {
    background-size: contain;
    background-position: center center;
}

.image-preview-control-panel {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: ease-in-out 200ms;
    display: flex;
}

.thumbnail-preview:hover > .image-preview-control-panel,
.question-image-preview:hover > .image-preview-control-panel {
    opacity: 1;
}

.modal-option {
    font-size: large;
    border: none;
    outline: none;
    background-color: transparent;
    width: 100%;
    display: flex;
    align-items: center;
}

.modal-option > .correct-label {
    margin-right: 5px;
    border-color: transparent;
}

.correct-option > .correct-label {
    background-color: var(--secondary-color);
}

.correct-modal-label {
    display: flex;
    margin-right: 5px;
    aspect-ratio: 1;
    width: 22px;
}

.correct-option > .correct-modal-label > .correct-label-checkmark {
    fill: var(--text-color);
    height: 100%;
    width: 100%;
}


.img-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16/9;
    margin: auto;
    align-content: center;
}

.question-image {
    max-width: 100%;
    display: flex;
    margin: auto;
    max-height: 100%;
    border-radius: 15px;
}

.question-block > h2 {
    margin: 7px;
}
.results {
    text-align: center;
}
.results > h2 {
    font-size: xx-large;
    color: var(--site-theme-color);
    margin: 0;
}
.result-accuracy {
    color: var(--text-color);
    font-size: x-large;
    font-weight: bold;
    margin-bottom: 10px;
}
.field-error {
    font-size: 12px;
    text-transform: uppercase;
}

#registerForm > label,
#loginForm > label {
    display: block;
    font-weight: bold;
    font-size: 12px;
}

/** Preview **/
/*************/

.preview-pfp,
.preview-create-btn,
.preview-header-ad-btn {
    background-color: var(--third-color);
}
.preview-create-btn {
    height: 36px;
    width: 83.8px;
}
.preview-header-ad-btn {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    margin: 5px;
}
.header-profile-picture {
    display: flex;
}
.header-profile-picture > img,
.preview-pfp {
    height: 50px;
    width: 50px;
    border-radius: 100%;
    overflow: hidden;
    cursor: pointer;
}

#pfp {
    border-radius: 999px;
}

.header-profile-menu {
    width: 300px;
    flex-direction: column;
    position: absolute;
    right: 10px;
    padding: 10px;
    gap: 5px;
    margin-top: calc(var(--header-height) - 10px);
}

.dropdown-user-summary {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-user-summary > div {
    display: flex;
}

.dropdown-user-summary > div > span {
    font-size: 16px;
    font-weight: bold;
}

.created-question-preview {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
    line-height: 2ch;
    max-height: 4ch;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.card-title > h3,
.control-panel-quiz-title {
    margin: 0;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: var(--text-color);
}

.ad-creatives-image {
    border-radius: 5px;
    cursor: pointer;
}
.medium-rectangle {
    width: 300px;
    aspect-ratio: 1.2;
}
.mobile-banner {
    width: 320px;
    aspect-ratio: 6.4;
}
.large-mobile-banner {
    width: 320px;
    aspect-ratio: 3.2;
}

#deleteAccountButton,
.campaign-action-button,
.create-ad-campaign-button {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 15px;
}
.delete-button:disabled {
    opacity: 0.5;
}
.content-buttons {
    display: flex;
    background-color: #0003;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 5px;
    overflow: hidden;
}
.content-button {
    color: whitesmoke;
    aspect-ratio: 1;
    width: 20px;
    display: flex;
    background-color: transparent;
    font-size: x-small;
}
.content-button:hover {
    background-color: #0002;
}
#contentHideButton:before {
    content: ' \2715';
}
.content-info-button:before {
    content: ' \2139';
}
.split-page {
    display: flex;
    flex-direction: row;
}

.whythisad-container {
    width: 100%;
    border: 1px solid var(--third-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.whythisad-container-title {
    font-size: large;
    font-weight: bold;
}

@media screen and (max-width: 900px) {
    .alternative-input-conatiner {
        grid-template-columns: auto;
    }
}

/** Text overflow **/
/*******************/

.text-overflow-one,
.text-overflow-two {
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    display: box;

}
.text-overflow-one {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}
.text-overflow-two {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/*******************/

/** Generic **/
/*************/

.grayed-out-text {
    color: var(--gray-text);
}
.text-align-center {
    text-align: center;
}
.bold {
    font-weight: bold;
}
.flex-box-row {
    display: flex;
    gap: 5px;
}
select {
    background-color: var(--background-color);
    border: 1px solid var(--third-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}
.round {
    border-radius: 999px;
}

footer,
.flex-box-column,
.overview-chart-container-text,
.deposit-container,
.dashboard-side-panel,
.campaign-content,
.ad-campaigns-container,
.quiz-creation-screen-width-limit,
#createdQuestions,
.quiz-info-wrapper,
.upload-information-container,
.quiz-lang-cat-choice,
.question-creation-wrapper,
.whythisad-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.no-gap {
    gap: 0;
}
.hidden {
    display: none;
}
.half-rotate-arrow {
    rotate: 180deg;
}
.info {
    font-size: 12px;
    border: 1px solid var(--info-yellow);
    padding: 2px 5px;
    background-color: var(--info-yellow-translucent);
    color: var(--info-yellow);
    border-radius: 5px;
    letter-spacing: -0.25px;
}
.info-theme {
    font-size: 12px;
    padding: 5px 10px;
    background-color: var(--site-theme-translucent);
    color: var(--site-theme-color);
    border-radius: 5px;
}
.center-flexbox-h {
    justify-content: center;
}
.center-flexbox-v {
    align-items: center;
}
.space-between-flexbox {
    justify-content: space-between;
}

/*************/

#sfxBtn {
    background-color: transparent;
    aspect-ratio: 1;
    border-radius: 5px;
}
#sfxBtn:hover {
    background-color: var(--secondary-color);
}
.volume-icon {
    height: 20px;
    width: 20px;
}

/** Datepicker **/
/****************/

#datePickContainer {
    width: fit-content;
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    padding: 10px;
    border-radius: 10px;
    position: fixed;
    z-index: 100;
}
.calendar {
    position: relative;
    display: flex;
    gap: 2px;
    flex-direction: column;
}
.days, .date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    text-align: center;
    font-size: 90%;
    gap: 5px;
}
.days strong, .date-item {
    text-align: center;
    height: fit-content;
    font-size: 85%;
    aspect-ratio: 1;
    align-content: center;
}
.date-item {
    cursor: pointer;
    border-radius: 15%;
}
.date-item:hover,
.date-item.selected {
    background-color: var(--third-color);
}
.date-item.today {
    border: 2px solid var(--third-color);
}
.date-item.fade {
    opacity: 0.5;
}
.calendar-header {
    display: flex;
    gap: 5px;
    align-items: center;
}
.calendar-header button {
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 0.25rem;
}
#clearDateBtn {
    border: 1px solid var(--third-color);
    padding: 0.275rem 0.5rem;
    font-size: 75%;
    height: fit-content;
}
.calendar-header button:hover {
    background-color: var(--third-color);
}
#prevDateBtn, #nextDateBtn {
    display: flex;
    aspect-ratio: 1;
}
.month-year-display-container {
    width: 100%;
    text-align: center;
}
.month-year-selection-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
}
.datepicker-input {
    font-size: medium;
    text-transform: uppercase;
}

/****************/

/** Plus page **/
/***************/

.plus-page-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}
.plus-page-mode-button {
    font-size: small;
    font-weight: bold;
}

/***************/

/** Dashboard **/
/***************/
.control-panel-quiz-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
.dashboard-section {
    width: 100%;
}
.overview-chart-container {
    height: 120px;
    display: flex;
    gap: 10px;
    color: gray;
    font-size: small;
    align-items: center;
    padding: 10px 10px 10px 20px;
}
.overview-chart-container-total-value {
    font-size: x-large;
    color: var(--text-color);
}
.overview-chart-container-text {
    height: 100%;
    aspect-ratio: 1;
    gap: unset;
}
.overview-section-intro-text {
    display: flex;
    flex-direction: column;
}
.overview-section-title {
    font-size: xx-large;
}
.overview-section-subtitle {
    font-size: medium;
    color: gray;
    font-weight: 400;
}
#depositAmount {
    width: 100px;
}
#toggleDashboardSidebar {
    display: flex;
    height: fit-content;
    width: fit-content;
    margin: auto;
}
.profile-menu-section {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--third-color);
}

.campaign-content {
    padding: 0 15px 15px 15px;
}
.open-creatives-modal {
    padding: 8px 16px 8px 0px;
    font-size: large;
    color: var(--text-color);
    background: transparent;
    width: fit-content;
}
.stat-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: auto auto auto auto;
}
.stat-card-title {
    display: flex;
    color: gray;
    font-size: large;
}
.stat-card-value {
    font-size: xx-large;
}
.ad-campaign-container-controls {
    margin-bottom: 10px;
}
.ad-campaigns-container > div > div {
    flex: 1;
    min-height: 20px;
}
.ad-group {
    width: 100%;
    background-color: var(--background-color);
    border: 1px solid var(--third-color);
    border-radius: 0.5rem;
    box-sizing: border-box;
    
}
.ad-group-header {
    font-size: large;
    cursor: pointer;
    padding: 10px 15px;
    display: flex;
}
table {
    border-collapse: separate;
    border-spacing: 0; 
    width: 100%;
    border-top: 1px solid var(--secondary-color);
}
.ad-groups-container-controls {
    background-color: var(--background-color);
}
.right-pointing-angle {
    rotate: 90deg;
    height: fit-content;
    width: fit-content;
    margin-left: auto;
    user-select: none;
}
.table-cell-left {
    border-left: 1px solid var(--secondary-color);
    width: 200px;
    min-width: 150px;
}
.table-cell-right {
    border-right: 1px solid var(--secondary-color);
    color: gray;
}
.table-cell-left,
.table-cell-right {
    font-size: small;
    padding: 15px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--secondary-color);
}
.transaction-date {
    white-space: nowrap;
}
.ad-creatives-image {
    background-color: var(--tag-chip-color);
    text-align: center;
    align-content: center;
    font-weight: bold;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ad-creatives-image {
    position: relative;
    overflow: hidden;
}
.delete-image-btn {
    position: absolute;
    left: 5px;
    bottom: 5px;
    aspect-ratio: 1;
    padding: 5px;
    border-radius: 8px;
    background-color: black;
    cursor: pointer;
}
.delete-image-btn > svg {
    pointer-events: none;
}
.delete-image-btn > svg > path {
    stroke: whitesmoke;
}
.delete-image-btn.hidden {
    display: none;
}

/***************/

/** Modal **/
/***********/

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.6);
    display: flex;
}
.modal-container {
    background-color: var(--background-color);
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    margin: 10px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}
.modal-header {
    display: flex;
}
.modal-header > h3 {
    margin: 0;
    flex: 1;
}

/***************/

/** Ad Creation **/
/*****************/

.campaign-creation-label {
    margin-bottom: 5px;
    display: block;
}
.campaign-creation-money-input-sign {
    font-size: medium;
    font-weight: bold;
    aspect-ratio: 1;
    display: flex;
    height: 25px;
}

.countries-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: scroll;
}
.countries-input-grid > label {
    padding: 5px;
    cursor: pointer;
    font-weight: bold;
    accent-color: var(--site-theme-color);
}
.area-buttons {
    margin: 5px 0;
}
.area-buttons > button {
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: medium;
}
#progress {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    display: flex;
    overflow: hidden;
    background-color: var(--secondary-color);
    margin-top: 10px;
}
#progress > div {
    background-image: linear-gradient(to right, var(--theme-color-shade), var(--site-theme-color));
    transition: width 400ms ease-in-out;
}
#selectedIndustryPath {
    margin: 0px;
}
.ad-check-info {
    margin: 20px 0;
}
.ad-check-info > h3 {
    margin: 5px 0;
}
.campaign-setup-container {
    width: 100%;
    max-width: 700px;
    margin: auto;
    margin-top: 120px;
    padding: 10px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 15px;
}
.setup-section {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--third-color);

    display: flex;
    flex-direction: column;
    gap: 10px;
}
.setup-section-title {
    font-size: large;
}
.short-input {
    max-width: 200px;
}

/****************/

/** Pagination **/
/****************/

.pagination {
    margin: 20px auto 20px auto;
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: fit-content;
}
.pagination button {
    font-weight: bold;
    padding: 5px;
    height: 30px;
    aspect-ratio: 1;
    cursor: pointer;
    align-content: center;
    align-items: center;
    justify-content: center;
    display: flex;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.pagination button:disabled {
    border-color: gray;
    color: gray;
    cursor: default;
}
.pagination button.active {
    background-color: var(--text-color);
    border-color: var(--text-color);
    color: var(--background-color);
}
.jump-wrapper {
    display: flex;
    flex-direction: row;
}
.page-jump-input {
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;

    width: 30px;
    background-color: var(--background-color);
    border-radius: 5px 0 0 5px;
    border: 1px solid var(--border-color);
    border-right: none;
    outline: none;
}
.jump-wrapper > button {
    border-radius: 0 5px 5px 0;
}
.page-jump-input::-webkit-outer-spin-button,
.page-jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/****************/

/** Side menus **/
/****************/

.slot {
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    margin: auto;
}
.slot[data-size="1"] {
    width: 100%;
    max-width: 728px;
    aspect-ratio: 8.08888;
}
.slot[data-size="3"] {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3.2;
}
.slot[data-size="2"] {
    width: 100%;
    max-width: 300px;
    min-width: 300px;
    aspect-ratio: 1.2;
}
.sl[data-size="2"] {
    display: block;
    margin: auto;
}
.anch {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}
.fd {
    position: relative;
    margin: 5px auto;
}
.trckd {
    width: 100%;
    height: 100%;
    background-size: cover;
}

/** Default if none **/

.slot-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 100%;
    background-image: linear-gradient(var(--site-theme-color), var(--theme-color-shade));
    
    color: whitesmoke;
    font-size: 15px;
    font-weight: 650;
}

/****************/
@media screen and (max-width: 1200px) {
    .stat-cards {
        grid-template-columns: auto;
    }
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-height: 700px) {
    .quiz-screen-width-limit {
        width: 500px;
    }
    .question-block > h2 {
        font-size: larger;
    }
}
@media screen and (max-width: 700px) {
    .quiz-screen-width-limit {
        width: 500px;
    }
    .quiz-creation-screen-width-limit {
        width: 100%;
    }
    .question-block > h2 {
        font-size: larger;
    }
    .three-hundo,
    .three-twenty {
        height: 100%;
        width: 50%;
    }
    .hideable-at-dcc {
        display: none;
    }
    .overview-chart-container {
        flex-direction: column;
        height: unset;
        align-items: baseline;
    }
    .overview-chart-container-text {
        height: unset;
        aspect-ratio: unset;
    }
    .countries-input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .language-selection-language {
        display: none;
    }
    .hideable-sidebar-element {
        display: none;
    }
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 500px) {
    .quiz-screen-width-limit {
        width: 430px;
    }
    .thumbnail-preview {
        width: 100%;
    }
    .image-preview-control-panel {
        opacity: 1;
        margin-top: auto;
        background-color: transparent;
    }
    .image-preview-controls {
        margin: unset;
        position: relative;
        margin-top: auto;
        margin-left: auto;
    }
    header > div > img {
        height: 35px;
    }
    .submit-quiz-button {
        padding: 8px 16px;
    }
    .creation-categories-btns {
        flex-direction: column;
    }
}