html {
    font-family: Helvetica;
    color: var(--text-color);
}

: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;
    
    --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;

    --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;
    
    --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;

    --header-height: 65px;

    --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;
    
    --border-color: #7e7e7e;

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

    --text-color: whitesmoke;

    --correct-color: rgb(102, 182, 80);
    --correct-color-shade: rgb(31, 144, 0);
    --red-color: rgb(255, 68, 68);
    --red-shade: darkred;

    --header-height: 65px;

    --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;
}
header {
    height: var(--header-height);
    display: flex;
    position: fixed;
    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: 800px;
    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;
}

#questionCounter {
    margin: auto;
    color: var(--third-color);
}

.quiz-screen-width-limit,
#quizPlayerContainer {
    width: 700px;
    margin: auto;
    padding: 10px;
    height: fit-content;
}
#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: 450px;
    padding: 20px;
}
.login-register > h1 {
    font-weight: 500;
    margin: 0;
}
.login-register > a {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--site-theme-color);
    font-weight: bold;
    cursor: pointer;
}
.by-continuing-text {
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
    font-size: small;
    color: gray;
}
.by-continuing-text > a {
    text-decoration: underline;
    white-space: nowrap;
    color: gray;
}

.generic-input-wrapper,
.title-input-wrapper,
.tag-input-wrapper,
.question-input-wrapper,
.alternative,
.text-answer,
.write-option,
.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,
.title-input-wrapper > input,
.title-input-wrapper > textarea,
.tag-input-wrapper > input,
.question-input-wrapper > input,
.alternative > input,
.text-answer > input,
.write-option > input {
    font-size: large;
    border: none;
    outline: none;
    background-color: transparent;
    width: 100%;
    resize: none;
    color: var(--text-color);
    padding: 0.25rem;
}

.title-input-wrapper > textarea {
    font-family: Arial;
}

.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-size: large;
    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;
    transition: ease-in-out 200ms;
    aspect-ratio: 1;
    padding: 7px;
    display: flex;
    align-items: center;
}

.tag > button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
}

.tag > button:before {
    content: ' \2715';
}

.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;
}

.correct-input {
    display: none;
}

.correct-label {
    background-color: var(--background-color);
    display: flex;
    aspect-ratio: 1;
    cursor: pointer;
    transition: ease-in-out 200ms;
    justify-content: center;
    align-items: center;
    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;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

button,
.sign-in-button,
.quiz-creation-choice {
    color: whitesmoke;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--site-theme-color);
    border: none;
    align-items: center;
}

.sign-in-button,
.open-language-choice-btn,
#createButton,
.tag-input-wrapper > button,
.quiz-creation-choice,
#openLanguageModal,
#openCategoryModal {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    font-size: medium;
}
.open-language-choice-btn {
    background: none;
    font-weight: 500;
    padding: 0.5rem;
    margin-right: 5px;
    height: fit-content;

    display: flex;
    justify-content: center;
    gap: 5px;

    color: var(--text-color);
    text-transform: capitalize;
}
.open-language-choice-btn:hover {
    background-color: var(--secondary-color);
}
.tag-input-wrapper > button,
.quiz-creation-choice,
#openLanguageModal,
#openCategoryModal {
    padding: 5px 10px;
}

#addAlternativeBtn,
#addTextAnswerBtn,
#addItemBtn,
.submit-quiz-button {
    background-color: var(--site-theme-color);
    box-shadow: var(--site-theme-color) 0 0 10px;

    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,
#addTextAnswerBtn,
#addItemBtn {
    float: right;
    padding: 0;
    font-size: 28px;
    background-color: transparent;
    box-shadow: none;
    color: var(--text-color);
    margin-right: 5px;
    aspect-ratio: 1;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

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

.generic-big-colored-btn,
.add-question-button,
#nextBtn,
#prevBtn {
    width: 100%;
    padding: 10px;
    font-size: medium;
    font-weight: bold;
    color: whitesmoke;
    border-radius: 10px;
    cursor: pointer;
    transition: ease-in-out 500ms;
    background-color: var(--site-theme-color);
}

.payment-button {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    color: var(--text-color);
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-weight: unset;
    width: 100%;
}
.payment-button:hover {
    background: var(--secondary-color);
}

.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;
}
.gradient-background-button {
    background-image: linear-gradient(var(--secondary-color), var(--third-color));
    border: 1px solid var(--third-color);
    box-sizing: border-box;
}
.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);
}

.button-panel {
    width: fit-content;
    border: 1px solid var(--third-color);
    background-color: var(--background-color);
    padding: 3px;
    border-radius: 0.5rem;
}
.button-panel-button {
    padding: 5px 10px;
    background-color: var(--background-color);
    border-radius: 5px;
    color: var(--text-color);
    border: 1px solid transparent;
}
.active {
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    color: var(--text-color);
}


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

/** Quiz Page **/

.option {
    justify-content: center;
}
.option > span {
    height: fit-content;
    margin: auto;
    text-align: center;
}
.ranking-item {
    cursor: grab;
}
.option,
.ranking-item,
.write-option {
    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;
}
.round {
    border-radius: 999px;
}

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

