@import url("./form_styles.css");

/* 1. GENERIC */
* {
    user-select: none;
    font-family: 'Kanit';
    box-sizing: border-box;
    margin: 0;
}

html {
    font-size: 10px;
}

body,
main {
    width: 100vw;
    max-width: 100%;
}


body {
    overflow-x: hidden;
}

h2 {
    font-size: 2.3rem;
}

h3 {
    font-size: 2rem;
}


h4 {
    font-size: 1.6rem;

}




p,
li,
div,
div>span,
input,
select,
textarea {
    font-size: 1.5rem;

}

select {
    color: black;
    background-color: white;

}

input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-text {
    color: black;
    background-color: white;
}

div img.icon,
span img.icon,
p img.icon,
h4 img.icon {
    height: 2rem;
}

h3 img.icon {
    height: 2.1rem;
}

h2 img.icon {
    height: 2.2rem;
}

.header,
.container {
    margin: auto;
    width: 95vw;
    min-width: 13.7rem;

}

h1>span.smaller,
h3>span.smaller,
h2>span.smaller,
h4>span.smaller,
li>span.smaller,
p>span.smaller,
span>.smaller {
    font-size: 80%;
}



p span.lt-smaller {
    font-size: 90% !important;
}

div>span.smaller {
    font-size: 1.1rem;
}

p>span.lt-smaller {
    font-size: 88%;
}

h1>span.extra-smaller {
    font-size: 70%;
}

h1:has(> span.extra-smaller) {
    line-height: 1;
}

li>span.bigger,
h1>span.bigger,
h3>span.bigger,
h2>span.bigger,
p>span.bigger,
span>.bigger {
    font-size: 120%;
}



h4 {
    font-weight: 600;
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-900 {
    font-weight: 900 !important;
}







:root {
    --lightgrey: #CCC;
    --grey: rgb(169, 169, 169);

    --mediumgrey: lightgrey;

    --darkGrey: dimgray;


    --red: rgb(192, 44, 44);
    --brightRed: #d10f0f;

    --mutedBlack: #0c0c0c;

    --darkmaroon: #620000;
}



body {
    /* Updated in JS, see configureStickyHeaders(). */
    --page-header-height: 0;
}

main {
    min-height: 70vh;
}

.sub-headers {
    position: sticky;
    top: var(--page-header-height);
}


/* LANGUAGE SWITCHER */

.language-switcher {
    background-color: white;
    padding: 1rem 4rem;
    border: 0.2rem solid var(--red);
    width: max-content;
    border-radius: 2rem;
    margin: 1rem 0;
    display: flex;
    gap: 1.7rem;
    box-shadow: -0.1rem 0px 0.6rem 0.3rem lightgrey;

}


.language-switcher>* {
    display: flex;
    align-items: center;
}


.language-switcher-wrapper {
    z-index: 100;
}

.language-switcher * {
    font-size: 2rem;
}


input[type="radio"]{
    accent-color: var(--red);
    height: 2.5rem;
    min-height: 10px;
    min-width: 15px;
    width: 5rem;
}

input[type="checkbox"] {
    accent-color: var(--red);
    height: 3.5rem;
    max-height: 25px;
    width: 5rem;
    border-color: var(--red) ;
}

input[type="text"].mega {
    border-radius: 0.6rem;
    font-size: 3rem;
    padding: 1rem 2rem;
    height: 5rem;
}

/* LANGUAGES */
.text-ta,
.text-ta * {
    font-weight: 500;
    font-family: 'Mukta Malar';
}

.text-si,
.text-si * {
    font-weight: 500;
    font-family: 'Noto Sans Sinhala';
}

.text-section:not(:has(.text.active)) {
    opacity: 0;
}




h1 .text-ta {
    font-weight: 900;
}

h1 .text-si {
    font-weight: 800;
}


.text {
    display: none;
}

.text.active {
    display: block;
}





/* 2. TEXT CLASSES */

.center-text {
    text-align: center;
}

ul.centered-list,
ol.centered-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}



ul.aligned-same-middle,
ol.aligned-same-middle {
    width: max-content;
    margin: auto;
    text-align: start;
}

.underline {
    text-decoration: underline;
}


.hyphenate-text,
.hyphenate-text * {
    hyphens: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}




/* 3. LAYOUT CLASSES */

.row {
    display: flex;
}

