/* Material Design Colors */
:root {
    --primary-color: #4473c5;
    --background-color: #f5f5f5;
    --text-color: #333;
    --white-color: #ffffff;
    --light-gray: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    background-size: cover;
}

.no-margins {
    margin: 0 !important;
}

.background_image_cont {
    position: fixed;
    margin: 0;
    padding: 0;
    background-image: url("bg_image_compressed_mobile.webp");
    height: 100vh;
    width: 100vw;
    background-size: cover;
    top: 0;
    left: 0;
    z-index: 0;
    background-position: center;
}


/* Header */
.header-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 32px);
    z-index: 10;
    height: 5%;
}

.header-question h1{
    margin: auto;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 4px;
    font-family: "Allerta Stencil", serif;
    font-weight: 400;
    font-style: normal;
}

.tiles h2{
    background: #fbfbfb;
    color: #323232;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    margin: 0 0 10px 0;
}

.header-left, .ship-picture-header {
    height: calc(5vh + 16px);
}

.header-left, .header-right {
    display: flex;
}

.header-left {
    cursor: pointer;
}

/* Conteneur de l'image */
.image-container-header {
    margin-right: 10px;
}

/* L'image garde son ratio, ne dépasse pas la hauteur du parent */
.ship-picture-header {
    max-height: 100%; /* L'image ne dépasse pas la hauteur de son parent */
    width: auto; /* La largeur s'ajuste automatiquement pour conserver le ratio */
}




/* ---------- Index: Nouveautés carousel ---------- */
#index_news_carousel .tiles-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .udq-carousel{
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* adapte si tu as déjà un radius global */
  }
  
  .udq-carousel-track{
    display: flex;
    transition: transform 320ms ease;
    will-change: transform;
  }
  
  .udq-slide{
    flex: 0 0 100%;
    padding: 0; /* la tile-body gère déjà le padding général */
  }
  
  .udq-carousel-controls{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .udq-carousel-btn{
    border: none;
    background: rgba(255,255,255,0.12);
    color: inherit;
    padding: 4px 10px;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1;
    font-size: 20px;
  }
  
  .udq-carousel-btn:hover{
    background: rgba(255,255,255,0.20);
  }
  
  .udq-carousel-btn:disabled{
    opacity: 0.45;
    cursor: default;
  }
  
  .udq-carousel-dots{
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .udq-carousel-dot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.25);
    padding: 0;
  }
  
  .udq-carousel-dot.is-active{
    background: rgba(255,255,255,0.85);
  }
  
  /* Mobile: éviter que les contrôles prennent trop de place */
  @media (max-width: 420px){
    .udq-carousel-btn{ font-size: 18px; padding: 4px 8px; }
  }
  




.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    margin: auto;
    margin-left: 20px;
}

.menu-icon .bar {
    width: 24px;
    height: 3px;
    background-color: var(--white-color);
    transition: transform 0.4s;
}

.menu-icon.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7.5px, 7.5px);
}

.menu-icon.active .bar:nth-child(2) {
    transform: scale(0);
}

.menu-icon.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Side Menu */
.side-menu {
    color: var(--text-color);
    padding: 20px;
    padding-top: 20px;
    position: fixed;
    right: 0;
    z-index: 12;
    box-shadow: 2px 0px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    height: calc(95% - 32px);
    top: calc(5% + 32px);
    background-color: #ffffffee;
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.side-menu ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    margin: 0;
}

.side-menu ul li a:hover {
    color: #0f1524;
    background: #ffffff;
}

.side-menu ul li a img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.side-menu ul li a span {
    margin: auto;
    height: fit-content;
    margin-left: 0;
}

/* Dropdown Menu */
.side-menu ul li:hover .dropdown-content,
.side-menu ul li .dropdown-content:hover {
    display: block;
}

#user_page_actions_cont:hover .dropdown-content,
#user_page_actions_cont .dropdown-content:hover {
    display: block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-content {
    display: block;
    background-color: var(--white-color);
    padding: 0;
    list-style-type: none;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-left: 20px;
}

.dropdown-content li a {
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 4px;
    white-space: nowrap;
    display: block;
}

