/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on October 4, 2023 */



@font-face {
    font-family: '04b30';
    src: url(8d46e954c313a344b83a.woff2) format('woff2'),
        url(6f785752185ce4d25f7c.woff) format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'montserratthin_italic';
    src: url(3f6b74a375b72e0b1ba8.woff2) format('woff2'),
        url(bb465b740aece501651a.woff) format('woff');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'montserratthin';
    src: url(abdc58e83c1cdff4697d.woff2) format('woff2'),
        url(a22d90c1ebf8512bcc5a.woff) format('woff');
    font-weight: normal;
    font-style: normal;

}
body {
    background: linear-gradient(170deg, rgb(16, 41, 46), rgb(1, 2, 20)) top / 100vw 100vh;
    background-attachment: fixed;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 10fr;
    /* overflow: hidden; */
    font-family: "montserratthin", serif;
}

p {
    margin: 2px;
}

header {
    grid-column: 1/4;
    grid-row: 1;
    display: flex;
    flex-direction: row;
}

header .title {
    color: rgb(29, 72, 81);
    font-size: 5vmin;
    text-align: center;
    margin-top: 0;
    font-family: "montserratthin", serif;
}

main {
    position: relative;
    grid-column: 1/4;
    grid-row: 2;
    margin-bottom: 1.5rem;
}

.layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

button {
    border-radius: 5px;
    border: white 1px solid;
    background: linear-gradient(170deg, rgb(16, 41, 46), rgb(1, 2, 20));
    color: white;
    margin: 10px;
    font-size: 1em;
}

input {
    border-radius: 10px;
    border: white 1px solid;
    background: linear-gradient(170deg, rgb(16, 41, 46), rgb(1, 2, 20)) !important;
    margin: 10px;
    font-size: 1.5em;
    color: white;
    padding-inline-start: 0.5em;
    height: 2em;
    width: 20em;
}


label {
    color: white;
    font-size: 1.5em;
}

.loginBtns {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    margin-left: auto;
}

.loginBtns p {
    color: white;
}

#btnLogin,
#btnSignup {
    font-family: "montserratthin", serif;
    grid-column: 1;
    grid-row: 1;
    height: 2em;
    width: 5em;
}

header #btnLogout {
    visibility: hidden;
    font-family: "montserratthin", serif;
    grid-column: 1;
    grid-row: 1;
    height: 2em;
    width: 5em;
    position: flex-end;
    justify-self: flex-end;
    margin-left: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    font-size: 1em;
}

.flip-card {
    width: 66%;
    height: 66%;
    min-width: 600px;
    min-height: 400px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    perspective: 50% 50%;
    position: relative;
}

.next-card {
    animation-duration: 0.2s;
    animation-name: slideoutslidein;
    animation-iteration-count: 2;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes slideoutslidein {
    from {
        margin-right: 0vw;
    }

    to {
        margin-right: 150vw;
    }
}

.flip-card-inner {
    background-color: rgb(29, 72, 81);
    border-radius: 30px;
    box-shadow: 0 0 3vw rgb(29, 72, 81);
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s, background-color 0.4s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-inner-border {
    background-color: transparent;
    border-radius: 20px;
    z-index: 1;
    position: relative;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    border: 2px solid rgb(148, 119, 52);
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-card-front,
.flip-card-back {
    /* use absolute position because the relative position of each card
    is affected by the other */
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-back {
    transform: rotateY(180deg);
    /* use grid to prevent the ray-box to spread beyond its parent element */
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.ray-box {
    display: flex;
    padding: 10px;
    justify-content: center;
}

.ray {
    opacity: 0.1;
    width: 2px;
    height: 50px;
    background-color: black;
    margin-left: 20px;
    margin-right: 20px;
}

.ray:nth-child(1) {
    transform: rotate(-20deg);
}

.ray:nth-child(3) {
    transform: rotate(20deg);
}

#question {
    color: rgb(255, 255, 255);
    font-size: 2rem;
    font-family: "montserratthin", serif;
    font-weight: bold;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    margin: 20px;
    padding: 20px;
}

#answer {
    color: rgb(29, 72, 81);
    font-size: 1rem;
    font-family: "montserratthin", serif;
    max-width: 90%;
    max-height: 90%;
    text-align: left;
    margin: 20px;
    padding: 20px;
}

.flip-card-header {
    position: absolute;
    z-index: 2;
    background-color: rgb(29, 72, 81);
    transition: background-color 0.4s;
    width: 10em;
    height: 1.5em;
    inset-block-start: 15px;
    font-family: "montserratthin", serif;
    font-size: 1.75em;
    color: rgb(148, 119, 52);
    backface-visibility: hidden;
}

.flip-card-question-background {
    position: absolute;
    z-index: 1;
    background-color: transparent;
    font-weight: bold;
    opacity: 0.1;
    font-family: "montserratthin", serif;
    font-size: 22vh;
    color: rgb(255, 255, 255);
    backface-visibility: hidden;
}


.menu {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
}

.menu button {
    color: rgb(63, 125, 138);
    /* text-shadow: 0 0 1vw rgb(29, 72, 81); */
    font-size: 2rem;
    font-family: "montserratthin", serif;
    background: none;
    border: none;
}

.menu button:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.1);
}

.card-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    min-height: 5rem;
}