.wrap {
    flex-wrap: wrap;
}

.column-centered,
.column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.column-centered {
    justify-content: center;
}


.space-between {
    justify-content: space-between;
}

.space-around {
    justify-content: space-around;
}

.center {
    display: flex;
    justify-content: center;
}

.center-margined {
    margin: 2rem;

}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.end {
    justify-content: end;
}

.end-row {
    display: flex;
    justify-content: end;
}



[class$="-hide"],
.hide {
    display: none !important;
}

.display {
    display: initial !important;
}



.invisible {
    visibility: hidden;
}

/* colors */

.darkred-text {
    color: darkred;

}



.darkred-shadow {
    text-shadow: 0.1rem 0 var(--darkmaroon), 0.2rem 0 var(--darkmaroon), 0.2rem 0.1rem var(--darkmaroon);
}


.darkgreen-shadow {
    text-shadow: 0.1rem 0 darkgreen, 0.2rem 0 darkgreen, 0.2rem 0.1rem darkgreen;
}

.darkgreen-text {
    color: seagreen;
    text-shadow: 0.1rem 0 darkgreen;
}



.divider-padded {
    width: 100%;
    height: 1rem;
    border-bottom: 0.2rem solid var(--mutedBlack);
    margin-bottom: 1rem;
}


/* 9. BUTTONS */
[class*="-btn"]:has([class^="loading-"]) {
    pointer-events: none;
}

.button-text {
    line-height: normal;
    font-size: 1.6rem;
    font-weight: 500;
}

button {
    line-height: 0px;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    min-width: 12.5rem;
}

[class*="-btn"] {
    color: white;
    cursor: pointer;
}

[class*="-btn"]:has([class^="loading-"]) {
    pointer-events: none;
}

.disabled {
    pointer-events: none !important;

}

body.submitting,
body:has(.form.submitting),
body:has(.form.submitting) * {
    pointer-events: none !important;
}


button.disabled {
    pointer-events: none;
    cursor: no-drop;
    opacity: 0.7;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: brightness(80%);
}

button.disabled>.button-text {
    text-shadow: none !important;
}

button.disabled.grey {
    background-color: var(--grey);
}


/* LOADING */

[class*="-btn"]:has([class^="loading-"]):hover {
    opacity: 1;
}

[class*="-btn"]:has([class^="loading-"]) .button-text,
[class*="-btn"]:has([class~="load-done"]) .button-text {
    visibility: hidden;
}




[class*="loading-circle"] {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
    border: 0.31em solid transparent;
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    animation: spin 1s infinite linear;
    border-top-width: 0.375em;
    border-style: solid;
}


.wrapper-load {
    position: relative;
}



.loading-black {
    border-top-color: #000 !important;
}

.loading-inline {
    position: initial;
    display: block;
}

.loading-submit {
    border-color: white;
    border-top-color: maroon !important;
}

[class~="load-done"] {

    transform: rotate(45deg);
    width: 0.6rem;
    height: 1.3rem;
    border-bottom: 0.31rem solid #f3f3f3;
    border-right: 0.31rem solid #f3f3f3;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -0.3rem;
    margin-top: -0.6rem;
}




.action-btn {
    background-color: var(--mutedBlack);
    box-shadow: #000 0px 0.1rem 0.1rem 0px !important;
    text-shadow: 0.1rem 0.1rem 0.1rem #000;
    border: 0.3rem solid goldenrod;
    color: gold;

}

.submit-btn {
    background-color: maroon;
    box-shadow: var(--darkmaroon) 0px 0.1rem 0.1rem 0px !important;
    text-shadow: 0.1rem 0.1rem 0.1rem var(--darkmaroon);
    border: none;

}

/*   */

.content {
    max-width: 100%;
    padding: 0 1rem;
}

.content * {
    hyphens: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}



.container {
    padding: 3rem 2rem;
}


