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

body {
    font-family: Calibri, sans-serif;
    background-color: #f5f5f5;
}

.dimmed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.centered-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow-y:auto;
}

/* Container that contains the whole form */
.as-form-container {
    margin: 20px;
    margin-top: 0px;
    padding: 20px;
    padding-top: 0px;
    border: 1px solid #ccc;
}

/*  Section describes several 'groups' of user choices
    (e.g. Basisinformationen, Tipps zur Kalkulation, etc.) 
*/

.container-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    margin-top: 20px;
}
.section{
    margin-bottom: 20px;
    height: max-content;
    width: 100%;
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
    background-color: #e7e3e3;
    padding: 10px;
}
.section_body{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: auto;
    width: fit-content;
}
.section_title_area{
    margin: auto;
    width: max-content;
    align-items: center;
    display: flex;
}
.section_title_text{
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: auto;
    margin-bottom: auto;
}

#section_training_material{
    background-color: #03254b;
    border-radius: 10px;
}

#section_training_material .section_body{
    align-items: center;
    width: fit-content;
}

#section_exercises > .section_body{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#section_exercises.section{
    display: table;
}

#section_training_material .section_title_text{
    color: white;
    text-align: center;
}


/* Option Descripts the styles for each clickable element */
.option {
    margin: 5px;
    display: flex;
    cursor: pointer;
    width: 220px;
    max-width: 220px;
    min-height: 80px;
    height: auto;
    border-radius: 10px 10px 10px 10px;
    background-color: #ccc;

    /* Prevent text selection */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.interactive-option{
    background-color: #a8d08b;
}

.training-select-options{
    display:flex;
    justify-content: space-evenly;
}

.training-select-options .option{
    background-color: white;
    width: 260px;
    max-width: 260px;
}

.option input[type="checkbox"] {
    min-width: 20px;
    width: 20px; 
    height: 20px; 
    margin: 3px;
    background-color: rgb(221, 216, 216); 
    cursor: pointer;
}

.vertical_center {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

/* Style when the checkbox is checked */
.option input[type="checkbox"]:checked {
    background-color: rgb(98, 93, 93); /* Change background when checked */
    color: white; /* Optional: Add a color for any checkmark */
}

.option_textarea {
    margin-top: auto;
    margin-bottom: auto;
    font-size: 0.80rem;
    width: fit-content;
    height: auto;
    /* word-wrap: break-word; */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.training-select-options .option_textarea {
    max-width: 150px;
}

.option_box{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-content-area-single{
    display: flex;
    padding: 10px;
}

.option-content-area-single:hover{
    background-color: #e9f0f7 !important;
}

.option-content-area{
    display: flex;
    padding: 10px;
    border-radius: 10px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.option-training{
    padding-left: 6px;
}

.option-training:hover{
    background-color: #e9f0f7 !important;
}

.option-view-area{
    transition: border-color 0.3s ease, background-color 0.3s ease;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    color: inherit;
    font-size: 16px;
}

.option-view-area:hover{
    background-color: #e9f0f7 !important;
    color: inherit;
}

.submit_button {
    text-align: right;
}

input[type="submit"] {
    width: 200px;
    font-size: 16px;
    white-space: initial;
    text-align: center;
    color: white;
    background-color: #1e86be;
    padding: 0.25rem;
    border: 2px solid #1a73a3;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

input[type="submit"]:hover {
    background-color: #154f93;
}

/* Icons present in options */
.as_icon{
    height: 100%;
    max-height: 40px;
    margin-left: 1em;
    margin-top: auto;
    margin-bottom: auto;
}

.info-sign {
    display: inline-block;
    cursor: pointer;
    width: 40px;
    height: 40px;
    text-align: center;
}

.input-label-flex {
    display: flex;
    gap: 10px;
    font-size: 0.80rem;
}

.input-label-flex .info-sign{
    position: relative;
    right: 9px;
}

.interactive-option .info-sign{
    position: relative;
    right: 39px;
    top: 25px;
}

.kalkulation-container .as_icon{
    height: 100%;
    max-height: 60px;
    margin-left: 1em;
    margin-top: auto;
    margin-bottom: auto;
}

.training-url{
    width: 0;
    height: 0;
    visibility: hidden;
}


/* From new_home_page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.ts-container {
    padding: 20px;
}

.training-title{
    color: #345676;
    font-weight: 600;
    font-size: 1.2em;
    padding-left: 15px;
}

.training-title-underline{
    border-bottom: 3px solid #001c36;
    margin-top: 2px;
    width: 240px;
}

.example-task {
    background: #a6b8d6;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid black;
    margin-bottom: 2rem;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

.example-task-title{
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.example-task-title img{
    width: 50px;
    height: 25px;
    margin-right: 10px;
}

.example-task-selected {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.example-task-expanded {
    height: auto;
}

.example-task-expanded .example-task-selected {
    max-height: 500px; /* Ensures a smooth expansion */
    opacity: 1;
    padding: 10px 10px; /* Adds padding when expanded */
}

.auswahlen{
    padding: 10px 20px;
    margin: 10px auto;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.centered-button{
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}

.main-form{
    width: 80%;
}

@media (max-width: 1422px) {
    .main-form{
        width: 100%;
    }
    .container-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        margin-left: auto;
        margin-right: auto;
    }

    .container-grid > * {
        height: 100%; /* child elements fill their grid cell */
    }
}

@media (max-width: 900px) {
    .option-training{
        margin: auto;
    }

    .training-select-options {
        display: block !important;
    }
}

@media (max-width: 842px) {
    .container-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .container-grid > * {
        height: auto; /* child elements fill their grid cell */
    }
}

@media (max-width: 570px) {
    #section_exercises > .section_body{
        grid-template-columns: repeat(1, 1fr);
    }
}