:root{
    --small-text-size: 0.7em;
}

html, body {
    height: 100%;
    margin: 0;
}

.header {
    width: 100%;
    height: fit-content;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    overflow: hidden;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    box-sizing: border-box; 
    background: linear-gradient(to right, #012969, #c7dcfe);
}

.header img {
    height: 80%;
    max-height: 50px;
    object-fit: contain; 
}

title {
    display: block;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 600;
    font-size: 2em;
}

.form-header {
    font-size: 1em;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.form-row label {
    width: auto;
    text-align: left;
    margin-right: 10px;
    white-space: nowrap;
}

.form-row input[type="text"],
.form-row input[type="number"] {
    padding: 5px;
    border: 1.5px solid #000000;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check label {
    margin-left: 5px;
}

.small-input{
    width: 40px;
    text-align: center;
}

.small-label{
    font-size: var(--small-text-size);
}

.note {
    font-size: var(--small-text-size);
    text-align: center;
    color: #272727;
    margin-bottom: 15px;
}

.button-row {
    text-align: center;
}

.btn {
    background-color: #f3f3f3;
    color: rgb(0, 0, 0);
    box-shadow: #000000 1px 1px 10px 1px;
    font-weight: bolder;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.btn:hover {
    background-color: #dae0e5;
}

.overline {
    text-decoration: underline;
    position: relative;
    text-underline-offset: -0.9em;
}

/* Progress Bar */
.as-progress-bar{
    width: 100%;
    height: 2%;
    vertical-align: bottom;
}

/* Container for whole page */
.as-container{
    position: relative;
    margin: auto;
    font-family: Calibri,sans-serif;
    font-size: min(max(3vh, 12px), 24px);
    max-width:1500px;
    width: 95%;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Title on top of the slides */
.training-title-container{
    width: 100%;
    height: 4%;
    background-color: rgb(47, 85, 151);
    color: white;
    text-align: center;
    line-height: 1;
}

.training-title{
    margin: auto;
    font-size: min(2.5vh, 24px);
}

/* Container for slides */
.slide{
    width: 100%;
    height: 78%;
    margin-top: 0.5%;
}

.slide-content{    
    flex: 1;
    overflow: auto;
    height: 100%;
    background-color: rgb(242, 242, 242);
}

.slide_name{
    text-decoration: underline;
    font-weight: bold;
    font-size: 28px;
    margin: 10px;
    margin-top: 20px;
}

.slide-button-area{
    width: 100%;
    display: flex;
    height: 6%;
    margin-top: 0.5%;
}


.slide-direction-arrow-container{
    width: 50%;
    user-select: none; /* Standard syntax */
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    position: relative;
    height: 100%;
}

.slide-direction-arrow-container:first-child{
    text-align: right;
    padding-right: 0.25em;
}

.slide-direction-arrow-container:last-child{
    text-align: left;
    padding-left: 0.25em;
}

.slide-direction-arrow-box{
    width: 20%;
    height: 100%;
    background-color: rgb(218, 227, 243);
    border: solid 1.5px black;
    text-align: center;
    position: absolute;
    cursor: pointer;
    display: flex;
    line-height: 1;
}

.slide-direction-arrow{
    font-size: min(5vh, 40px);
    color: rgb(47, 85, 151);
    text-decoration: none;
    margin: auto;
}

.form-exit-button{
    position: absolute;
    right: 0;
}


.as-module-title-container{
    display: flex;
    height: 5%;
    margin-top: 0.5%;
}

.as-module-title{
    flex: 1; /* This ensures each div takes an equal amount of space */
    border: 1px solid #000;
    box-sizing: border-box;
    margin-left: 10px;
    background-color: rgb(218, 227, 243);
    font-size: min(2.5vh, 24px);
    line-height: 1;
}

.as-module-title:first-child {
    margin-left: 0; /* No margin on the left for the first element */
}
.as-module-title:last-child {
    margin-right: 0; /* No margin on the right for the last element */
}

.doubleTreeSVG{
    width: 100%;
    height: 100%;
}

.visualization-container{
    margin: auto;
    width: 650px;
    height: 650px;
}

.visualization-container img{
    margin: auto;
    max-height: 100%;
    max-width: 100%;
}

.noselect{
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}


.frac {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    letter-spacing: 0.001em;
    text-align: center;
}
.frac > span {
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}

.frac span.symbol {
    border: solid 1.5px black;
    height: 0;
}

.hidden_content{
    visibility: hidden;
}


.messages {
    border: solid 3px #d62728;
    background-color: rgba(255,127,14, 0.2);
}


/* Fraction in text */    
.frac {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    letter-spacing: 0.001em;
    text-align: center;
}
.frac > span {
    display: block;
}
.frac span.bottom {
    border-top: 2px solid black;
}
.frac span.symbol {
    display: none;
} 


.w-auto{
    width: auto;
}