.message-layer {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.positioned-logo-nav-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.positioned-logo-nav-row .top-row {
    height: max-content;
    position: relative;
    flex-basis: 54%;
}

/* NAV BAR */

.nav-bar-sticky-wrapper {
    user-select: none;
    width: 100%;
    position: sticky;
    z-index: 1000000;

}

.nav-bar {
    width: 100%;
    border-bottom: 0.3rem solid var(--brightRed);
    box-shadow: -0.1rem -0.2rem 0.7rem 0.2rem crimson;
    padding: 0rem 1rem;
    background-color: white;

}



.mobile-nav-bar {
    display: none;
    position: absolute;
    top: 0;
    right: 0.6vw;
    height: 100%;
    width: min-content;


}

.mobile-nav-bar i {
    color: black;
}

.nav-item-list {

    display: flex;
    gap: 1rem;

    align-items: center;
}

.nav-item {
    text-align: center;

    padding: 0rem 1rem;
    border-right: 0.3rem solid rgba(179, 23, 23, 0.6);
    position: relative;
}

.nav-item#login {

    min-width: 7rem;
}


.nav-item.selected:after {
    content: "";
    position: absolute;
    border-bottom: 0.5rem solid var(--mutedBlack);
    width: 70%;
    height: 0.1rem;
    left: 50%;
    bottom: -1rem;
    transform: translateX(-50%);
}

.nav-item:first-child {
    border-left: 0.3rem solid rgba(179, 23, 23, 0.6);
}

.nav-item * {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}




/* LOGO */
.logo-white,
.logo {
    width: 10rem;
    height: 10rem;
    margin-top: 1rem;

    background-image: url("../images/myEducation_logo.png");

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}




.logo.medium {
    width: 16rem;
    height: 13rem;
}


.logo-white {
    background-image: url("../images/myEducation-logo__white.png");
}


.logo-white.big,
.logo.big {
    width: 18rem;
    height: 18rem;
}


.ag-logo {
    width: 20rem;
    height: 10rem;
    margin-top: 1rem;

    background-image: url("../images/ag-logo.png");

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}



/* TIMER CONTAINER */
.timer-container,
.timer-container-background {
    position: relative;
}


.timer-gap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0rem 1rem;

}


.timer-label * {
    color: lightgoldenrodyellow;
    font-size: 4rem;
    text-shadow: 0.3rem 0px #000000;
}

.secondary .timer-label * {
    color: lightcoral;
    font-size: 4rem;
    text-shadow: 0.3rem 0px var(--darkmaroon);
}




.timer-gap * {
    font-size: 6rem;
    font-weight: 800;
    color: white;
    background-color: var(--mutedBlack);
}


.timer {
    margin: auto;
}

.timer-container-background {
    height: 15rem;
    background-color: red;
}

.timer-text {
    color: white;
    text-shadow: 0.5rem 0px #000000;
    font-size: 5rem;
    font-weight: 500;
}


.timer-wrapper {
    background-color: var(--mutedBlack);
    width: 100%;
    height: 100%;
    padding: 10vh;
}

.timer-wrapper:not(:has(*)) {
    min-height: calc(10vh + 40rem);

}


.secondary.timer-wrapper {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
}


.timer-wrapper.secondary {
    background-color: maroon;
}

.dhms-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}




.timer-card {
    padding: 1rem;
    height: 20rem;
    border-radius: 3rem;
    border: 0.9rem solid goldenrod;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 0px 0.7rem black;
}

#pres-timer .timer-card {
    width: 20rem;
}


.secondary .dhms-countdown * {
    color: white;
    border: none;
    border-radius: 0;
    box-shadow: none;
}








.secondary .timer-card,
.secondary .timer-gap {
    height: max-content;

}

.secondary .timer-card,
.secondary .timer-gap,
.secondary .dhms-countdown * {
    background-color: brown;
}

.secondary .timer-text {
    background-color: transparent;
}


.secondary .timer-text {
    text-shadow: 0.5rem 0px var(--darkmaroon);
}


.timer-card * {
    font-size: 8rem;
    font-weight: 600;
    color: #000;
}




/* PRES */

.pres-image-holder-wrapper {
    position: relative;
}

.pres-image-col {
    margin-bottom: 2rem;
}


.pres-image-holder-wrapper .shadow {
    width: 25vw;
    height: 26vw;
    position: absolute;
    z-index: -1;
    background-color: rgb(102, 0, 0);
    box-shadow: -1rem 0.3rem 0.7rem 0.3rem rgb(102, 0, 0);
}

.pres-image-holder-wrapper .shadow.green {
    width: 25vw;
    height: 26vw;
    position: absolute;

    z-index: -1;
    background-color: darkgreen;
    box-shadow: -1rem 0.3rem 0.7rem 0.3rem darkgreen;
}

