:root {
  --appli_title_color: #039eb9;
  --appli_title_font_color: white;
  --menu_color: #055daa;
  --page_title_color: #f4502b;
  --title_font_color: white;
  --menu_bar: #ffb503;
  --button_color: #3366bb;
  --selected_menu_color: #5583ff;
  --selected_row_color: #fbf3a1;
  --table_title_color: #efefff;
  --site_branding_background : #d7dfea;
}

html {
  /*-webkit-text-size-adjust: 100%;*/
  padding: 0rem;
  margin: 0rem;
}

body {
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
  margin-left: auto;
  margin-right: auto;
  color: var(--menu_color);
}

.banner {
  font-size: 4rem;
  font-weight: normal;
  background-color: #d7dfea;
  color: var(--menu_color);
  padding: 1vh;
  text-align: center;
}
.footer {
  position: fixed;
  bottom : 0%;
  font-size:0.6rem;
}

h1 {
  font-size: 4rem;
  font-weight: normal;
  background-color: #d7dfea;
  color: var(--menu_color);
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 6px;
  text-align: center;
}
#home_page {
  width: 100vw;
  text-align: center;
  color: var(--menu_color);
}
#home_page h1 {
  font-size:8vw;
  width: 100vw;
}
h2 {
  margin:auto;
  font-size: 1rem;
}

h3 {
  color: var(--menu_color);
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

h4 {
  color: var(--menu_color);
  padding: 0vh;
  margin-bottom: 0.5vh;
  margin-top: 0.5vh;
  font-size: 1.5rem;
}

select {
  /*height:10vh;*/
  font-size: 1rem;
}

th {
  font-size: 1.2rem;
  background-color: var(--table_title_color);
  color: #020957;
}

tr:nth-child(odd of .alternate) {
  background-color: #e9e9fa;
}

input {
  font-size: 1rem;
}

input[type="radio"]:checked + label {
  background-color: #5583ff;
  color: white;
  font-weight: bold;
  border-radius: 2vh;
}

.site a {
  text-decoration: none;
}

a:visited {
  color: var(--menu_color);
}

a:link {
  color: var(--menu_color);
}

a:hover {
  color: var(----appli_title_color);
}

a:active {
  color: var(----appli_title_color);
}

a#button_link {
  background-color: var(--button_color);
  border: none;
  color: var(--title_font_color);
  padding: 10px 15px;
  text-align: center;
  text-decoration: bold;
  font-size: 16px;
  border-radius: 16px;
}

.page_title {
  padding-top: 0.5vh;
  font-size: 1rem;
  font-weight: bold;
  color: var(--menu_color);
  margin: auto;
}
.page_title td {
  padding-left: 1rem;
  padding-right: 1rem;
}
.table_title {
  border: 0;
  width: 100vw;
  color: var(--menu_color);
}

.button {
  background-color: var(--button_color);
  border: none;
  color: var(--title_font_color);
  padding: 7px 15px;
  margin-bottom: 5px;
  text-align: center;
  text-decoration: bold;
  font-size: 1rem;
  border-radius: 13px;
}

.nav_button {
  background-color: var(--button_color);
  color: var(--title_font_color);
  padding: 1vh 2vw;
  text-align: center;
  font-size: 3rem;
  border-radius: 2vh;
}

.round_button {
  background-color: var(--button_color);
  border: none;
  color: var(--title_font_color);
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 1.5rem;
}

.small_button {
  background-color: var(--button_color);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  text-decoration: old;
  font-size: 1rem;
  border-radius: 0.7rem;
}

.selected {
  background-color: var(--selected_menu_color);
  border: none;
  color: white;
  padding: 15px 15px;
  margin-bottom: 5px;
  text-align: center;
  text-decoration: bold;
  font-size: 26px;
  border-radius: 18px;
}

.not_selected {
  background-color: #dddddd;
  border: none;
  border-color: #7facff;
  color: #1e1d1d;
  padding: 15px 15px;
  margin-bottom: 5px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  border-radius: 18px;
}

.btn_skipper {
  color: white;
  background-color: #5583ff;
  border: none;
  margin-top: 0.3vh;
  margin-bottom: 0.3vh;
  /* text-align: center; */
  height: 3rem;
  width: 4rem;
  font-size: 1.5rem;
  border-radius: 2vh;
}
.btn_ranking {
  color: darkblue;
  background-color: lightgray;
  border: 1px solid darkblue;
  margin-bottom: 0.3vh;
  margin-top: 0.3vh;
  height: 3rem;
  width: 4rem;
  font-size: 1.5rem;
  font-stretch: condensed;
  border-radius: 2vh;
}
.btn_dnf {
  color: white;
  background-color: #666666;
  border: none;
  padding: 0vh 0vh;
  margin-top: 0.5vh;
  margin-bottom: 0.5vh;
  text-align: center;
  height: 3rem;
  width: 5rem;
  font-size: 1.5rem;
}

