/* COLORS
key-yellow: #FFC107
*/

/* cyrillic-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./../fonts/robotoCyrillicExt.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./../fonts/robotoCyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./../fonts/robotoGreekExt.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./../fonts/robotoGreek.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./../fonts/robotoVietnamese.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./../fonts/robotoLatinExt.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./../fonts/robotoLatin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext bold */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./../fonts/robotoCyrillicExtBold.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic bold */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./../fonts/robotoCyrillicBold.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext bold */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./../fonts/robotoGreekExtBold.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek bold */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./../fonts/robotoGreekBold.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese bold */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./../fonts/robotoVietnameseBold.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext bold */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./../fonts/robotoLatinExt.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin bold */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./../fonts/robotoLatinBold.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(./../fonts/robotoCyrillicExtCondensed.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(./../fonts/robotoCyrillicCondensed.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(./../fonts/robotoGreekExtCondensed.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(./../fonts/robotoGreekCondensed.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(./../fonts/robotoVietnameseCondensed.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(./../fonts/robotoLatinExtCondensed.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(./../fonts/robotoLatinCondensed.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


body, html {
    overflow-x: hidden;
    overscroll-behavior-y: none;  /* prevent reloading the page when scrolling up */
    width: 100%;
    position: relative;
}

#bootstrap-overrides body {
    font-family: 'Roboto', sans-serif;
}

#bootstrap-overrides h1, h2, h3, h4, h5 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: medium;
    font-weight: normal;
}

img {
    max-height: 375px;
}

mjx-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 5px;
    padding-bottom: 5px;
}

mjx-container mjx-c::before {
    /*will-change: opacity;*/
    padding-top: 20px !important;
    padding-bottom: 5px !important;
}

#bootstrap-overrides #voltage-overlay {
    mjx-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        font-size: 90% !important;
    }
}

#bootstrap-overrides .current-label {
    stroke-width: 0;
}

#bootstrap-overrides .voltage-label {
    stroke-width: 0;
}

th, td {
    vertical-align: middle;
    text-align: center
}

#bootstrap-overrides #nav-select{
    color: #FFC107;
}

#bootstrap-overrides .flag {
    width: 25px;
    max-width: 25px;
    margin-left: 0;
}

/* Container opacities */
#bootstrap-overrides #landing-page-container {
    background-color: white;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#bootstrap-overrides #cheat-sheet-container {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#bootstrap-overrides #select-page-container {
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.5s ease-in-out;
    width: 100%;
    left: 0;
    top: 0;
}

#bootstrap-overrides #simplifier-page-container {
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 1s ease-in-out;
    width: 100%;
    left: 0;
    top: 0;
}

.slide-out-left {
    transform: translateX(-100%);
}

.slide-in-right {
    transform: translateX(0);
}

/* Landing page shadows*/
#bootstrap-overrides #yellow-image-container {
    box-shadow: 0 6px 6px 0 lightgray;
    z-index: 2;
    position: relative;
}

#bootstrap-overrides .feature-heading {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: x-large;
    font-weight: bold;
}

#bootstrap-overrides .feature-body {
    font-family: 'Roboto', sans-serif;
    font-size: medium;
    font-weight: normal;
    margin-bottom: 0;
}

#bootstrap-overrides .feature-container {
    height: 220px;
}

#bootstrap-overrides #feature-container1 {
    background-color: white;
    color: black;
    transform: translateX(-90%);
    transition: transform 0.5s ease-out;
}
#bootstrap-overrides #feature-container1.visible {
    transform: translateX(0);
}

#bootstrap-overrides #key-feature1heading {
    color: black;
}
#bootstrap-overrides #feature-container2 {
    background-color: #212529;
    color: white;
}
#bootstrap-overrides #feature-container3 {
    background-color: #FFC107;
    color: black;
    transform: translateX(90%);
    transition: transform 0.5s ease-out;
}
#bootstrap-overrides #feature-container3.visible {
    transform: translateX(0);
}
#bootstrap-overrides #trigger {
    height: 0px;
}


/* navbar */
#bootstrap-overrides #nav-logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: large;
    font-weight: bold;
    color: #FFC107;
}

#bootstrap-overrides .nav-link {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: x-large;
    font-weight: normal;
    color: white;
    cursor: pointer;
}
#bootstrap-overrides #nav-link-circuit {
    color: #FFC107;
}

/* Hero section */
#bootstrap-overrides #start-button {
    font-weight: bolder;
    background-color: #FFC107;
    border-color: #222222;
    color: white;
    border-radius: 20px;
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
}

#bootstrap-overrides #start-button:hover {
    background-color: #dca806;
}

/* Start button pulse animation*/
@keyframes pulse {
    0% {
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);;
    }
}

#bootstrap-overrides a.lang-selector {
    cursor: pointer;
}

#bootstrap-overrides #darkmode-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: small;
    color: white;
    cursor: pointer;
}

#bootstrap-overrides #game-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: small;
    color: white;
    cursor: pointer;
}

#bootstrap-overrides #heading-logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: white;
}

#bootstrap-overrides #start-container {
    background-color: white;
}
#bootstrap-overrides #containerCalculationExplanation {
    background-color: #222222;
    color: white;
}