.pres-image-holder {
    background-color: goldenrod;
    padding: 1rem;
    display: flex;
    justify-content: center;

}


.pres-image-holder img {
    width: 25vw;
    height: 25vw;
}


.pres-main-content {
    display: flex;

}


/*  
.pres-img-bg {
    background-image: url("../images/pres_banner_red.png");
    width: 30vw;
    height: 58vw;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 3rem;
    margin-top: -1rem;
}


.speech-img-bg {
    background-image: url("../images/pres_banner_green.png");
    width: 30vw;
    height: 58vw;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 3rem;
    margin-top: -1rem;
}
*/
.pres-img-bg {
    background-color: darkred;
    width: 30vw;
    height: 50vw;
    margin-left: 3rem;
    margin-top: -1rem;
    position: relative;
    border-bottom: 0.2rem solid darkred;
}



.speech-img-bg {
    background-color: seagreen;
    width: 30vw;
    height: 50vw;
    margin-left: 3rem;
    margin-top: -1rem;
    position: relative;
    border-bottom: 0.2rem solid seagreen;
}

.pres-img-bg:before {
    content: '';
    background-color: darkred;
    position: absolute;
    bottom: -10vw;
    width: 0;
    height: 0;

    border-left: 0.1rem solid darkred;
    border-right: 15vw solid white;

    border-top: 10vw solid darkred;
}

.pres-img-bg:after {
    content: '';
    background-color: darkred;
    position: absolute;
    bottom: -10vw;
    width: 0;
    height: 0;
    right: 0;
    border-right: 0.1rem solid darkred;
    border-left: 15vw solid white;

    border-top: 10vw solid darkred;
}

.speech-img-bg:before {
    content: '';
    background-color: seagreen;
    position: absolute;
    bottom: -10vw;
    width: 0;
    height: 0;

    border-left: 0.1rem solid seagreen;
    border-right: 15vw solid white;

    border-top: 10vw solid seagreen;
}

.speech-img-bg:after {
    content: '';
    background-color: seagreen;
    position: absolute;
    bottom: -10vw;
    width: 0;
    height: 0;
    right: 0;
    border-right: 0.1rem solid seagreen;
    border-left: 15vw solid white;

    border-top: 10vw solid seagreen;
}




#spacer-padding-pres-bg-spacer {
    height: 20vw;
}

.category-img-grid {
    width: 90%;
    margin: auto;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, calc(100%/6));
    gap: 2rem 2rem;
    grid-template-areas: "one one two two three three"
        "one one two two three three"
        "one one four four three three"
        "one one four four three three";
}


.category-img-grid img {
    height: 100%;
    border-radius: 2rem;
    box-shadow: 2px 2px 12px 1px var(--darkGrey);
    width: 100%;
    object-fit: cover;
    /* max-height: 100%; */
}


.category-img-grid .grid-item-1 {
    grid-area: one;
}

.category-img-grid .grid-item-2 {
    grid-area: two;
}

.category-img-grid .grid-item-3 {
    grid-area: three;
}

.category-img-grid .grid-item-4 {
    grid-area: four;
}





.speech-bg {
    background-color: black;
    width: 30vw;
    height: 50vw;
    margin-left: 3rem;
    margin-top: -1rem;
    position: relative;
}



.speech-bg-2 {
    background-color: maroon;
    width: 80vw;
    height: 20vw;
    margin-left: 3rem;
    margin-top: -1rem;
    position: absolute;
    top: 3rem;
    left: 10vw;
}




.speech-bg-3 {
    background-color: brown;
    width: 77vw;
    height: 20vw;
    margin-left: 3rem;
    margin-top: -1rem;
    position: absolute;
    top: 8vw;
    left: 17vw;
}


.speech-bg-4 {
    background-color: chocolate;
    width: 77vw;
    height: 20vw;
    margin-left: 3rem;
    margin-top: -1rem;
    position: absolute;
    top: 8vw;
    left: 17vw;
}



#understanding_text {
    min-height: 45vw;
}

.footer {
    border-top: 1rem solid gold;
    box-shadow: 0.1rem -0.1rem 0px 0px #ffe1ab;
    background-color: var(--mutedBlack);
    padding: 2rem;
    width: 100%;
}


