/*https://www.w3schools.com/css/tryit.asp?filename=trycss3_flexbox_website*/
/*https://www.w3schools.com/css/css3_flexbox_responsive.asp*/
/* @import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Helvetica, Arial, sans-serif;  
  display: flex;
  flex-direction: column;
}


/***********************************************************************************************************************/
/*************************************************** note / header / nav / footer **************************************/
/***********************************************************************************************************************/

/* Note */
#note {  
  padding: 5px;
  text-align: right;
  /* font-family: 'Times New Roman', Times, serif;*/
  /* border-bottom: 1px solid black; */
  /* background-color: #ddd; */
}

/* Header */
header {
  padding: 10px;
  text-align: center;  
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000; 
}

/* Top navigation bar */
#nav-links {
  display: flex;  
  justify-content: space-between; /* left vs right */
  align-items: center;
  background-color: #1f3a5f;  
  margin-bottom: 30px;
  /* padding: 10px 20px; */  
}

#nav-left {
  display: flex;
  background-color: #ddd;
  color: black;  
}

#nav-right {
  display: flex;
  gap: 20px;  
}

#nav-mob {
  display: none;
}

/* Navigation bar links */
#navbar a {
  padding: 14px 20px;
  text-decoration: none;
  /* text-align: center;   */
}

#nav-left a {
  color: black;
  cursor: default;
}

#nav-right a {
  color: white;
}

/* Change color on hover */
#navbar a:hover {
  background-color:#ddd;
  color: black;
}

/* Footer */
footer {
  padding: 10px;
  text-align: center;
  background: #ddd;
  margin-top: 30px;  
}

footer a {
  color: #1f3a5f;  
}

footer p  {
  margin: 10px;
} 
  

/***********************************************************************************************************************/
/*************************************************** model / contact / disclaimer *************************************************/
/***********************************************************************************************************************/

#model, #contact, main {
  flex: 1;  
  display: flex;  
  justify-content: center;  
  /* border: 2px solid green;   */
}

.container {  
  width: 50%;  
  max-width: 1100px;
  /* min-height: 600px;   */
  /* border: 2px solid red;     */
}

/* .statement {
  background-color: #aaa;  
  width: 200px;
  margin: 20px;
  padding: 20px;
  height:200px;
  text-align: center;
  font-size: 120%;
} */

/* SubmitButton */
.submitbutton {
  background-color: rgb(255, 199, 206);
  border: 1px solid rgb(255, 199, 206);
  color: rgb(156, 0, 6);
  padding: 10px 20px;
  text-align: center;  
  font-size: 100%;  
  cursor: pointer;  
  font-family: Helvetica, Arial, sans-serif;
}

/* .submitbutton:hover {
  background-color: white; 
  color: black;
  border: 1px solid black;  
} */

/* Disclaimer*/
#disclaimer {
  flex: 1;
  display: flex;  
  justify-content: center;    
  /* align-items: center;   */  
}

#disclaimer form {
  width: 50%;
  margin-bottom: 20px;
}

#disclaimer label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;  
}

#disclaimer input {
  margin-top: 4px;  
}


/***********************************************************************************************************************/
/*************************************************** chart *************************************************************/
/***********************************************************************************************************************/

.chart-block {
  width: 100%;
  max-width: 1000px;  
  /* margin: 40px 0px 40px 0px; */
  margin: 20px auto;
}

#navChart {
  width: 100%;  
  /* margin: 0px 40px 0px 40px;   */
}

#ddChart {
  width: 100%;  
  /* margin: 0px 40px 0px 40px;     */
}

.fromdate {
  /* width: 100%;   */
  margin-top: 40px;
  /* text-align: center; */
}


/***********************************************************************************************************************/
/*************************************************** perf **************************************************************/
/***********************************************************************************************************************/

#perfContainer {  
  display: flex;  
  flex: 1;
  justify-content: center;
  width: 100%;  
  /* border: 2px solid red;     */
}

#tabWrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* align-items: stretch; */
  /* border: 2px solid green;     */
}

.perftab {  
  overflow-x: auto;  
  /* border: 2px solid red;     */
}

.perf {
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
  /* margin: 40px 0px 40px 0px; */
  /* border: 2px solid red;     */
}

.perf th, .perf td, .perf tr {
  padding: 6px 10px;
  border: 1px solid #ddd;
}

.green {
  background-color: rgb(198, 239, 206);
  color: rgb(0, 97, 0);
}

.red {
  background-color: rgb(255, 199, 206);
  color: rgb(156, 0, 6);
}

.datacell {
  text-align: left;
  font-weight: bold;
}

/***********************************************************************************************************************/
/*************************************************** legal *************************************************************/
/***********************************************************************************************************************/

#legal, #privacy, #cgu {
  width: 50%;  
  max-width: 1100px;
  min-height: 600px;
}

#legal p, #privacy p, #cgu p {
  margin-top: -15px;
}


/***********************************************************************************************************************/
/*************************************************** Responsive layout *************************************************/
/***********************************************************************************************************************/

@media screen and (max-width: 1300px) {  
  #disclaimer form {
    width: 45%;
  }
}

/* Responsive layout - when the screen is less than 700px wide,
   make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  
  #nav-links {   
    display: none;    
  }
  
  #nav-mob {
    display: block;
    background-color: #1f3a5f;
    color: white;    
  }

  #nav-mob:hover {    
    background-color: #ddd;
    color: black;
    cursor: pointer; 
  }

  #nav-mob a {    
    background-color: #1f3a5f;
    color: white;
  }  

  #nav-mob-btn {    
    padding: 14px 20px;  
  }

  #nav-mob-menu {
    display: none;    
  }

  #nav-mob-menu.active {
    display: flex;    
    flex-direction: column;    
  }

  #nav-mob-menu a {    
    color: white;
    text-decoration: none;    
  }
  

  /* #nav-links {   
    display: none;
    flex-direction: column;  
    width: 100%;
    background-color: #1f3a5f;
    margin-top: 10px;
  }  

  #nav-links.active {    
    display: flex;
  }
  #nav-links a {    
    padding: 10px 0;
  } */

  #disclaimer form {
    width: 60%;
  }

}

@media screen and (max-width: 400px) {
  .container {   
    flex-direction: column;
    align-items: center;
  }  
}