/* Selection page */

#bootstrap-overrides .form-check-input {
    border: 1px solid black;
}

#bootstrap-overrides .form-check-input:checked {
    background-color: #FFC107;
}

#bootstrap-overrides .form-check-input:focus {
    box-shadow: 0 0 0.25rem #ffc107 !important;
}

#bootstrap-overrides .form-check-label {
    font-family: 'Roboto', sans-serif;
}


#bootstrap-overrides .accordion-button {
    /*background-color: #212529;
    color: #ffc107;*/
    font-size: 24px;
    font-family: 'Roboto Condensed', sans-serif;
}

#bootstrap-overrides .accordion-body {
    background-color: #212529;
}

#bootstrap-overrides .accordion-button:focus {
    z-index: 3;
    box-shadow: 0 0 0.25rem #ffc107 !important;
}

#bootstrap-overrides .selector-container {
    max-width: 500px; /* to limit the distance of the next/prev buttons from the picture */
}
#bootstrap-overrides .carousel-control-next {
    z-index: 10;
}
#bootstrap-overrides .carousel-control-prev {
    z-index: 10;
}


#bootstrap-overrides .big-heading {
    color: #FFC107;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
}

#bootstrap-overrides .svg-selector {
    z-index: 2;
    border: 1px solid white;
    border-radius: 10px;
    position: relative;
    max-width: 350px;
}

#bootstrap-overrides .img-overlay {
    z-index: 5;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    display: none;  /* don't show button overlay at start */
}

#bootstrap-overrides .volt-freq-overlay {
    z-index: 2;
    position: absolute;
    right: 10px;
    text-align: center;
}

#bootstrap-overrides .img-overlay:before {
    z-index: 5;
    content: ' ';
    display: block;
    height: 45%; /* height position of the start button in container */
}
/* for the start buttons in the modal overviews */
#bootstrap-overrides .circuitStartBtnModal {
    font-weight: bold;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    padding-top: 2px;
    margin-bottom: 20px;
}

#bootstrap-overrides .modalOverviewBtn {
    border-radius: 7px;
    background: none;
    color: #ffc107;
    border: 1px solid #ffc107;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Simplifier page */
#bootstrap-overrides #dropdownMenuButton {
    background-color: transparent;
    border: 1px solid #FFC107;
}

#bootstrap-overrides #dropdownMenuButton::after {
    color: #ffc107;
}

#bootstrap-overrides .dropdown-item:hover {
    background-color: #ffc107;
    color: #222222;
}

#bootstrap-overrides svg{
    height: 400px; /* set an absolute height, so changing images always have the same size */
}

#bootstrap-overrides ul {
    list-style-type: none;
}

#bootstrap-overrides #check-btn {
    background-color: #FFC107;
    border: none;
    color: #222222;
}

#bootstrap-overrides #reset-btn {
    /*background-color: #b61117;*/
    border: none;
    color: white;
}

#bootstrap-overrides #solutionsTable {
    tbody {
        tr {
            vertical-align: baseline;
            td {
                vertical-align: baseline;
                border: none;
                mjx-container {
                    margin-top: 0;
                    margin-bottom: 0;
                }
            }
        }
    }
}

/* Data Privacy Page */
#bootstrap-overrides #data-privacy-container {
    background-color: #212529;
    color: white;
}

#bootstrap-overrides #back-btn-data-privacy, #back-btn-legal {
    background-color: #FFC107;
    border: none;
    color: #222222;
}

#bootstrap-overrides #data-privacy-nav-select {
    color: #9c7606;
}

#bootstrap-overrides #data-privacy-nav-cheat {
    color: #a8a8a8;
}

/* Legal Notice Page */
#bootstrap-overrides #legal-notice-container {
    background-color: #212529;
    color: white;
}

#bootstrap-overrides #legal-notice-nav-select {
    color: #9c7606;
}

#bootstrap-overrides #legal-notice-nav-cheat {
    color: #a8a8a8;
}

/* Kirchhoff */
@keyframes floatAndFadeOut {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-150px);
        color: red;
    }
}

.equation {
    transition: color 1.5s ease-in;
}

.equation.fade-out {
    animation: floatAndFadeOut 1.5s forwards;
}
/* For circuit start buttons */
/* applies to every start button overlay on the circuits */
#bootstrap-overrides .circuitStartBtn {
    font-weight: bold;
    border-radius: 40px;
    z-index: 10;

    position: relative;
    width: 200px;
    height: 40px;
    border: none;
    color: white;
    cursor: pointer;
    /* background-size: 200% 100%; /* For animation movement */
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: gray;

}
.button-text {
    position: relative;
    z-index: 3; /* highest layer */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    pointer-events: none; /* allow click to fall through */
}
/* Fill layer for base color */
.fill-layer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background-color: #ffc107;
    transition: width 0.4s ease;
    z-index: 1;
}

.progress-stripes {
    z-index: 2;
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background-image: repeating-linear-gradient(
            -30deg,
            rgba(255, 255, 255, 0.3) 0,
            rgba(255, 255, 255, 0.3) 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px
    );
    background-size: 40px 40px;
    animation: moveStripes 2s linear infinite;
    transition: width 0.4s ease;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}