.footer .logo {
    filter: drop-shadow(0px 0px 0.6rem black) drop-shadow(0px 0px 0.6rem black);
}

.footer * {
    color: white;
    text-shadow: 0.1rem 0px #000, 0.2rem 0.1rem #000, -0.1rem 0px #000, -0.2rem 0.1rem #000;
}



.footer-sub-box {
    width: 20rem;
}


footer .footer-heading {
    color: goldenrod;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}


.footer a {
    text-decoration: none;

}

.steps-wrapper {
    max-width: 100%;
    width: fit-content;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.step-block {
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    width: min-content;
}


.step-img-wrapper {
    aspect-ratio: 1/1;
    padding: 2rem;
    border-radius: 1.9rem;
    background-color: maroon;
    border: 1rem solid rgb(62, 3, 3);
}


.step-img-wrapper i {
    font-size: 10rem;
    color: white;
    text-shadow: 0.8rem 0 rgb(102, 0, 0);
}




.step-block-text {
    min-width: 40rem;
}

.step-block-text-3 {
    min-width: 50vw;
}

.step-block-text {
    max-width: 60%;
}



.chart-parent .chart {
    height: 100% !important;
    width: 100% !important;

}



.chart-parent {
    position: relative;
}


.multi-speech-parent {

    scroll-margin-top: var(--page-header-height);
}

.multiSpeechVideoWrapper {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    grid-auto-rows: 2rem;


}

.speech-video iframe,
.speech-video>video {
    vertical-align: middle;
    display: inline-block;
}

.views-video-data {
    padding: 0 1rem;
    margin-top: 0.3rem;
    color: white;
    z-index: 10;


}



.delete-vid {
    min-height: 30px;
    display: flex;
    align-items: center;
}



.speech-video {
    width: 100%;
    border-radius: 2rem;
    border: 0.6rem solid black;
    box-shadow: 0px 0px 0px 0.3rem crimson, 0.5rem 0.4rem 0.7rem 0.2rem #e6e6e6;
    background-color: black;

    /* padding: 2rem 0 0 0; */
}

.multiSpeechVideoWrapper .speech-video {
    width: 100%;
    height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.grid-spacer {
    grid-column: 1 / -1;
}

.multiSpeechVideoWrapper>.speech-video-wrapper {
    grid-row: span 12;
    display: flex;
    flex-direction: column;
    max-width: 40rem;

}


.speech-video-wrapper.landscape .speech-video>video {
    object-fit: fill;
}

.multiSpeechVideoWrapper>.speech-video-wrapper.landscape {
    grid-row: span 10;
}

.multiSpeechVideoWrapper .tall {
    grid-row: span 15;
}

.multiSpeechVideoWrapper .landscape.tall {
    grid-row: span 13;
}


.speech-video>iframe,
.speech-video>video {
    width: 100%;

    height: 90%;
    /* object-fit: fill; */
    border-radius: 2rem;



}

.speech-video>iframe:fullscreen,
.speech-video>video:fullscreen,
.speech-video>iframe.fullscreen,
.speech-video>video.fullscreen {
    object-fit: contain;

}







.alert {
    --color: #ffdb9b;
    --border-color: #ffa502;
    --lightHue: #ffc766;
    --mediumHue: #ce8500;
    --textColor: rgb(90, 50, 1);
    --buttonColor: #ffd080;
    --stripeColor: rgb(186, 109, 15);
}

.alert.error {
    --color: #fab4ce;
    --border-color: #f84a8a;
    --lightHue: #fb5893;
    --mediumHue: #cf346d;
    --textColor: #8a143f;
    --buttonColor: #ff77a9;
    --stripeColor: #a5043f;
}

.alert.success {
    --color: #cdffdb;
    --border-color: #84fba6;
    --lightHue: #65df87;
    --mediumHue: #44c268;
    --textColor: #0b8d2f;
    --buttonColor: #9cf5b5;
    --stripeColor: #299448;
}

.alert {
    --color: #ffdb9b;
    --border-color: #ffa502;
    --lightHue: #ffc766;
    --mediumHue: #ce8500;
    --textColor: rgb(90, 50, 1);
    --buttonColor: #ffd080;
    --stripeColor: rgb(186, 109, 15);
    --timerSeconds: 15;
}


.alert {
    display: grid;
    grid-template-columns: 1fr 7rem;
    margin-left: auto;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    max-width: 40vw;
    background-color: var(--color);
    padding: 2rem 0rem 2rem 2rem;
    min-width: 42rem;
    border-radius: 0.4rem;
    border-left: 0.6rem solid var(--border-color);
    overflow: hidden;
    z-index: 5000000;
    box-shadow: 0px 0.2rem 0.5rem 0px var(--lightHue);
}

.alert.show {
    animation: show_slide 1s ease forwards;
}

.alert .alert-icon {
    color: var(--mediumHue);
    font-size: 3rem;
    margin: auto;
}

.alert .msg {
    padding: 0 2rem;
    font-size: 1.8rem;
    color: var(--textColor);
}


.alert .close-btn {
    background-color: var(--buttonColor);
    cursor: pointer;
    margin-top: -2rem;
    margin-bottom: -2rem;
    display: flex;
    justify-content: center;
    align-items: center;

}


.notification-div {
    max-height: 50vh;
    overflow-y: scroll;

}


.close-btn .fa-times {
    color: var(--mediumHue);
    font-size: 2.2rem;


}

.close-btn:hover {
    background-color: var(--lightHue);
}


.alert {
    position: relative;
}

.alert::before {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--stripeColor);
    width: 100%;
    height: 0.5rem;
    content: '';
    box-shadow: 0 0 1rem var(--stripeColor);
    animation: timeOut var(--timerSeconds) linear 1 forwards;
}


#pie-chart-parent {
    flex-basis: 50%;
    display: flex;
    justify-content: center;

}

