* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif !important;
    color: #031050;
    overflow-x: hidden;
}

video {
    width: 100%;
}

.navbar a {
    color: #031050 !important;
}

.navbar a:hover {
    color: #2a3b8e !important;
}

.btn {
    font-weight: 500 !important;
}

.btn-primary {
    background-color: #031050 !important;
    border-color: #031050 !important;
}

.btn-primary:hover {
    background-color: #343f83 !important;
}

.form-check {
    input { margin: 0.1em 0.5em; }
}
.required {
    margin-top: 0.5em;
}
.required::after {
    content: ' *';
    color:#dc3545;
}

.header {
    padding: 2em;
    height: 15vh;
    display:flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #E3FCFA;
    border-bottom: 1px solid #9EFAED;

    .logo {
        width: 20%;
        max-width: 300px;
        order: 1;
    }

    .text {
        width: 60%;
        text-align:center;
        order:2;
    }
    
    img {
        width: 90%;
        margin:auto;
    }
}

h1 {
    margin: 0;
    margin-bottom:0.5em;
    font-size: 3.5em !important;
    font-weight: 500 !important;
}


.popover {
    color:black;
}

.body-home {
     background-image: linear-gradient(to right top, #9efaed, #acfbf0, #b9fbf3, #c6fcf6, #d3fcf8, #dafcf5, #e1fcf4, #e7fcf3, #ecfbee, #f2fae9, #f8f9e6, #fff7e5);
     min-height: 100vh;
     display:flex;
     flex-direction: column;
     gap: 1em;
     padding: 1em;
}

.container-form, 
.container-home {
    background-color: white;
    p,
    ul,
    label {
        font-size: 18px;
    }
}

.container-home {
    text-align:left;
    
}

.logo-home-page {
    width: 20%;
}

.btn-form {
    border-radius: 2px !important;
}

.wrapper {
    width: 100%;
    height: 85vh;
    display:flex;
    padding:2em;

}

.path-container {
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#first-row,
#second-row {
    height: 50%;
    min-height:350px;
    width: 100%;
    display:flex;
    justify-content: center;
    gap: 1.5em;
}

.tile {
    background: #287bff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 5em;
    position: relative;
    width: 25vw;
    height: 85%;
    cursor: pointer;
    max-width: 220px;
    min-height:320px;
    border-radius: 20px;
    border-bottom-left-radius: 200px;
    border-bottom-right-radius: 200px;
    box-shadow: 0 15px 0 #FFF7E5,
        inset 0 -15px 0 rgba(255, 255, 255, 0.185);
    overflow: hidden;
}

.tile::before {
    content: "";
    position: absolute;
    top: -140px;
    left: -40%;
    padding: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.070));
    transform: rotate(25deg);
    pointer-events: none;
    filter: blur(5px);
}

.tile.lesson {
    background-color:#D9A603;
    background-image: linear-gradient(to right bottom, #e2cc87, #e0c36d, #ddba53, #dbb035, #d9a603);
}


.tile.quiz {
    background-color: #9efaed;
    background-image: linear-gradient(to right bottom, #e3fcfa, #d3fcf8, #c2fbf5, #b0fbf1, #9efaed);
}

.tile.completed-training {
    cursor:default;
    background-image: linear-gradient(to right bottom, #fff7e5, #eaecc7, #c8e3b1, #99dba7, #54d3aa);
}

.tile .icon {
    position: absolute;
    width: 50%;
    height: 24%;
    background: #ffffff;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    box-shadow: 0 15px 0 rgba(0, 0, 0, 0.1),
        inset 0 -8px 0 #fff;
    z-index: 100;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

.tile .icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-top-right-radius: 50px;
    box-shadow: 15px -15px 0 15px #ffffff;
}

.tile .icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-top-left-radius: 50px;
    box-shadow: -15px -15px 0 15px #ffffff;
}

.tile .icon .fa-solid {
    color: #232323;
    position: relative;
    font-size: 2.5em;
    z-index: 1000;
}


.tile .content {
    width: 100%;
    padding: 6em 1em 0em 1em;
    text-align: center;
}

.tile .completed-icon {
    display:none;
    font-size: 2em;
    color:#198754;
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.tile .show {
    display:flex;
}

.tile .content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.3em;
    color: #031050;
    margin-bottom: 0.5em;

}

.tile .content p {
    color: #031050;
    line-height: 1.2em;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.modal-body {
    font-size: 18px;

    .form-check {
        display:flex;
        align-items: center;
    }
}

@media screen and (max-width: 1080px) {

    .body-home {
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items: center;
        padding: 1em;
    }

    .logo-home-page {
        width: 90%;
        position: relative;
        display:block;
        order:1;
    }

    .container-form,
    .container-home {
        order:2;
        position:relative;
        width: 100%;
        padding: 1.5em 0.5em 0.5em 0.5em;
    }

    .header {
        flex-direction: column;
        padding: 1em;
        .logo {
            order: 2;
            width: 20%;
            min-width: 190px;
        }

        .text {
            order: 1;
            text-align: center;
            width: 100%;
        }
    }
    h1 {
        font-size: 2.3em !important;
        font-weight: 500 !important;
    }
    .wrapper {
        height: 100%;
    }
    .path-container {
        flex-direction: column;
        gap: 3em;
    }

    #first-row,
    #second-row {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 3em;
    }

    .tile {
        height: 280px;
        width: 250px;
    }

    .tile .icon::before {
        left: -15px;
    }

    .tile .icon::after {
        right: -15px;
    }
 
}

@media screen and (min-width: 1080px) {

    .container-form,
    .container-home {
        width: 40%;
        padding: 1.5em 1em 1em 1em;
        margin: 4em auto;
        -webkit-box-shadow: 2px 2px 8px 5px rgba(7, 3, 65, 0.1); 
        box-shadow: 2px 2px 8px 5px rgba(7, 3, 65, 0.1);
        z-index:2;
    }

    .container-home {
        width: 50%;
    }

    .logo-home-page {
        width: 25%;
        position: absolute;
        left: 2%;
        top:45%;
    }

    .smaller {
        width: 22%;
    }
}

@media screen and (max-width: 575px) {

    .body-home {
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items: center;
    }

    .modal-dialog {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .modal-content {
        height: 100vh;
        overflow: scroll;
        border-radius: 0;
    }

    .logo-home-page {
        width: 90%;
        position: relative;
        display:block;
        order:1;
    }

    .container-form,
    .container-home {
        order:2;
        position:relative;
        width: 100%;
        padding: 1.5em 0.5em 0.5em 0.5em;
    }
}