.btn_not_found {
  color: white;
  background-color: #5583ff;
  border: none;
  text-align: center;
  height: 3vh;
  font-size: 1.5vmin;
  border-radius: 1vh;
}

.btn_options {
  color: white;
  background-color: #5583ff;
  border-radius: 1vh;
  border: none;
  padding: 0.6vh 1vh;
}

.select_options {
  padding-left: 0;
  width: 97%;
}

.disabled {
  background-color: #aaaaaa;
}

.ranking {
  /* font-size: 22px; */
  padding: 10px 10px;
  margin-bottom: 5px;
}

.dnf_span {
  font-size: 1.2rem;
  padding: 1rem 1rem;
  height: 3rem;
}

.info_span {
  font-size: 2rem;
  padding-left: 2rem;
}

button:disabled {
  background-color: #cccccc;
  color: #666666;
}

#global_lst_skippers {
  /*width: 90vw;*/
  vertical-align: middle;
}

#global_lst_skippers #div_lst_skippers {
  float: left;
  width: 60vw;
}

#global_lst_skippers #div_btn_rounds {
  float: right;
  text-align: center;
  width: 40vw;
}

/* Style for popup modal window
================================*/
.dialog_box {
  display: none; /* Masqué par défaut */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  z-index: 1000;
  overflow: auto;
  /* Blurred background 
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.3); /* Adds a frosted glass effect */
}
/* Style du bandeau de titre */
.dialog_header {
  background-color: var(--page_title_color);
  color: var(--title_font_color);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.dialog_header h3 {
  color: var(--title_font_color);
  font-size: 2rem;
  font-weight: normal;
  margin: auto;
}
.close-btn {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

/* Style du contenu de la boîte */
.dialog_content {
  text-align: center;
  padding: 1rem;
  max-height: 90vh; /* Limite la hauteur de la partie du contenu */
  overflow-y: auto; /* Active le scroll vertical si nécessaire */
}

/* Style du pied de la boîte */
.dialog_footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ddd;
}
/* End of dialog style */
/*
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal_close {
  float: right;
  padding-top: 1rem;
  padding-right: 1.5rem;
  width: 2.5rem;
}

.dialog_header {
  position: absolute;
  left: 0px;
  top: 0px;
  background-color: var(--page_title_color);
  color: var(--title_font_color);
  width: 100%;
  text-align: center;
  padding-top: 1.2rem;
  padding-bottom: 1rem;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.span_title {
  padding-left: 1rem;
  padding-right: 1rem;
}

.popup {
  position: fixed;
  display: none;
  z-index: 9999;
  padding: 10px;
  border-radius: 10px;
  background-color: white;
  border: 1px solid grey;
}

.dialog_content {
  font-size: 1rem;
  padding-top: 1rem;
  margin-top: 2rem;
  overflow: auto;
  display: block;
}
*/
.div_help {
  overflow: scroll;
}

div#error_box {
  word-wrap: break-word;
  height: 7rem;
}

.small_link {
  font-size: 0.8em;
  color: #055daa;
}

#modal {
  width: 200px;
  height: 125px;
}

#background {
  background-color: black;
  display: none;
  position: fixed;
}

#div_regatta_options {
  text-align: center;
}
.tbl_options {
  margin: auto;
}
.tbl_options td {
  text-align: left;
  font-size: 1rem;
}
.tbl_skippers_list {
  margin: auto;
}
.tbl_skippers_list td {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}
#message_box {
  padding: 1em;
  font-size: 1.2rem;
}

.dialog_header_message {
  background-color: #055daa;
  color: white;
  border-radius: 0.5em;
  width: 100%;
  height: 2em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-bottom: 2em;
}

.dialog_header_error {
  background-color: #f4502b;
  color: rgb(250, 246, 246);
  border-radius: 0.5em;
  width: 100%;
  height: 2em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 3em;
  padding-right: 3em;
  margin-bottom: 2em;
}

.img_close {
  position: absolute;
  top: 1em;
  right: 1em;
}

.btn_popup {
  padding: 0.3em 1em;
  height: 2em;
  border-radius: 0.5em;
  background-color: #055daa;
  color: white;
}

/*======================*/
/*  Div for finish page */
/*======================*/
#finish_page {
  width: 100%;
}

.current_round_tab {
  display: inline-block;
  position: absolute;
  border: 0.5px solid;
  background-color: #f5cb98;
  border-color: #020957;
  color: rgb(8, 6, 116);
  border-radius: 0px 15px 0px 0px;
  margin: auto;
  text-align: center;
  padding-top: 0.7em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  height: 2.5em;
}

