/*=================================================================================================================
											                   O P E R V E N T   P R O J E C T 
			                                    Copyright (c) - NOVEMBER 2023 
===================================================================================================================
	CREATION
		17/11/2023 - AS - Style page. 
	MODIFICATION
		21/12/2023 - AS - Cleaning and optimization. 
    01/03/2024 - AS - Modification to have input and output on the same page 
===================================================================================================================	

/* ----------------------------------------------------
	 GLOBAL  STYLES 
------------------------------------------------------- */

/* @import url('https://fonts.googleapis.com/css?family=Roboto:400,100,300,700'); */

:root {
  --blue-color: #356bff;
  --dark-color: #040813;
}

p {
  margin: 0;
}

body {
  font-family: "SF Pro Display", Arial, serif;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* emOVE CRAIN DEFAULT STYLES */
#page.site{
  overflow-x: unset;
  overflow-y: unset;

  
}
.page-template-template-simwaps [data-elementor-id="3275"]:is(::before, ::after){
  display: none;
}
.page-template-template-simwaps [data-elementor-id="3275"]{
  background-color: var(--dark-color);
  overflow: hidden;
}
.page-template-template-simwaps .elementor-element .pre-menu .elementor-widget-container{
  background-color: var(--dark-color);
}

.page-template-template-simwaps .crain-main-menu{
  background-color: var(--dark-color);
    & .main-menu {
        & ul:not(.dp-menu) {
            & > li.nav-item {
                background-color: rgb(255 255 255 / 31%);
            }
        }
    }
}

main.main{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background-color: #151f2f;
  color: white;
  position: relative;
}
/*PAGE SECTION USER INPUTS */

.input {
  position: relative;
  width: 100%;
  flex: 0 0 25%;
  background: var(--dark-color);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 60px;
  transition: width 0.3s ease;
  -webkit-transition: width 0.3s ease;
  -moz-transition: width 0.3s ease;
  -ms-transition: width 0.3s ease;
  -o-transition: width 0.3s ease;
}

.input.active {
  width: 100px;

  ul{
    opacity: 0;
  }
}

.input .header {
  font-size: 1.2em;
  font-weight: 400;
  color: white;
  margin-bottom: 8px;
  gap: 8px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;

  margin-top: 42px;
  p,label {
    margin-bottom: 0;
  }

}

:is(.route, .ship) .header {
  position: relative;
  label {
    position: static;
  }
}

.input label {
  position: relative;
  display: block;
  padding: 0 4px;
  margin-bottom: 4px;
  color: white;
  font-weight: 400;
  font-size: 1em;
}

.input select,
.input input[type="range"] {
  width: 100%;
  padding: 10px 4px;
  margin-bottom: 28px;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.input input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.input input[type="range"]:hover {
  opacity: 1;
}

/* emoves default focus */
input[type="range"]:focus {
  outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* Track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: white;
  border-radius: 8px;
  height: 0.5em;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--blue-color);
  border-radius: 99px;
  height: 1em;
  width: 1em;
  margin-top: -0.25em;
  -webkit-border-radius: 99px;
  -moz-border-radius: 99px;
  -ms-border-radius: 99px;
  -o-border-radius: 99px;
}

input[type="range"]:focus::-webkit-slider-thumb {
  outline: 3px solid white;
  outline-offset: 0.125em;
}

/*********** Firefox styles ***********/
/* Track */
input[type="range"]::-moz-range-track {
  background-color: white;
  border-radius: 8px;
  height: 0.5em;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

/* Thumb */
input[type="range"]::-moz-range-thumb {
  background-color: var(--blue-color);
  border: none;
  border-radius: 8px;
  height: 1.5em;
  width: 1em;
  margin-top: -0.5em;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

input[type="range"]:focus::-moz-range-thumb {
  outline: 3px solid rgb(2, 43, 58);
  outline-offset: 0.125em;
}

.input nav {
  position: sticky;
  top: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding-top: 50px;
}

.sidebar-toggler{
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-color);
  left: calc(100% + 59px);
  padding: 20px;
  line-height: 1;
  position: absolute;
  top: -37px;
  gap: 8px;
  p{
    margin-bottom: 0;
  }
}
.open .sidebar-toggler{
  p{
    display: none;
  }
}
@media (width <= 1200px) {
  .input{
    position: absolute;
    transform: translateX(-100%)  ;
    -webkit-transform: translateX(-100%)  ;
    -moz-transform: translateX(-100%)  ;
    -ms-transform: translateX(-100%)  ;
    -o-transform: translateX(-100%)  ;
    max-width: 55%;
    top: 0;
    height: 100%;
    left: 0;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    z-index: 90;

    &.open{
      transform: translateX(0);
    }
  }
  .input nav ul{
    max-height: 90dvh;
    overflow-y: auto;
  }
}
@media (width <= 768px) {
  .input{
    max-width: 85%;
    padding: 20px;
  }
}
@media ( 1200px <= width) {
  .sidebar-toggler{
    display: none;
  }
}
@media (width <= 768px) {
  .sidebar-toggler{
    left: calc(100% + 20px);
    top: 33px;
  }
}

.input nav ul {
  list-style: none;
  width: 100%;
  padding: 0;
}

.input nav ul li {
  position: relative;
  margin: 1em 0;
}

.title {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-color);
  font-family: "pf-grand-gothik-variable", sans-serif !important;
  font-variation-settings: "wdth" 130, "wght" 400, "ital" 0 !important;
  letter-spacing: 6px;
  font-size: 24px;

  &::before {
    pointer-events: none;
    content: "";
    width: 40px;
    height: 3px;
    background-color: var(--blue-color);
    position: absolute;
    bottom: -15px;
    display: block;
    left: 0%;
  }
}