.dropdown-content li a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* User Section */
.user-actions {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-section .user-info {
    min-width: 0 !important;
}

.user-section .user-info p {
    margin: 0;
    font-size: 16px;
}

.user-section .user-actions a,
.user-section .login-signup a {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

.user-section .user-actions a:hover,
.user-section .login-signup a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}




.fixed_center_page {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    font-size: xxx-large;
}





.quiz-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.question {
    display: flex;
    flex-direction: column;
    /* margin: 0px 10px 50px 10px; */
    text-align: left;
    font-size: 18px;
}

.question:first-child {
    margin-top: 0;
}

.question_more {
    flex-direction: inherit;
    margin-top: 10px;
}

.question_more > label {
    margin: auto;
    margin-right: 10px;
}

.flex_direction_row {
    flex-direction: row !important;
}

#bateau-nom-index {
   border-radius: 10px 0px 0px 10px;
}

#begin-search {
    border-radius: 0px 10px 10px 0px;
    font-size: 16px;
    padding: 10px 20px;
}

.button_container {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    margin: 10px;
    gap: 10px;
}

.button_container>.start-button, .button_container>.buttons_line>a, .button_container>.fixed_info_text, .button_container>.submit-button>a {
    width: 100%;
}

.question h3 {
    margin-bottom: 10px;
}

.question_precision {
    font-size: small;
    color: #6c6c6c;
    margin-left: 10px;
    margin-top: 0px;
}