.round_tab {
  display: inline-block;
  position: absolute;
  border: 0.5px solid;
  border-color: #020957;
  background-color: #ff2200;
  color: white;
  border-radius: 0px 15px 0px 0px;
  margin: auto;
  text-align: center;
  padding-top: 0.7em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  height: 2.5em;
}

.new_round_tab {
  display: inline-block;
  position: absolute;
  width: auto;
  border: 0.5px solid;
  border-color: #020957;
  background-color: #ff2200;
  color: white;
  border-radius: 0px 15px 0px 0px;
  margin: auto;
  text-align: center;
  padding-top: 0.7em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  height: 2.5em;
}

.tbl_finish {
  /* width: 100vw; */
  /* height: 85vh; */
  border-spacing: 0px;
  margin: auto;
}

.tbl_finish th {
  font-size: 2.3rem;
  height: 5rem;
}

.tbl_finish td {
  vertical-align: top;
  text-align: center;
}

.global {
  position: relative;
  width: 82vw;
  background-color: #ddddff;
}

.left {
  float: left;
  width: 17vw;
  text-align: center;
  background-color: #ddddff;
  padding-left: 0vw;
  border: 1px solid #f4f6f8;
}

.right {
  float: right;
  width: 32vw;
  text-align: center;
  background-color: #ffeedd;
  border: 1px solid #f4f6f8;
}

.middle {
  margin-left: 20vw;
  background-color: #ddeeff;
  border: 1px solid #f4f6f8;
  text-align: center;
  height: 60vh;
  width: 31vw;
}

.dnf {
  position: relative;
  background-color: #e0dfde;
  min-height: 10vh;
  margin: auto;
}

.global h3 {
  font-size: 16px;
  font-weight: bold;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 0px;
  background-color: #d7dfea;
}

.finished {
  text-align: center;
  vertical-align: top;
  background-color: #ffffcc;
}

.racing {
  text-align: center;
  vertical-align: top;
  background-color: #ddeeff;
}

.help {
  color: #055daa;
  text-align: left;
  margin: auto;
  width: 98%;
}

.help_screenshot {
  float: right;
  width: 12rem;
}

.help h2 {
  font-size: 3rem;
  height: 2rem;
  text-align: center;
}

.help h3 {
  font-size: 2.5rem;
  margin-top: 1em;
  height: 2em;
}

.help td {
  vertical-align: top;
}

.large_icon {
  width: 3rem;
}

.medium_icon {
  height: 2rem;
  vertical-align: bottom;
}

.small_icon {
  height: 1rem;
  vertical-align: middle;
}

.help_screenshot {
  width: 20rem;
}

#zoom_buttons {
  position: absolute;
  top: 20vh;
  left: 65vw;
}

.zoom_icons {
  width: 8vw;
  margin-bottom: 2vh;
  z-index: 2;
}

#zoom_value {
  width: 10vw;
  color: #5555ff;
  background-color: transparent;
  border: none;
  border-color: #5583ff;
  font-size: 4vmin;
  border-radius: 1vh;
  margin-top: 0vh;
  margin-bottom: 1.5vh;
  z-index: 2;
}

.zoom_table {
  text-align: center;
}

#about {
  width: 80vw;
  text-align: center !important;
}

#list_about {
  width: 60vw;
  text-align: left;
}

#about li {
  list-style: inside;
  padding-left: 2rem;
}

/****************************************/
/* Styles for the start page with video */
/****************************************/
#start_round {
  width:100%;
  position : absolute;
  top:5rem;
  z-index:10;
}

#start_stop {
  position : absolute;
  top:35rem;
  width: 100%;
  z-index:2;
}

#btn_stop_round {
   top : 20rem;
  z-index: 1000;
  width: 10rem;
  margin: auto;
  text-align: center;
  font-size: 2rem;
}

#start_buttons {
  margin: auto;
  text-align: center;
  z-index:0;
}

.start_button {
  top: 10.5vh;
  z-index: 10;
  width: 12rem;
}

#btn_finish_video {
  display: none;
  margin-top: 10vh;
  margin: 0 auto;
  text-align: center;
  padding: 2vh;
  font-size: 1.5rem;
}

.videostream {
  position: absolute;
  top:5rem;
  width: 92vw;
  z-index: 0;
  border-radius: 20px;
}

/*=======================*/
/* Video player controls
/*=======================*/
.video_replay {
  width: 92vw;
  border-radius: 20px;
}

.replay {
  position: relative;
  display: flex;
  width: max-content;
  height: max-content;
  justify-content: center;
  align-items: center;
}

