@font-face {
    font-family: "Jost";
    src: url('shared/fonts/Jost-Regular.ttf'); /* IE9 Compat Modes */
    src: url('/shared/fonts/Jost-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('/shared/fonts//Jost-Regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('/shared/fonts//Jost-Regular.woff') format('woff'), /* Pretty Modern Browsers */
         url('/shared/fonts/Jost-Regular.ttf')  format('truetype'), /* Safari, Android, iOS */
         url('/shared/fonts/Jost-Regular.svg#svgFontName') format('svg'); /* Legacy iOS */
}

@font-face {
    font-family: "JimNightshade";
    src: url("../fonts/JimNightshade-Regular.ttf");
    src: url('../fonts/JimNightshade-Regular?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/JimNightshade-Regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/JimNightshade-Regular.woff') format('woff'), /* Pretty Modern Browsers */
         url('../fonts/JimNightshade-Regular.ttf')  format('truetype'), /* Safari, Android, iOS */
         url('../fonts/JimNightshade-Regularg#svgFontName') format('svg'); /* Legacy iOS */
}
/* -- MEDIA QUERIES -- */
@media (min-resolution: 120dpi) { 

    #trainingRunning p {
        font-size: 16px;
        padding: 0;
    }

}
/* ORDINATEUR */
@media (min-width: 820px) {

    ul {
        flex-direction: row;
    }

    form {
        flex-direction: row;
    }

    #logoSoftImg {
        width: 30em;
    }

    #boatAdd {
        left: 30px;
        top: 600px;
    }

    #boatAddImg {
        width: 12em;
    }

    #boatContinueImg {
        width: 20em;
    }

    #boatCheck {
        right: 30px;
        top: 270px;
    }

    #boatCheckImg {
        width: 8em;
    }

    #boatContinue {
        bottom: 100px;
    }
    
    #grade-level {
        width: 21em;
        margin: auto;
    }

    #trainingRunning {
        width: 15em;
        border-radius: 1em;
    }

}

@media (max-height: 780px) {

    #logoSoftImg {
        width: 20em;
    }

    #boatAdd {
        top: 440px;
    }

    #boatCheck {
        top: 230px;
    }

    #boatAddImg {
        width: 10em;
    }

    #boatCheckImg {
        width: 6em;
    }

    #boatContinueImg {
        width: 17em;
    }

    #grade-level {
        width: 15em;
    }

}

/* TABLETTE/MOBILE */
@media (max-width: 820px) {
    ul {
        flex-direction: column;
    }

    form {
        flex-direction: column;
    }

    select, input, button {
        margin: 0.2em 0;
    }
}

/* -- BALISES -- */

body {
    margin: 0;
    font-family: Jost, Arial, Helvetica, sans-serif;
    position: fixed;
    width: 100%;
    height: 100%;
    color: white;
}

header {
    background-color: inherit;
    padding: 0 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

table {
    padding: 1em;
}

td p, th p {
    padding: 0 0.3em;
}

li {
    display: inline;
}

input {
    border: #000000 solid;
    padding: 0.2em;
    height: 1.5em;
}

h1 {
    margin: 0;
    padding: 0.2em;
    font-weight: bold;
    font-size: 1em;
}

h2 {
    margin: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: inherit;
    width: 100%;
    z-index: 1000;
    position: fixed;
    bottom: 0;
}

ul {
    text-align: center;
    margin: 0;
    padding: 0.5em;
}

li {
    display: inline;
}

p {
    margin: 0.5em;
}

button {
    padding: 0.2em 0.4em;
    font-family: inherit;
    font-size: 1em;
    background-color: black;
    color: white;
    border: #01729e solid 2px;
    border-radius: 5em;
}

button:hover {
    background-color: #01729e;
}

button a {
    padding: 0.5em;
    color: white;
    text-decoration: none;
}

button p {
    display: inline;
}

form {
    display: flex;
    justify-content: center;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    background-color: #DADADA;
    resize: none;
    height: 2em;
}

/* -- CLASSES -- */

.buttonText {
    font-size: 22px;
    vertical-align: text-bottom;
    margin: 0;
    padding: 0.1em 0.5em;
    background-color: white;
    color: black;
    border-radius: 8em;
}

/* -- INDEX -- */

#logoSoft {
    display: flex;
}