.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;
    overflow: hidden;
    background-color: var(--secondary-color);
    border: 1px solid var(--third-color);
    box-sizing: border-box;
}

.question-image-preview {
    background-size: contain;
    background-position: center center;
}
.question-creatives-wrapper {
    display: flex;
    flex-direction: row;
    height: 112.5px;
    gap: 10px;
}

.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;
}

.remove-image-button {
    background-color: var(--background-color-translucent);
    color: var(--text-color);
    font-size: large;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    margin: 5px;
    float: right;
    display: none;
}

.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 {
    overflow: hidden;
    width: 70%;
    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;
}
.form-error {
    display: none;
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: medium;
    background-color: #ff4545;
    border-radius: 5px;
    padding: 5px 10px;
    width: fit-content;
}
.field-error {
    color: red;
    font-size: small;
    text-transform: uppercase;
}
#registerForm > .generic-input-wrapper,
#loginForm > .generic-input-wrapper {
    padding: 10px;
    border-radius: 0.5rem;
    width: 100%;
    font-size: medium;
    box-sizing: border-box;
}

#registerForm > label,
#loginForm > label {
    width: 100%;
    display: block;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    margin: 5px 0px;
}

.register-button,
.login-button {
    margin-top: 10px;
    padding: 8px;
    font-size: large;
    font-weight: bold;
    border-radius: 0.5rem;
    width: 100%;
}

/** 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 > 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;
}

.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;
}

.header-ad-button {
    display: flex;
    padding: 5px;
    border-radius: 5px;
}

.header-ad-button:hover {
    background-color: var(--secondary-color);
}

.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;
    line-height: 2.2ch;
    max-height: 4.4ch;
    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;
    justify-content: center;
    align-items: center;
    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;
    }
}

#nextBtn,
#prevBtn {
    margin-top: 5px;
}


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

.flex-box-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

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,
.plus-page-text-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hidden {
    display: none;
}
.half-rotate-arrow {
    rotate: 180deg;
}

/** 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-family: arial;
    font-size: medium;
    text-transform: uppercase;
}

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

/** Dashboard **/
/***************/
.control-panel-quiz-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
.dashboard-section {
    width: 100%;
}
.overview-chart-container {
    height: 150px;
    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;
    justify-content: center;
    gap: unset;
}
.overview-section-intro-text {
    display: flex;
    flex-direction: column;
}
.overview-section-title {
    font-size: xx-large;
}
.overview-section-subtitle {
    font-size: 17px;
    color: gray;
}
#depositAmount {
    width: 150px;
}
#toggleDashboardSidebar {
    display: flex;
    height: fit-content;
    width: fit-content;
    margin: auto;
}
.deposit-input-field {
    display: flex;
    padding: 5px;
    font-size: xx-large;
    font-weight: bold;
    align-items: center;
}
.deposit-input-field > input {
    width: 100%;
    box-sizing: border-box;

    background-color: transparent;
    border: none;
    outline: none;

    font-size: xx-large;
    font-weight: bold;
}
.quick-select-deposit-amount-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}
.quick-select-deposit-amount-container > button {
    padding: 5px;
    border-radius: 5px;
    font-size: large;
}
.dashboard-menu,
.header-profile-menu > a,
.profile-menu-section > a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
    cursor: pointer;
}
.dashboard-side-panel > a:hover,
.header-profile-menu > a:hover,
.profile-menu-section > a:hover,
.active-dashboard {
    background-color: var(--secondary-color);
}
.header-profile-menu > a > svg,
.profile-menu-section > a > svg {
    height: 25px;
    width: 25px;
}
.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: medium;
    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;
    align-items: center;
    justify-content: center;
}
.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;
}

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

/** Plus page **/
/***************/
.plus-page-text-section {
    width: 100%;
    justify-content: center;
    font-size: large;
    line-height: 95%;
}

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

/** 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;
    justify-content: center;
}

.profile-create-container {
    width: 100%;
    max-width: 700px;
    padding: 10px;
    box-sizing: border-box;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}
.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;
    margin-bottom: 150px;
    display: flex;
    flex-direction: row;
    align-self: center;
    justify-content: center;
    gap: 5px;
}
.pagination button {
    font-weight: bold;
    padding: 10px;
    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(--site-theme-color);
    border-color: var(--site-theme-color);
    color: whitesmoke;
}
.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;
}

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

@media screen and (max-height: 700px) {
    .quiz-screen-width-limit {
        width: 500px;
    }
    .img-container {
        max-height: 270px;
    }
    .question-block > h2 {
        font-size: larger;
    }
}
@media screen and (max-width: 700px) {
    .quiz-screen-width-limit {
        width: 500px;
    }
    .img-container {
        max-height: 270px;
    }
    .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;
    }
}
@media screen and (max-width: 500px) {
    .quiz-screen-width-limit {
        width: 430px;
    }
    .img-container {
        max-height: 230px;
    }
    .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;
    }
}
@media screen and (max-width: 1200px) {
    .stat-cards {
        grid-template-columns: auto;
    }
}