.replay .controls {
  position: absolute;
  bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  opacity: 0.2;
  transition: opacity 0.4s;
}

.camera_icons {
  position: absolute;
  z-index: 10;
  top: 25vh;
  right: 10vw;
  width: 9vw;
  height: 20vh;
  text-align: center;
  vertical-align: center;
}

.camera_flip {
  width: 9vw;
  margin-bottom: 2vh;
}

.screenshot {
  position: relative;
  border-radius: 20px;
  width: 92vw;
}

#zoom_photo_box {
  width: 95%;
}

#zoom_video_box {
  width: 95%;
}

.start_message {
  width: 100vw;
  font-size: 20rem;
  z-index: 20;
  opacity: 0.7;
  text-align: center;
  font-weight: bold;
  position:absolute;
  z-index:5;
}

#skippers_selection {
  padding-top: 0vh;
}

#div_btn_rounds {
  padding-top: 5vw;
}

.search_field {
  width: 6rem;
}

.img_search {
  width: 1rem;
  vertical-align: center;
}

.fa-icone {
  font-size: 4rem;
  color: #055daa;
}

.graph_canvas {
  background-color: #ddeeff;
  border: 1px solid black;
  margin:auto;
}

/*=====================================*/
/* Style for the archives/history page */
/*=====================================*/
.selected_row {
  background-color: var(--selected_row_color) !important;
}

.overall_table {
  margin:auto;
  text-align: center;
}

/* Style for regatta input table in results page */
.regatta_inputs td {
  width: 3em;
  text-align: center;
}

.regatta_inputs_dnf {
  background-color: grey;
  color: white;
}

/*
table.data_table thead .sorting {
    background-image: url("../images/sort_both.png");
    background-repeat: no-repeat;
    background-position: center right;
}
table.data_table thead .sorting_asc {
    background-image: url("../images/sort_asc.png");
    background-repeat: no-repeat;
    background-position: center right;
}
table.data_table thead .sorting_desc {
    background-image: url("../images/sort_desc.png");
    background-repeat: no-repeat;
    background-position: center right;
}
    */

.banniere {
  border-top: rgb(216, 30, 30) 5px solid;
  background: rgba(30, 104, 142, 0.911);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  display: flex;
  justify-content: space-around;
  padding: 30px;
  font-family: "Signika Negative", sans-serif;
}

.text-banniere p {
  font-size: large;
}

.button-banniere {
  padding-top: 15px;
}

.button-banniere a {
  border: solid 1px rgb(216, 30, 0);
  padding: 10px;
  background-color: rgb(216, 30, 0);
  border-radius: 7px;
  color: whte;
  text-decoration: none;
}

#div_btn_selection {
  float: right;
  text-align: center;
  top: 200px;
  right: 10px;
  margin-right: 0px;
}

.strikethrough {
  position: relative;
}

.strikethrough:before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  right: 0;
  border-top: 1px solid;
  border-color: inherit;

  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.keyboard_input {
  border: none;
  width: 4rem;
  height: 2rem;
  background: url(../images/keyboard_pc.png);
  background-size: 4rem 2rem;
  top: 0%;
}

/* Firefox old*/
@-moz-keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* IE */
@-ms-keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* Opera and prob css3 final iteration */
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.blink_image {
  -moz-animation: blink normal 1s infinite ease-in-out; /* Firefox */
  -webkit-animation: blink normal 1s infinite ease-in-out; /* Webkit */
  -ms-animation: blink normal 1s infinite ease-in-out; /* IE */
  animation: blink normal 1s infinite ease-in-out; /* Opera and prob css3 final iteration */
  background-color: red;
}
.form_group {
  display: inline;
  margin-bottom: 1rem;
}
.form_control {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  width:30rem;
}
.text_center {
  text-align: center;
}
.grid3c {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  text-align: center;
  align-items: center;
  padding-bottom: 0.8rem;
}
.grid2c {
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 1rem;
}
.grid_cell {
  text-align:left;
}

/*Tritable class and style */
i.fas {
  min-width: 20px;
}

.light {
  color: #999;
}

.active {
  color: #00d;
}
.site_branding_public {
  margin:auto;
  text-align:center;
  background-color:var(--site_branding_background);
  font-size:2rem;
}

/*********************************/
/* Style for the Sortable arrays */
/*********************************/
table.tritable {
    border-collapse: collapse;
    border: 1px solid black;
    margin:auto;
  }

table.tritable th {
    font-size: 1.3rem;
    padding: 4px;
    cursor: pointer;
    background-color: var(--site_branding_background);
}

table.tritable td {
    padding: 4px;
}

table.tritable td.nb {
    text-align: right;
}