#greetings h1 {
    font-size: xx-large;
    text-shadow: 0 0 5px black;
}

#userAvatar {
    width: 2.5em;
    margin: auto;
    border-radius: 100px;
    border: #01729e solid 2px;
}

#headerUserAvatar {
    display: flex;
    align-items: center;
    height: 100%;
}

/* #main {
    background-image: url("../../../assets/images/backgrounds/sea.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 75%;
    height: 100vh;
} */

#actions {
    display: flex;
    justify-content: space-around;
}

.boatHome {
    position: absolute;
    text-align: center;
    animation: boatFloat 3s ease-in-out infinite;
}

.boatHome.stopFloat {
    animation: none !important;
}

@keyframes boatFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.add .step, .verify .step, .publish .step {
    font-size: 6em;
    font-weight: bold;
    vertical-align: top;
}

#upLeft {
    text-align: center;
    position: absolute;
    top: 70px;
    left: 15px;
    z-index: 10;
}

#upMiddle {
    padding: 1em;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

#upRight {
    position: absolute;
    right: 15px;
    top: 60px;
}

.copyright {
    padding-right: 1em;
}

/* -- WINDOW -- */

#box {
    display: none;
}

#window {
    overflow: auto;
    position: absolute;
    text-align: center;
    background-color: #0000007a;
    margin: auto;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#window-header button, #window-footer button {
    background-color: #00709d;
    font-size: 20px;
    font-weight: bold;
}

#window-header button:hover, #window-footer button:hover {
    background-color: #00415b;
}

#window-header {
    padding: 3px;
    font-size: larger;
    background-color: #0591c9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.windowButton {
    margin: 0 1vh;
    align-self: center;
    border: white 2px solid;
}

.window-header-titre {
    font-weight: bold;
}

.window-header-fermer {
    background-color: #01729e;
    padding: 0.5em;
    cursor: pointer;
}

.window-header-fermer:hover {
    background-color: #005475;
}

#window-content {
    height: 80%;
    overflow: auto;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#window-main {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    height: 100%;
}

#window-avatar {
    background-color: #000000c2;
    margin: 2vh 0;
    border-radius: 1em;
}

#window-avatar-img {
    width: 5em;
    border-radius: 100px;
}

#window-avatar-img-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1vh;
}

#window-avatar-text {
    font-size: x-large;
    font-weight: bold;
}

#window-choices {
    padding-bottom: 1em;
}

#window-choices button {
    padding: 0.5em;
    margin: 0.4em;
}

#window-items {
    margin: 1vh;
}

#window-footer {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 4em;
    background-color: #0591c9;
    justify-items: stretch;
    align-items: center;
    z-index: 9999;
}

#window-footer-before {
    grid-area: 1/1/2/2;
    justify-self: left;
}

#window-footer-middle {
    grid-area: 1/2/2/3;
    justify-self: center;
}

#window-footer-after {
    grid-area: 1/3/2/4;
    justify-self: right;
}

#prompt {
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    background-color: #DADADA;
    resize: none;
    height: 23px;
}

#content-prompt {
    display: flex;
}

/* -- THEMES -- */

.darkMode {
    background-color: #000000;
}

.lightMode {
    background-color: white!important;
    color: black;
}

#progressBar {
    display: flex;
    align-items: center;
    width: 40vw;
    background-color: #0591c9;
    border: white 2px solid;
    border-radius: 20px;
    overflow: hidden;
}

/* -- LOADING -- */

#loading {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.loading {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 8px solid;
    border-color: white;
    border-right-color: #0591c9;
    animation: spin 1s infinite linear;
}
  


/* -- TRAINING -- */

#trainingIntroText {
    font-size: 30px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

#trainingIntroName {
    font-size: 32px;
    text-align: center;
    position: relative;
    transform: scale(0.5);
}

#trainingIntroName p {
    font-size: 60px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #372b4dd6;
    padding: 1vw;
    border-radius: 100px;
}

#trainingIntroName.zoomIn {
    animation: zoomIn 10s linear;
}

#trainingTrainerCourse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#trainingTrainer {
    position: relative;
}

#trainingImage {
    width: 100%;
    height: 30%;
    object-fit: cover;
    border-radius: 10px;
    object-position: 0 -120px;
    display: block;
}