label {
    padding: 0;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

input,
select {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

select {
    cursor: pointer;
}

h1 {
    font-size: 24px;
}

.floating-button {
    position: fixed;
    top: 75%;
}

.buttons_line {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.small_padding {
    padding: 10px !important;
}

.start-button, .buttons_line>a, .fixed_info_text, .submit-button>a {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin: auto;
    text-align: center;
    box-shadow: 0px 0px 5px 1px #00000036;
}

.submit-button>a {
    width: -webkit-fill-available;
    margin-top: 5px;
    margin-bottom: 5px;
}

.start-button:hover, .submit-button>a:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.ident-button {
    position: relative;
    top: -40px;
    font-weight: bold;
}

.remove-button, .signaler-button {
    background-color: #ff550045;
    border: 2px solid #ff5600;
    color: #ff5600;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
    padding: 2px 3px;
}

.remove-button:hover, .signaler-button:hover {
    background-color: #ff550078;
    border: 2px solid #ff5600;
    color: #ff5600;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
}

.add-button, .replay-button {
    background-color: #ccfacc;
    border: 2px solid #01d500;
    color: #01d500;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
    padding: 2px 3px;
}

.add-button:hover, .replay-button:hover {
    background-color: #5ff65f;
    border: 2px solid #01d500;
    color: #01d500;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
}

.fixed_info_text {
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    width: fit-content;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: #B8B8B9 0px 0px 5px 0px;
    font-size: large;
    cursor: default;
}

.full-height-container {
    /*position: fixed;*/
    width: 100%;
    /*background: #f9f9f9; */
    /*overflow-y: scroll;*/
    height: calc(95% - 32px);
    top: calc(5% + 32px);
    margin: 0;
    padding: 0;
}

@media (min-width: 1000px) {
    .index-pres-tiles-columns-cont {
        display: flex;
        width: 820px;
        margin: auto;
        justify-content: space-between;   
    }

    .index-pres-tiles-one-column > .tiles {
        width: 820px;
    }
}

.full-width-container {
    width: 100% !important;
}

.ship-infos-container {
    padding: 0;
    position: relative;
    left: 50%;
    top: calc(5vh + 32px);
    transform: translateX(-50%);
}

.ship-picture-container {
    width: calc(100% - 20px);
    margin-top: 10px;
    overflow: hidden;
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

.ship-picture-container img {
    display: block;
    width: 100%;
    /*box-shadow: #B8B8B9 0px 5px 5px 1px;*/
}

/* Positioning for overlay report buttons */
.ship-picture-container { position: relative; }
.report-overlay-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    cursor: pointer;
    display: none; /* will be toggled by JS */
}
.report-overlay-validated {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 18px;
    display: none; /* toggled after success */
}
/* for lazy-loading placeholder */
.ship-picture[data-loaded="0"] { filter: blur(6px); }
.ship-picture[data-loaded="1"] { filter: none; transition: filter .25s ease; }

@keyframes roulis {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

img.ship-picture {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 5px;
}

.main-ship-picture {
    max-height: 70vh;
    margin: auto;
    width: 100% !important;
}

.top-image-floating-questions {
    position: absolute;
    padding: 5px;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    box-shadow: #B8B8B9 0px 0px 5px 1px;
}

.form-ship-questions {
    padding: 0px;
    margin-top: 20px;
}

.botto-ads-container {
    background: black;
    height: inherit;
    display: flex;
    color: white;
    justify-content: center;
}

.submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    margin-bottom: 0;
    flex-direction: column;
}

.ship-correction-container, .total-results-container, .essais_cont, .indices_cont {
    border: 0px solid black;
    padding: 10px;
    margin: 0px;
    background: white;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: #B8B8B9 0px 0px 5px 1px;
}

.ship-correction-container-head {
    background: #f3f3f3;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #00000047;
    cursor: pointer;
    padding-left: 20px;
    border-radius: 10px 10px 0 0;
}

.ship-correction-container-head-title {
    text-align: center;
    display: flex;
    align-items: center;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
}

.country-chip:hover {
    background: rgba(255,255,255,0.22);
}

.country-chip-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255,255,255,0.08);
    border-style: dashed;
}


.ship-correction-container-head-arrow {
    padding: 5px;
    font-size: 1.5em;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    align-items: center;
    display: flex;
    justify-content: center;
    background: #fff8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: rotateZ(90deg);
}

.ship-correction-container-body {
    padding-bottom: 10px;
}

.arrow-right {
    transform: rotateZ(0deg);
}

.tiles {
    border: 0px solid black;
    padding: 0px;
    margin: 10px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: #B8B8B9 0px 0px 5px 1px;
    position: relative;
    z-index: 1;
    /*overflow: hidden;*/
}

.index_pres_ul > li{
    margin-bottom: 20px;
}

.full-height-container > .tiles, .index-pres-tiles-one-column {
    margin-top: calc(5vh + 32px + 10px);
}

.full-height-container > .tiles ~ .tiles {
    margin-top: 0vh;
}

.full-height-container > .index-pres-tiles-one-column ~ .index-pres-tiles-one-column {
    margin-top: 0vh;
}

.tiles-head {
    padding: 10px;
    border-bottom: 2px solid #f2f2f2;
    margin: 10px;
}

.no-margins-no-paddings {
    margin: 0;
    padding: 1px;
}

.padding-20 {
    padding: 20px !important;
}

.margin-10 {
    margin-left: 10px !important;
    margin-right: 10px !important;
    margin: 10px;
    width: calc(100% - 20px) !important;
}

.tiles-head-numbers-cont {
    display: flex;
    justify-content: space-around;
    padding: 5px;
    gap: 5px;
}

.tiles-head-number {
    width: -webkit-fill-available;
    padding: 5px;
    background: #4473c5;
    color: white;
    border-radius: 7px;
    text-align: center;
    font-size: x-large;
    border: 2px solid #4473c5;
    width: 100%;
    transition: 0.3s;
}

.chosen-number {
    background: white;
    color: #4473c5;
    border: 2px solid #4473c5;
    width: 200%;
}

.tiles-title, .tiles-centered-title {
    font-weight: bold;
    font-size: large;
}

.tiles-centered-title {
    background: #f2f2f2;
    border-radius: 5px;
    padding: 20px;
    margin: 5px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: "Allerta Stencil", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

.tiles-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.tiles-body table.stats {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* keeps within parent */
  }
  
  /* Tight numeric columns, flexible username column */
  .tiles-body table.stats col.col-id   { width: clamp(70px, 12%, 110px); }
  .tiles-body table.stats col.col-hits { width: clamp(70px, 12%, 110px); }
  /* Username gets the remainder */
  .tiles-body table.stats col.col-username { width: auto; }
  
  .tiles-body table.stats th,
  .tiles-body table.stats td {
    padding: 6px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  

.tiles-body h3 {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #3b3b3b;
    padding-bottom: 10px;
    margin-top: 5px;
}

.information_container {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #0000000d;
    line-break: normal;
    font-size: small;
    text-align: right;
    gap: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    align-items: center;
}

.information_container :first-child {
    margin-right: 0;
    line-break: strict;
    /* width: 33%; */
    min-width: 33%;
    text-align: end;
}

.information_container a {
    width: auto !important;
    text-align: left !important;
    margin: 0 !important;
    overflow-wrap: break-word;
}

.information_container ul {
    margin: 0;
    padding: 0;
    width: -webkit-fill-available;
    text-align: -webkit-right;
    list-style-type: none;
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.information_container li {
    margin: 0 !important;
    padding: 0 !important;
}

.indices_positifs{
    border-radius: 0;
    border-left: 6px solid green;
    box-shadow: white 0 0 0 0;
}

.indices_negatifs{
    border-radius: 0;
    border-left: 6px solid red;
    box-shadow: white 0 0 0 0;
}

.total-result-cont {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Allerta Stencil", serif;
    padding: 30px;
    font-size: 6rem;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: inset #b8b8b8 0px 0 5px 1px;
}

.infos {
    display: flex;
    justify-content: space-between;
}

.infos :first-child{
    margin-right: 10px;
}

.infos-correction {
    display: block;
    margin-bottom: 10px;
}

.infos-correction :nth-child(2) {
    display: flex;
    justify-content: space-between;
}

.result-correct-answer {
    color: green;
    font-weight: bold;
}

.result-wrong-answer {
    color: red;
    font-weight: bold;
    position: relative;
    text-decoration: line-through;
}

.result-answers-cont {
    display: flex;
    flex-direction: column;
}


.result-container {
    margin: 10px;
}

.search-container {
    padding: 50px 10px 10px 10px;
    margin: 10px;
    background: white;
    box-shadow: #B8B8B9 0px 0px 5px 1px;
    border-radius: 10px;
}


.user-greetings {
    display: flex;
    flex-direction: column;
}





.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}








/* radio */

/* Style for the radio container */
.radio-container {
    display: flex;
    flex-direction: column;
}

.radio-container.row {
    flex-direction: row;
    justify-content: space-between;
}

/* Style for each radio input */
.radio-container input[type="radio"] {
    display: none;
    /* Hide the default radio button */
}

/* Style for the custom radio button */
.radio-container label {
    cursor: pointer;
    display: block;
    border: 0px solid black;
    padding: 10px;
    margin: 0px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: #B8B8B9 0px 0px 5px 1px;
    transition: 0.2s;
    transform: scale(0.95);
}

.radio-container.row label {
    max-width: 47%;
}

.radio-container label div:first-child{
    padding: 10px;
    font-size: large;
    font-weight: bold;
    display: flex;
}

/* Change background and border color when radio is checked */
.radio-container input[type="radio"]:checked+label {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1);
}



.prop_quizz_div {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    border: 0px solid black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1f2940;
    box-shadow: 0 0 6px rgba(0,0,0,0.08);
    cursor: pointer;
}

.prop_quizz_div:hover {
    background:#121c30;
}

.prop_quizz_name {
    font-size: large;
    padding: 0px;
    margin-left: 10px;
    color: var(--white-color);
    font-weight: 700;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    margin-right: 10px;
}

.prop_quizz_nb_questions {
    padding: 0px;
    margin-left: 10px;
    color: var(--white-color);
    opacity: 0.8;
    font-size: 0.95em;
}

.badge-outline {
    width: 32px;
    height: 32px;
    background: white;
    color: #1f2940;
    border-radius: 5px;
    text-align: center;
    /* vertical-align: middle; */
    display: flex;
    justify-content: space-evenly;
    position: absolute;
    right: 30px;
}

.badge-outline > span {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}




.daily_quizz_fixed_cont {
    margin-top: calc(5vh + 32px);
    padding-bottom: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
    background: linear-gradient(180deg, #7d7d7d, transparent);
    position: relative;
}

.fixed_infos {
    margin-top: 0px;
    display: flex;
    justify-content: space-around;
    position: fixed;
    z-index: 10;
    width: 100%;
}


/* Carousel wrapper */
#carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    overflow: hidden;
}

/* Carousel container */
#carousel-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: auto;
    display: flex;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    will-change: transform;
}

/* Custom scrollbar */
#scrollbar {
    background-color: white;
    padding: 10px;
    margin: 10px;
    margin-top: 0;
    margin-bottom: -20px;
    border-radius: 10px;
}