.card-footer button {
    color: rgb(63, 125, 138);
    background: none;
    border: none;
    transition-duration: 0.4s;
    display: none;
}

.card-footer #reset-button,
.card-footer #fail-button,
.card-footer #success-button,
.card-footer #soft-success-button,
.card-footer #soft-fail-button,
.card-footer #btnNext {
    font-size: 3rem;
}

.card-footer #fail-button {
    color: rgb(150, 0, 0);
    border-color: rgb(150, 0, 0);
}

.card-footer #soft-fail-button {
    color: rgb(150, 100, 0);
    border-color: rgb(150, 100, 0);
}

.card-footer #soft-success-button {
    color: rgb(150, 100, 0);
    border-color: rgb(150, 100, 0);
}

.card-footer #success-button {
    color: rgb(0, 150, 0);
    border-color: rgb(0, 150, 0);
}

.card-footer .clicked {
    border: 1px solid rgb(63, 125, 138);
    border-radius: 5px;
}

#btnNext {
    font-size: 6vmin;
}

.card-footer button:hover {
    transition-duration: 0.4s;
    transform: scale(1.1);
}

#end-of-learning-session {
    display: none;
    color: white;
    font-size: 2em;
}

footer {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.footer-logo {
    margin-block-end: 10px;
    height: 50px;
    /* maintain aspect ratio of the image width*/
    width: auto;
}

.login {
    color: white;
}

.toast-animation {
    animation-duration: 0.1s;
    animation-name: shake;
    animation-iteration-count: 6;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes shake {
    from {
        transform: translateX(0px);
    }

    to {
        transform: translateX(5px);
    }
}

.toast-message {
    position: fixed;
    color: white;
    top: 10px;
    justify-self: center;
    border: none;
    border-radius: 10px;
    background-color: green;
    padding: 10px;
    font-size: 1em;
    opacity: 1;
    transition: opacity 1s;
}

@media screen and (max-width: 800px) {
    .flip-card {
        width: 66vw;
        height: 66vh;
        min-width: 200px;
        min-height: 200px;
    }

    .flip-card-inner-border {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        border: 1px solid rgb(148, 119, 52);
    }

    .flip-card-header {
        width: 10em;
        height: 1em;
        font-size: 1em;
        inset-block-start: -5px;
    }

    .ray-box {
        padding: 5px;
    }

    .ray {
        width: 1px;
        height: 25px;
        margin-left: 10px;
        margin-right: 10px;
    }

    #question {
        font-size: 1.5em;
    }

    #answer {
        font-size: 1.5em;
    }
}

#editors {
    margin: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edition {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex: 1;
}

.edit {
    display: flex;
    flex-direction: column;
}

.viz {
    box-sizing: border-box;
    background-color: white;
    width: 45vw;
    overflow: auto;
    padding: 10px;
}

#editorQuestion {
    width: 45vw;
    border: 1px white solid;
    background-color: white;
}

#editorAnswer {
    width: 45vw;
    border: 1px white solid;
    background-color: white;
}

.ql-toolbar {
    width: 45vw;
    background-color: white;
}

.ql-snow.ql-toolbar button {
    width: 15px;
    height: 15px;
    padding: 0px;
    margin: 5px;
}

.ql-snow.ql-toolbar span {
    margin: 0px;
    padding: 0px;
}

.ql-snow.ql-toolbar .ql-formats {
    padding: 0px;
    margin-right: 0px;
}

.editorTitle {
    color: white;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

#sessionCounter {
    color: white;
    font-size: 1rem;
    padding-bottom: 10px;
}

#learningInterval {
    color: white;
    font-size: 1rem;
    padding-bottom: 10px;
}

.confirm-box {
    position: fixed;
    background-color: black;
    width: 120%;
    height: 120%;
    margin: -10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.confirm-box .confirm-box-content {
    background-color: white;
    border-radius: 10px;
    margin: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#confirm-box-yes {
    padding: 0.5rem;
    background: green;
}

#confirm-box-no {
    padding: 0.5rem;
    background: red;
}