/* DIALOG */

body:has(.dialog-viewer) {
    overflow-y: hidden;
    overflow-x: hidden;
}



.dialog-background {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    background-color: rgba(0, 0, 0, 0.7);
    height: 200vh;
    z-index: 100000000;
}

.dialog-viewer {
    width: 100vw;
    height: 100vh;
    padding: 4rem;
}

.dialog-box-invisiwrapper {
    padding: 2rem;
    position: relative;
    margin: auto;
}

.dialog-box {
    overflow-y: auto;
    background-color: white;

    max-height: 90vh;

    padding: 3rem;
}

.dialog-box-invisiwrapper .exit-positioned {
    position: absolute;
    right: 0;
    transform: translate(-25%, -50%);
    cursor: pointer;
}

.exit-circle {
    font-size: 3rem;
}


.exit-bar {
    width: 100%;
    text-align: right;
    padding-right: 4rem;
    font-size: 4rem;
}



.exit-circle i {
    color: white;
}

.exit-circle i,
.exit-bar i {
    position: relative;
}

.exit-circle i::after,
.exit-bar i::after {
    content: "\f057";
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: var(--brightRed);
}

.dialog-viewer-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



@keyframes timeOut {
    to {
        width: 0;
    }
}

/*------Animations------*/
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes show_slide {
    0% {
        transform: translateX(100%);
    }

    40% {
        transform: translateX(-10%);
    }

    80% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-1rem);
    }
}



@media (max-width:1175px) {
    .multiSpeechVideoWrapper {
        grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    }
}


@media (max-width: 1024px) {
    html {
        font-size: 9px;
    }


}


@media (max-width: 924px) {
    html {
        font-size: 8px;
    }


}




@media (max-width: 850px) {
    html {
        font-size: 7px;
    }

    .multiSpeechVideoWrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .multiSpeechVideoWrapper>.speech-video-wrapper {
        max-width: max-content;
    } */
}



@media (max-width: 750px) {
    html {
        font-size: 6px;
    }


    h2 {
        font-size: 3rem;
    }


    h3 {
        font-size: 2.7rem;
    }

    .nav-item h3 {
        font-size: 2.5rem;

    }

    main h4 {
        font-size: 2.3rem;
    }

    p,
    li,
    div,
    div>span,
    input,
    select,
    label,
    textarea {
        font-size: 2rem;

    }

    .caption p {
        font-size: 2rem;
    }



    #timer-pie-row {
        flex-direction: column;
    }



    #pie-chart-parent {
        max-height: 140vw;
    }

    #understanding_text {
        min-height: 60vw;
    }


}