#slider-numbers {
    display: flex;
    justify-content: space-between;
}


/* Zoom effect */
.zoomable {
    position: relative;
    overflow: hidden;
    transition: 0.1s;
}

.zoomable img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.zoomed {
    cursor: zoom-out;
    transition: 0s;
    transform: scale(var(--zoom-factor)); /* Zoom factor */
}



.essais {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background: #ff3d007d;
    border-radius: 10px;
}

/* Calculer la couleur de fond en fonction du pourcentage de Levenshtein */
.essais[data-distance] {
    --distance1: attr(data-distance);
    --distance2: calc(var(--distance1) / 100);

    /* Ajustement de la plage de couleur (0 à 60) pour passer du rouge foncé à l'orange */
    background-color: hsl(calc(30 + var(--distance2) * 30), 100%, 50%);
    /* Utilisation de HSL pour varier la teinte entre rouge foncé (30) et orange (60) */
}

.essai_text {
    font-weight: bold;
}

.essai_valide {
    background: rgb(82, 203, 82) !important;
}

.indice {
    margin-bottom: 10px;
    padding: 10px;
    background: #efefef;
    border-radius: 10px;
}


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

#congrats_box, #no_congrats_box, #connect_box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 340px;
    max-height: 90vh;
    overflow-y: scroll;
}