.input nav ul li.active a {
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
}

.input nav ul li:not(.active)::after {
  opacity: 0.2;
}

.input nav ul li:not(.active):hover a {
  color: rgba(#669999, 0.75);
}

.input input[type="submit"] {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background-color: var(--blue-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.input input[type="reset"] {
  margin-top: 1em;
  padding: 11px;
  background-color: transparent;
  color: var(--blue-color);
  border: 1px solid var(--blue-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  width: 100%;
  transition: color 0.3s ease, background-color 0.3s ease;
  -webkit-transition: color 0.3s ease, background-color 0.3s ease;
  -moz-transition: color 0.3s ease, background-color 0.3s ease;
  -ms-transition: color 0.3s ease, background-color 0.3s ease;
  -o-transition: color 0.3s ease, background-color 0.3s ease;
}


/* For WebKit-based browsers */
.input::-webkit-scrollbar,
.output::-webkit-scrollbar {
  width: 5px;
}

.input::-webkit-scrollbar-thumb,
.output::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 6px;
}

.input::-webkit-scrollbar-thumb:hover,
.output::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
.tippy-box{
  background-color: white;
  color: black;
  padding: 10px;
  box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.2);

  .tippy-card{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  span{
    font-size: 1.7em;
    margin-bottom: 10px;
  }
  p{
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: 400;
    text-wrap: pretty;
  }
}
.tippy-arrow{
  color: white;
}
.input .popup {
  display: none;
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translate(-50%, 0%);
  background-color: #ffffff;
  padding: 20px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 999;
  width: 100%;
  -webkit-transform: translate(-50%, 0%);
  -moz-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  -o-transform: translate(-50%, 0%);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.input .close-button {
  position: absolute; /*?*/
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #333333;
}

.input .help-button {
  position: relative;
  color: white;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1em;
  width: auto;
  height: auto;
  line-height: 1;
}

/* .input .help-button:hover + .popup {
  display: block;
} */

/*PAGE SECTION OUTPUT / RESULTS */

.output {
  position: relative;
  width: 100%;
  flex: 1 1 80%;
  max-width: 1000px;
  margin-inline: auto;
  padding-top: 200px;
  padding-bottom: 100px;
}
@media (width <= 1400px) {
  .output{
   max-width: 700px;
  }
}

@media (width <= 1200px) {
  .output{
   margin: 140px 0;
   padding: 0 24px;
   max-width: unset;
  }
}
.four{
  overflow-x: auto;
}
.output p {
  font-size: 1em;
  letter-spacing: 0em;
  color: #000000;
  font-weight: 400;
  margin-top: 8px;
}

.output li {
  font-size: 1em;
  letter-spacing: 0em;
  color: #000000;
  font-weight: 400;
  margin-top: 20px;
}

.output #formResults {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

.output #formResults p {
  font-size: 1.2em;
  /*color: rgb(2, 43, 58); */
  color: var(--blue-color);
  font-weight: 400;
  margin-top: 20px;
}

.output .popup {
  display: none;
  position: absolute; /*?*/
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 20px;
  border: 2px solid #333333;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.output .popup-content {
  text-align: center;
}

.output .close-button {
  position: absolute; /*?*/
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #333333;
}

.output .header .help-button {
  position: relative;
  top: -0.5em;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.7em;
  width: 2em;
  height: 2em;
  line-height: 1em;
  justify-content: center;
  align-items: center;
}
/* 
.output .help-button:focus + .popup {
  display: block;
} */

/* .output canvas {
  width: 70%;
  height: 100%;
  z-index: 50;
} */
.canvas-container{
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 40px;
  width: 100%;

}


/* MODAL CONTENT */

/* .modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto 0% auto;
  padding: 0%;
  border: 1px solid #888;
  width: 80%;
  height: 70%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
  display: flex;
  justify-content: space-between; /* Aligne les éléments sur les bords 
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
}

.close {
  color: #8d8d8d;
  font-size: 35px;
  font-weight: 400;
  position: absolute;
  top: 25px; /* Ajustez ces valeurs selon vos besoins 
  right: 25px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
} 
*/

/*INFO PAGE*/

.info-page h1 {
  font-size: 3em;
  font-weight: 400;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.info-page h2 {
  font-size: 1.5em;
  font-weight: 400;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}
.info-page h3 {
  font-size: 1em;
  font-style: italic;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.info-page p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

/*Logo*/

.logo-container {
  display: flex;
}

.logo {
  margin-right: 20px; /* Espacement entre les logos */
}

.img {
  width: 90%;
}

/* Retrieve Page */
.retrieve-page {
  padding: 20px;
}

.retrieve-page h1 {
  font-size: 3em;
  font-weight: 400;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.retrieve-page h2 {
  font-size: 1.5em;
  font-weight: 400;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.retrieve-page h3 {
  font-size: 1em;
  font-style: italic;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.retrieve-page label {
  font-size: 1em;
  font-weight: 400;
  /*color: rgb(2, 43, 58); /* Couleur du texte */
  color: var(--blue-color);
  margin-bottom: 5px; /* Marge inférieure */
  display: block; /* Afficher en tant que bloc pour chaque ligne */
}

.retrieve-page p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.retrieve-page input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

/* Style pour les balises <input> de type texte lorsqu'ils sont en focus */
.retrieve-page input[type="text"]:focus {
  outline: none; /* Supprimer l'effet de focus par défaut */
  border-color: #66afe9; /* Changer la couleur de la bordure lorsqu'en focus */
  box-shadow: 0 0 5px #66afe9; /* Ajouter une ombre lorsqu'en focus */
}

.retrieve-page button {
  /*background-color: rgb(2, 43, 58);
  */background-color: var(--blue-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.retrieve-page button:hover {
  background-color: rgb(1, 29, 39);
}

/* LOGIN PAGE */
.login-page {
  padding: 20px;
}

.login-page h1 {
  font-size: 3em;
  font-weight: 400;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.login-page h2 {
  font-size: 1.5em;
  font-weight: 400;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.login-page h3 {
  font-size: 1em;
  font-style: italic;
  /*color: rgb(2, 43, 58);*/
  color: var(--blue-color);
  margin-bottom: 15px;
}

.login-page label {
  font-size: 1em;
  font-weight: 400;
  /*color: rgb(2, 43, 58); */
  color: var(--blue-color);
  margin-bottom: 5px;
  display: block;
}

.login-page p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.login-page input[type="text"] {
  width: 100%;
  padding: 10px;
  /*Innermargin*/margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.login-page input[type="text"]:focus {
  outline: none;
  border-color: #66afe9;
  box-shadow: 0 0 5px #66afe9; /* Shadow */
}

.login-page button {
  /*background-color: rgb(2, 43, 58);
  background-color: var(--blue-color);
  color: white;
  padding: 10px 20px;
  /*Innermargin*/border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.login-page button:hover {
  background-color: rgb(1, 29, 39);
}

.btn-export {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background-color: var(--blue-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

table {
  border-collapse: collapse; /* Merge table borders */
  width: 100%;
}

.table-header {
  font-weight: bold;
  text-align: center;
  padding: 8px;
  background-color: #51555b;
  color: white;
}
table tr{
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th,
td {
  border-right: 1px solid #000; /* Add a right border to each cell */
  padding: 8px; /* Inner margin */
  text-align: left; /* Text align in cells */
  font-weight: normal;
}

th:first-child {
  border-left: none; /* emove left border from first column */
}

th:last-child,
td:last-child {
  border-right: none; /* emove right border from last column */
}

th {
  /*background-color: rgb(2, 43, 58); */
  background-color: var(--blue-color);
  color: white;
}

details{
  margin-bottom: 12px;
}
summary{
  background: #51555b;
    padding: 10px;
    text-align: center;

    &::marker{
      color: transparent;
    }

    &:after{
      content: "▼";
      float: right;
      transition: transform 0.3s ease;
      -webkit-transition: transform 0.3s ease;
      -moz-transition: transform 0.3s ease;
      -ms-transition: transform 0.3s ease;
      -o-transition: transform 0.3s ease;
}
}

details[open] summary:after{
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
}

.three{
  padding: 50px 0;
  gap: 20px;
  .header {
    position: relative;
    flex: 1 1 calc((100% / 2) - 20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #424a57;
    overflow: hidden;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
            
    > span{
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: bold;
      padding: 10px 18px;
      text-align: center;
      width: 100%;
      background-color: #356bff;
    }

    p{
      color: white;
      margin: 20px 0;
    }

    button#helpButton{
      color: white;
      top: unset;
    }
  }
}

.flex-wrap{
  flex-wrap: wrap;
} 