/* #trainingRudder {
	grid-area: 2/2/3/3;
	justify-self: center;
	align-self: center;
    animation: spinRudder 10s infinite;
} */

/* #trainingRudder img {
    width: 10em;
} */

#trainingCourse {
    position: relative;
}

#trainingCourseBackground, #trainingTrainerBackground {
    width: 25em;
}

#trainingCourseIntro {
    top: 65px;
    right: 45px;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    width: 74%;
}

#trainingTrainer p, #trainingCourse p {
    position: absolute;
    font-size: 22px;
}

.trainingCourse, .trainingTrainer {
    color: #542200;
}

#trainingCourse1 {
    bottom: 65px;
    right: 130px;
}

#trainingCourse2 {
    bottom: 130px;
    right: 155px;
}

#trainingCourse3 {
    top: 180px;
    right: 80px;
}

#trainingCourseGoal {
    text-transform: uppercase;
    color: #9b0000;
    font-weight: bold;
    top: 135px;
    right: 75px;
}

#trainingTrainerNameIntro {
    top: 70px;
    left: 100px;
    text-transform: uppercase;
    font-weight: bold;
}

#trainingTrainerPhoto {
    position: absolute;
    border-radius: 100px;
    top: 120px;
    left: 120px;
    width: 10em;
    border: #542200 solid 4px;
    box-shadow: 1px 1px 10px #000000;
}

#trainingTrainerName {
    bottom: 80px;
    left: 125px;
}

.videoBackground {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#trainingStart {
    text-align: center;
}

.trainingDescription {
    flex: 1;
    padding: 10px 30px;
    color: white;
}

#trainingName {
    font-weight: bold;
    text-align: center;
    font-size: 2em;
}

.parchmentTrainingModule {
    width: 150px;
    background-image: url("../images/parchmentTrainingModule.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.parchmentTrainingModuleImage {
    width: 120px;
    margin-left: 15px;
    margin-top: 5px;
}

.moduleName {
    margin: 0;
    display: inline;
    border-radius: 100px;
    padding: 5px 10px;
}

.moduleDescription {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: larger;
}

/* ------ KEYFRAMES ------ */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRudder {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(50deg); }
    50% { transform: rotate(0deg); }
    70% { transform: rotate(-50deg); }
    100% { transform: rotate(0deg); }
}

@keyframes moveRight {
    0% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(1);
    }
}

.buttonTraining {
    background-color: #034965;
    border: none;
    padding: 10px;
}

.parchmentText {
    color: #542200;
    /* font-family: JimNightshade, Arial, Helvetica, sans-serif; */
}

.trainings {
    display: flex;
    justify-content: space-around;
}

.training {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.trainingDescription {
    width: 30%;
}

.menuButton i {
    padding: 1vh;
    font-size: 4em;
}

.trainingInterface {
    display: flex;
    height: 90vh;
}

#trainingInterfaceAside {
    width: 180px;
    background-image: url("../images/parchmentTrainingLevel.png");
    background-size: 100% 80vh;
    background-repeat: no-repeat;
    background-position-y: 15px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#trainingStepsList {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-left: 20px;
}

.trainingStepList {
    margin-bottom: 25px;
}

.trainingStep {
    margin-bottom: 25px;
    position: relative;
}

.trainingStep div {
    display: flex;
    align-items: center;
    margin: 15px 40px 35px;
}

.trainingStepNumber {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 100px;
    width: 25px;
    height: 25px;
    z-index: 1;
    background-color: #03222a;
    color: wheat;
}

.trainingStep:not(:last-child) .trainingStepNumber::after {
    content: "";
    position: absolute;
    top: 100%;
    width: 4px;
    height: 35px;
    background: #03222a;
    z-index: 0;
}

.trainingStepName {
    margin-left: 15px;
}

#boatProgress {
    width: 35px;
    position: fixed;
    top: 120px;
}

#modules {
    margin-top: 1em;
}

.trainingInterfaceContinue {
    text-align: right;
    margin-top: -1em;
}

#trainingContinue {
    background: radial-gradient(circle, rgba(0, 0, 0, 1) 45%, rgb(0 184 255) 50%, rgb(0 168 235 / 0%) 75%, rgba(1, 114, 158, 0) 100%);
    border: transparent solid 0px;
    width: 85px;
    height: 85px;
}