#connect_box {
    overflow-y: auto;
}

#congrats_message, #no_congrats_message {
    font-size: 24px;
    margin-bottom: 20px;
}

#essais_final, #temps_mis_pour_trouver, #rang_user {
    font-size: xx-large;
    vertical-align: sub;
}

#message_stats_succes {
    padding: 30px;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: inset #b8b8b8 0px 0 5px 1px;
}

#congrats_link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}





#derniers_essais_flottant {
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(0);
    /* Translation initiale vers le haut */
    background-color: #ff8c00;
    /* Couleur de fond vive */
    color: #ffffff;
    /* Couleur du texte vive */
    padding: 20px;
    border-radius: 100px;
    opacity: 0;
    font-size: large;
    /* Opacité initiale à 0 */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    /* Transition pour la translation et l'opacité */
}

#derniers_essais_txt {
    text-align: center;
}

#derniers_essais_valeur {
    font-size: 24px;
}















.classement-container {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 0px;
}

.classement-container > h4 {
    text-align: center;
    margin-top: 0;
}

.classement-list {
    list-style-type: none;
    padding: 0;
    gap: 10px;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.centered {
    margin: auto !important;
}

.top-player {
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
}

.rank_cont {
    padding: 10px;
    font-size: 1em;
    border-radius: 10px;
    max-width: 3em;
    height: 1em;
    align-items: center;
    display: flex;
    justify-content: center;
    background: #fff8;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    font-weight: bold;
}

.classement_user_cont {
    margin-right: 20px;
    width: -webkit-fill-available;
    font-size: small;
}

.classement_user_cont_top {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: #53535326 2px solid;
    font-weight: bold;
}

.classement_user_cont_bottom {
    display: flex;
    justify-content: space-between;
}

.gold {
    background: linear-gradient(160deg, #FFD700 0%, transparent 50%, #FFD700 150%);
}

.silver {
    background: linear-gradient(160deg, #C0C0C0 0%, transparent 50%, #C0C0C0 150%);
}

.bronze {
    background: linear-gradient(160deg, #dd8c3c 0%, transparent 50%, #dd8c3c 150%);
}

.warning-message {
    background-color: rgb(255, 126, 45);
}

.position {
    font-size: 1.5em;
    font-weight: bold;
}

.nom {
    flex: 1;
    margin: 0 10px;
}

.essais,
.temps {
    color: #000;
    /* Couleur pour les essais et temps */
}

.position:not(.gold):not(.silver):not(.bronze) {
    color: #000;
    /* Couleur pour les numéros 4 et 5 */
}


.editable-field {
    width: 400px !important;
    text-align: left !important;
    height: 100px;
}

.lang_selector_cont {
    height: 5vh !important;
}

#lang_selector {
    height: 5vh;
    padding: 0px;
    background-color: white;
    text-align: center;
}







/* Custom radio button toggle */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: auto;
    margin-left: 0;
    margin-right: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3; /* Blue theme */
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.logos_disco {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo_disco {
    font-size: 40px;
    cursor: pointer;
    color: #2196F3; /* Blue theme */
}

.logo_disco.active {
    color: #2196F3; /* Blue theme */
    font-weight: bold;
}





.ident-header {
    position: fixed;
    top: 0;
    width: 100%;
    color: #eef4fb;
    height: 100vh;
    transition: height 0.1s ease, padding 0.1s ease, flex-direction 0.1s ease;
    z-index: 1000;
}

.ident-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    height: 50%;
    max-height: 80vw;
    z-index: 2;
}

.ident-title {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 2em;
    letter-spacing: 12px;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    margin: 0;
    width: max-content;
}

.ident-content {
    padding: 2rem;
    opacity: 1;
    margin-top: 120vh;
}

.ident-section {
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header_water {
    width: 100%;
    height: 50%;
    margin: 0;
    overflow: hidden;
    background-size: cover;
    align-items: end;
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 1;
}

.header_water p {
    transform: rotateZ(90deg);
    font-size: 3em;
}

.header_sky {
    position: relative;
    width: 100%;
    height: 50%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background: linear-gradient(0deg, transparent, 100%, #4473c5);
}

.header_sky h1 {
    font-family: "Allerta Stencil", serif;
    font-weight: 400;
    font-style: normal;
}


.header_moving_boats {
    position: relative;
    height: 30px;
    width: 100px;
    background-image: url(warship_logo.jpg);
    background-size: contain;
}




/* Introduction Styling */
.daily-quizz-intro > p {
    padding: 0px;
}

.daily-quizz-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quizz-rules {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.quizz-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
}

.big-button {
    padding: 15px 30px;
    font-size: 1.2rem;
}

.button-subtext {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.8;
}

.login-prompt {
    text-align: center;
    margin-bottom: 60px;
}

.auth-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    background: #4a6fa5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.auth-button.secondary {
    background: #6c757d;
}

/* Results Styling */
.quizz-results {
    padding: 20px;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #4a6fa5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
}

.score-label {
    font-size: 0.9rem;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    width: 150px;
}

.answers-review {
    margin: 30px 0;
}

.answer-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.answer-item.correct {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
}

.answer-item.correct-country-wrong-class {
    background: rgba(215, 185, 52, 0.1);
    border-left: 4px solid #d9be3a;
}

.answer-item.incorrect {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
}

.answer-image {
    width: 100px;
    height: 60px;
    margin-right: 15px;
}

.answer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.answer-details {
    flex: 1;
}

.answer-country, .answer-class {
    margin-bottom: 5px;
}

.answer-label {
    font-weight: bold;
    margin-right: 5px;
}

.user-answer {
    margin-right: 10px;
}

.correct-answer {
    color: #4CAF50;
    font-weight: bold;
}

.answer-item.incorrect .user-answer {
    color: #F44336;
    text-decoration: line-through;
}

.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.share-button {
    padding: 8px 15px;
    background: #3b5998;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.next-quizz-timer {
    margin-top: 10px;
    font-size: 0.9rem;
}

.leaderboard-preview {
    margin-top: 30px;
}

.leaderboard-preview ol {
    list-style-type: none;
    padding: 0;
}

.leaderboard-preview li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-preview .user-position {
    font-weight: bold;
    color: #4a6fa5;
}

.user-position {
    display: flex;
    justify-content: center;
}


/* Styles pour les séparateurs */
.year-separator {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #2c3e50;
    background-color: #ecf0f1;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    list-style-type: none;
}

.month-separator {
    text-align: center;
    font-weight: 600;
    color: #34495e;
    background-color: #f8f9fa;
    padding: 8px;
    margin: 10px 0;
    border-left: 3px solid #3498db;
    list-style-type: none;
}

.missing-days {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9em;
    padding: 5px;
    margin: 5px 0;
    border-radius: 3px;
    list-style-type: none;
}



.ship-picture-date {
    margin-right: 5px;
    text-align: right;
    position: relative;
    bottom: 35px;
    height: 0;
    max-height: 0;
    right: 10px;
    color: white;
}
  


.error-panel {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin: 15px;
}

.error-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #721c24;
    padding: 0;
    min-width: 30px;
}

.error-close:hover {
    color: #491217;
}


.daily-streak-banner {
        /* display: flex
; */
    /* gap: 12px; */
    align-items: center;
    padding: 10px;
    /* border-radius: 8px; */
    margin: 10px 0;
    /* font-weight: 600; */
    text-align: center;
  }
  .daily-streak-banner.streak-ok  { background: rgba(76, 175, 80, 0.12); border-left: 4px solid #4CAF50; }
  .daily-streak-banner.streak-miss{ background: rgba(244, 67, 54, 0.10); border-left: 4px solid #F44336; }
  
  .daily-streak-status { margin-right:auto; }
  .daily-streak-count  { opacity:0.9; }



/* Résumé compact par jour */
.history-day-header .history-day-label {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
/* Grille 2x2 pour les photos */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 10px 0px 10px;
}
.photos-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;     /* jolis carrés */
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 0 3px rgba(0,0,0,.15);
}
/* masquage contrôlé par JS */
.hidden { display: none !important; }
.lazy-photo.is-hidden { visibility: hidden; } /* évite l'icône "image cassée" */

/* Menu kebab */
.quiz-actions { position: relative; margin: 6px 0; }
.kebab-btn {
    background: #fff; border: 1px solid #ddd; border-radius: 6px;
    width: 34px; height: 34px; line-height: 30px; text-align: center;
    font-size: 18px; cursor: pointer;
}
.kebab-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid #ddd; border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    padding: 6px 0; list-style: none; margin: 0; min-width: 180px;
    display: none;
    z-index: 5;
}
.kebab-menu.open { display: block; }
.kebab-menu li { margin: 0; }
.kebab-menu a, .kebab-menu button {
    display: block; width: 100%; text-align: left;
    background: transparent; border: 0; padding: 10px 12px;
    font-size: 14px; text-decoration: none; color: #333; cursor: pointer;
}
.kebab-menu a:hover, .kebab-menu button:hover {
    background: #f5f7fb;
}
  

/************  USER PAGE — HISTORIQUE COMPACT & KEBAB FIX  ************/

/* 1) En-tête jour : ligne compacte (date • daily ✓/✗ • 🎮 xN) */
.history-day-header {
    padding: 8px 12px !important;
    background: #f7f7f7;
    border-bottom: 1px solid #eaeaea;
  }
  .history-day-header .history-day-label {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .history-day-details {
    padding: 8px 12px !important;
  }
  
  /* 2) Résumé du quizz journalier en version compacte (uniquement dans l'historique)
     NB: on scope sous .history-day-details pour ne PAS impacter le classement global */
  .history-day-details .classement-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
  }
  .history-day-details .classement-list .top-player {
    /* background: transparent; */
    box-shadow: none;
    padding: 4px 8px;
    margin: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
  }
  .history-day-details .rank_cont {
    padding: 4px 6px;
    font-size: 14px;
    min-width: 2.2em;
    height: auto;
    margin-right: 8px;
  }
  .history-day-details .classement_user_cont {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
  }
  .history-day-details .classement_user_cont_top,
  .history-day-details .classement_user_cont_bottom {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .history-day-details .classement_user_cont_top span,
  .history-day-details .classement_user_cont_bottom span {
    font-size: 13px;
    line-height: 1.1;
  }
  

  .quiz-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 50;
  }
  .kebab-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    line-height: 30px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 60;                  /* au-dessus du contenu de la carte */
  }
  .kebab-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    min-width: 180px;
    display: none;
    z-index: 100;                /* passe au-dessus des .tiles (z-index:1) */
  }
  .kebab-menu.open { display: block; }
  .kebab-menu li { margin: 0; }
  .kebab-menu a, .kebab-menu button {
    display: block; width: 100%; text-align: left;
    background: transparent; border: 0; padding: 10px 12px;
    font-size: 14px; text-decoration: none; color: #333; cursor: pointer;
    z-index: 101;
}
  .kebab-menu a:hover, .kebab-menu button:hover {
    background: #f5f7fb;
  }
  

  .photos-grid img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 0 3px rgba(0,0,0,.15);
  }
  .hidden { display: none !important; }
  .lazy-photo.is-hidden { visibility: hidden; } /* évite l’icône d’image non chargée */
  

  
  /* 6) Flèche du pliant : plus discrète */
  .ship-correction-container-head-arrow {
    font-size: 1.1em;
    box-shadow: none;
    background: transparent;
    text-transform: capitalize;
  }
  
  /* 7) Petits utilitaires */
  .history-chip {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2e46a6;
    font-size: 12px;
    font-weight: 700;
  }