@media (max-width: 650px) {

    .delete-vid {
        padding: 3rem !important;
    }

    .delete-vid * {
        font-size: 2.6rem;
        font-weight: 600 !important;
    }

    html {
        font-size: 5px;
    }

    #pie-chart-parent {
        max-height: 120vw;
    }

    .multiSpeechVideoWrapper {
        display: flex;
        flex-direction: column;
    }

    .speech-video {
        width: 100%;
        height: auto !important;
    }

    .multiSpeechVideoWrapper>.speech-video-wrapper {
        max-width: max-content;
        min-width: 100%;

    }



    .exit-circle {
        font-size: 5rem;
    }


    .dialog-box-invisiwrapper {
        padding-right: 4rem;
        padding-left: 4rem;
        position: relative;
        margin: auto;
    }

}


@media (max-width: 570px) {

    .nav-item h3 {
        font-size: 2.3rem;

    }
}

@media (max-width: 530px) {

    .positioned-logo-nav-row .top-row {
        flex-basis: auto !important;
    }

    /* .logo-text h1 {
        font-size: 3rem;
    } */
    .nav-item h3 {
        font-size: 2rem;

    }

    .logo-text h4 {
        font-size: 1.9rem;

    }
}

@media (max-width: 500px) {
    html {
        font-size: 4.75px;
    }

    .mobile-nav-bar {
        display: flex;
        justify-content: end;
        align-items: center;
        cursor: pointer;
    }

    .nav-item-list {
        display: none;
        flex-direction: column;
        align-items: start;

    }

    .nav-item-list.open {
        display: block;
    }

    .nav-item {
        padding: 2rem 0 !important;
        text-align: center;
        width: 100%;
        border-left: none !important;
        border-right: none;
        border-bottom: 0.3rem solid lightgrey;
    }

    .nav-item:last-child {

        border-bottom: 1rem solid rgba(128, 128, 128, 0.293);


    }

    .nav-item h3 {
        font-size: 2.7rem
    }

    .nav-item.selected {
        background-color: rgb(224 95 95);
    }

    .nav-item.selected:after {
        border-bottom: none;
    }

    .positioned-logo-nav-row {
        padding: 2rem 0 0 0;
        flex-direction: column;
        justify-content: baseline;
    }

    .logo-text h1 {
        font-size: 3rem;
    }

    .logo-text {
        max-width: 60vw;
    }

    #account-user-display {
        padding-top: 3rem;
        padding-bottom: 2rem;
        background: rgba(211, 211, 211, 0.225);
    }

    #account-user-display>*:first-child {
        text-align: center !important;

        display: flex !important;
        flex-direction: column !important;
    }

    .chart {
        height: 120vw !important;
        width: 90vw !important;
    }

}

@media (max-width: 475px) {
    html {
        font-size: 4.5px;
    }




}

@media (max-width: 450px) {
    html {
        font-size: 4.35px;
    }

    #pres-intro .bg,
    #speech_competition_details .bg {
        position: absolute;
        z-index: -1;
        left: 50%;

        transform: translate(-65%, -10%);
    }

    .bg .pres-img-bg,
    .bg .speech-img-bg {
        transform: scale(1.4) rotate(90deg);
    }

    .pres-image-holder img {
        width: 50vw;
        height: 50vw;

    }

    .pres-main-content {
        flex-direction: column;
        align-items: center;
        width: 95% !important;
    }




    p span.bigger {
        font-size: 140%;
    }

    .pres-main-content>*:last-child {
        padding: 0 !important;
    }

    .pres-image-col>*:last-child {
        text-shadow: none !important;
        font-size: 2.6rem !important;
    }

    #pres-intro .pres-image-col>*:last-child {
        color: rgb(168, 101, 0) !important;
    }

    #speech_competition_details .pres-image-col>*:last-child {
        color: darkgreen !important;
    }


}

@media (max-width: 425px) {
    html {
        font-size: 4px;
    }

}




@media (max-width: 400px) {


    .timer-wrapper {
        padding: 7vh;
    }

    html {
        font-size: 3.75px;
    }






















    .dialog-box .speech-video {
        width: 70%;
    }

    input[type="text"].mega {
        font-size: 5rem;
        height: 8rem;
    }


    .dialog-box {
        overflow-y: auto;
    }






}

@media (max-width: 375px) {
    html {
        font-size: 3.5px;
    }
}

@media (max-width: 350px) {
    html {
        font-size: 3.35px;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 3px;
    }
}

@media (max-width: 200px) {
    html {
        font-size: 2px;
    }
}