/* === KEBAB: garantir le menu par-dessus toutes les cartes et tiles === */
  
  /* Bouton kebab toujours cliquable au-dessus du contenu de la carte */
  .quiz-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2100;
  }
  
  /* Le menu lui-même passe au-dessus de tout (y compris d'autres tiles) */
  .kebab-menu {
    position: absolute;     /* on garde l'ancrage visuel sur la carte */
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    min-width: 180px;
    display: none;
    z-index: 9999;          /* au-dessus des .tiles et des autres cartes */
  }
  .kebab-menu.open { display: block; }
  
  .countries-grid, .result-sub-container {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
    gap:10px;
    margin-top:10px
    }
  .country-chip{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:12px;background:#0f1524;color:#e8eefc;text-decoration:none;border:1px solid #1f2940}
  .country-chip:hover{background:#121c30}
  .country-name{font-weight:600}
  .country-counts .badge{margin-left:8px;opacity:.85}
  .empty-info{opacity:.7}
  .popular-list{color:white;list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:10px}
  .popular-item{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #1f2940;background:#0f1524;border-radius:12px}
  .popular-rank{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#4a6fa5;font-weight:700}
  .popular-info{flex:1 1 auto}
  .popular-title{font-weight:700;margin-bottom:4px}
  .popular-meta{opacity:.8;font-size:.95em}
  .popular-cta .start-button{padding:8px 10px}

  .worldmap { 
    width: 100%; 
    height: 420px; 
    background: #0f1524; 
    border: 1px solid #1f2940; 
    border-radius: 12px; 
    margin-top: 10px;
  }
  .map-legend {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px; opacity: .9;
  }
  .legend-dot {
    display:inline-block;width:12px;height:12px;border-radius:50%;
    vertical-align:middle;margin-right:6px;border:1px solid #1f2940;
  }
  .legend-on  { background:#4ad6ff; }
  .legend-off { background:#1f2940; }

  .chart-container { position: relative; height: 340px; margin: 20px 0; }
    table.stats td, table.stats th { white-space: nowrap; padding: 4px 8px; }

/* KPI cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
    margin: 10px;
}
.kpi-card {
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.kpi-title { font-size: 13px; opacity: 0.8; margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 700; line-height: 1; }
.kpi-sub   { font-size: 12px; opacity: 0.7; margin-top: 6px; }
@media (max-width: 900px){ .kpi-grid { grid-template-columns: 1fr; } }
  
  



/* Responsive adjustments */
@media (max-width: 768px) {
    .score-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .answer-item {
        flex-direction: column;
    }
    
    .answer-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }
}


.lds-ring-cont {
    position: fixed;
    z-index: 1000;
    top: 50%;
    transform: translateY(-50%);
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    display: flex
}

.lds-ring,
.lds-ring div {
  box-sizing: border-box;
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4473c5;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid currentColor;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}




/*
#time_left_quizz {
    animation: pulse 1s infinite;
}
*/

@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: var(--primary-color);
    }

    50% {
        transform: scale(1.2);
        background-color: #3798ffe9;
    }

    100% {
        background-color: var(--primary-color);
        transform: scale(1);
    }
}



/*discover page*/
.logos {
    display: flex;
    justify-content: space-between;
    font-size: xxx-large;
}

.logos .active {
    border: 5px solid #4473c5;
    background: #4473c52b;
}

.logos .logo {
    cursor: pointer;
    background: #4473c52b;
    border-radius: 50%;
    box-shadow: 0px 0px 5px 1px #c7c7c7;
}


.cont_back_img {
    display: flex;
    flex-direction: row;
    position: relative;
}
.background_image_quizz_quart {
    max-width: 50%;
    opacity: 1;
    object-fit: cover;
}


table { 
    border-collapse: collapse; 
    width: 100%; 
}
th, td { 
    border: 1px solid #ddd; 
    padding: 8px; 
    text-align: left; 
}
th { 
    background-color: #f2f2f2; 
}
tr:nth-child(even) { 
    background-color: #f9f9f9; 
}
.chart-container { 
    position: relative; 
    height: calc(100% - 40px);
    width: 100%;
}




/*LARGE SCREENS */

@media screen and (min-width: 400px) {

    .background_image_cont {
        background-image: url("bg_image_compressed.webp");
    }

    /*
    .full-height-container{
        width: 400px;
    }
    */
    .main-ship-picture {
        width: auto !important;
        max-width: 98vw;
    }

    .ship-infos-container {
        width: 400px;
    }

    .tiles {
        width: 400px;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .tiles_no_set_width {
        width: auto !important;
    }

    .fixed_infos {
        width: 400px;
        transform: translateX(-50%);
        left: 50%;
    }

    /* Add more styles for larger screens as needed */
}

@media screen and (min-width: 450px) {

    .header_sky h1 {
        font-size: 3em;
    }

    /* Add more styles for larger screens as needed */
}

@media screen and (min-width: 600px) {

    .header-question h1 {
        font-size: 24px;
        letter-spacing: 10px;
    }

    .header_sky h1 {
        font-size: 5em;
    }

    /* Add more styles for larger screens as needed */
}



.empty-50px {
    padding: 0;
    margin: 0;
    margin-bottom: 50px;
    min-height: 50px;
}

.empty-120vh {
    padding: 0;
    margin: 0;
    margin-bottom: 120vh;
}