/*  default.css

    This page is made of 3 differents section : 
        
    - main page 
    - carousel
    - visualizer
    - global click event handling (clickout/ post btn/ lower container btn) 
    
    part of the event listeners (especially the global) are in the 
    index.js file in order to be reused in the other pages.
*/



/* reset */

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 380px;
}

button {
 border: none;
}


/* POPUP message  */
.popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0.9; /* Fully visible initially */
    transition: opacity 3s ease-out;
}

/* PDF CONDITIONS AND TERMS*/
/* Overlay */
.conditionsAndTerms {
    display: none;
    position: fixed; /* Stays fixed across the entire scrollable page */
    top: 0;
    left: 0;
    width: 100%; /* Covers full width */
    height: 100vh; /* Covers full viewport height */
    z-index: 10;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: backgroundFade 4s forwards;
}

@keyframes backgroundFade {
  0% {
    background-color: rgba(255, 255, 255, 0.5); /* Lighter starting background */
  }
  100% {
    background-color: rgba(63, 62, 62, 0.90); /* Darker final background */
  }
}

/* Content Container */
.conditionsContent {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(80, 79, 79, 0.2);
    text-align: center;
    justify-content: start; 
    align-items: center;
    position: relative;
    height: 300px;
    width: 600px;
    padding: 10px; 
}

.conditionsContent h2 {
    font-weight: lighter;
    font-size: 14px;
}

.conditionsContent .popupButtons  {
    height: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.conditionsContent .bubbleBtn  {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 10px;
    top: 10px;
    margin-top: 0px; /* this line is reserved to login page in order to delete a conflict*/
}

.conditionsContent .bubbleBtn img {
    width: 100%;
    height: auto;
}

.pdf {
    display: flex;
    justify-content: center; /* Optional: Center content horizontally */
    align-items: center; /* Optional: Center content vertically */
    width: 90%; /* Adjust container width */
    height: 80%; /* Adjust container height */
    border: solid 1px rgba(80, 79, 79, 0.644);
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    margin: auto; /* Center the container within the parent */
    background-color: #fff; /* Optional: Add a background color */
}

.pdf img {
    margin-top: auto;
    position: relative;
    height: auto;
    width: 100%; /* Ensure the image fits within the container width */
    object-fit: contain; /* Maintain aspect ratio */
}




/* POP UP WINDOW FORM SUBMISSION */
.cookieWindow {
    display: flex;
    position: fixed; /* Stays fixed across the entire scrollable page */
    top: 0;
    left: 0;
    width: 100%; /* Covers full width */
    height: 100vh; /* Covers full viewport height */
    z-index: 9;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: backgroundFade 4s forwards;
}

.popUpWindow {
  display: none;
  position: sticky;
  background-color: #3f3e3ea3;
  width: 100vw;
  height: 100vh;
  z-index: 50000;
  top: 0; 
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.hidden {
    display: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.popup-content h2 {
  margin: 0 0 15px;
  font-size: 24px;
  color: #333;
}

.popup-content .alertMessage {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
}

.popupButtons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.popup-content button {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  margin: 0 10px;
  transition: background-color 0.3s ease;
}

.link-button {
    background: none; /* Removes background styling */
    border: none; /* Removes border */
    color: rgb(127, 127, 133); /* Makes the text blue like a link */
    text-decoration: underline; /* Adds underline like a link */
    cursor: pointer; /* Changes cursor to pointer */
    font-size: inherit; /* Matches the surrounding text size */
    font-family: inherit; /* Matches the surrounding text font */
    padding: 0; /* Removes padding to make it look flat */
}

.link-button:hover {
    color: rgb(46, 46, 48); /* Optional hover effect */
    text-decoration: none; /* Optional hover effect */
}

/* HEADER*/

header {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

header img {
    min-width: 250px;
    width: 30%;
    height: auto;
}

/* Menu */
nav {
    height: 40px;
    background-color: black;
    display: flex;
    justify-content: flex-end; /* Ensure space between items */
    align-items: center;
    position: sticky; /* Makes the nav sticky */
    top: 0; /* Sticks the nav to the top of the window */
    z-index: 5; /* Ensures the nav stays above other content */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    width: 95%;
    align-items: center;
}

nav ul li {
position: relative;
z-index: 1;
}


nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: lighter;
}

nav ul li a:hover {
    transform: scale(1.1) translateY(-2px); /* Scale with a slight upward shift */
    font-weight: bolder;
    transform-origin: center; /* Scale from the center */
}


.custom-select {
    margin-left: auto;
    padding: 10px;
}

option:disabled {
    color: rgb(255, 255, 255); /* Text color */
    background-color: #676262; /* Light red for disabled option */
  }

/* Burger Menu */
.burger {
    height: 40px;
    display: none; /* Hide by default */
    cursor: pointer;
    background-color: black;
}

.burger img {
    width: 25px;
    height: auto;
}

.burger img:hover {
    transform: scale(1.2); /* Slightly larger icon without affecting layout */
    transform-origin: center;
}

.current {
    font-weight: bolder;
    pointer-events: none;  /* Disable clicking on the link */
}

.active-dot {
    width: 10px;
    height: 10px;
    background-color: #fff; /* white color for the dot */
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px; /* Space between text and dot */
    animation: bounce 1s ease-in-out infinite; /* Apply bouncing animation */
}

/* Define the bouncing effect */
@keyframes bounce {
    0% {
        transform: translateY(0); /* Initial position */
    }
    50% {
        transform: translateY(-5px); /* Move up */
    }
    100% {
        transform: translateY(0); /* Return to original position */
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        justify-content: center;
        position: absolute; /* Position it absolutely within the nav */
        top: 40px; /* Adjust top position to be just below the nav */
        left: 0;
        background-color: black; /* Maintain black background */
        z-index: 1000; /* Ensure it stays above other content */
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-bottom: 20px;
    }

    nav ul li {
        margin-top: 15px;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .burger {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background-color: black; /* Ensure burger background remains black */
    }

    .custom-select {
        position: absolute;
        right: 20px;
        text-align: right;
    }
}

/* Body */
.content {
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
    justify-content: center;
    align-items: center;
    width: 80%;
    align-self: center;
    padding-top: 10px;
    padding-bottom: 40px;
    min-width: 390px;
}

h1 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: large;
}


/* Intro Container */
.spanou {
    font-weight: bold; 
    font-size: 18px; 
    color: rgb(40, 40, 40); 
}

.parentIntroCtn {
    display: flex;
    flex-direction: column;
    width: 90%;
    min-height: 50vh;
    align-self: center;
    justify-content: center;
    align-items: center;
}

.introx {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.introx >p {
    font-size: 16px;
    line-height: 1.8;  
    text-align: justify;
    align-items: center;
    padding: 20px;
}







/* BUTTONS */

.default-btn-group {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.default-btn-group form {
    display: inline-block;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 35px;
}

.bubbleBtn {
    display: inline-block;
    background-color: black;
    color: white;
    border-radius: 50% 50%;
    text-align: center;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px; 
}


.bubbleBtn img {
    width: 15px;
    height: auto;
}

.longBtn {
    background-color: black;
    color: white;
    font-size: 1rem;
    border-radius: 18px 18px;
    padding: 5px;
    text-align: center;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    margin: 20px;
}

.longBtn:hover {
    width: 160px;
    transition: ease-in 0.2s;
    font-weight: bold;
    transform-origin: center;
}

.bubbleBtn:hover {
    transform: scale(1.2);
    transition: transform 0.3s
}


/* INTRO FORMS*/

.formx {
    display: none;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    padding: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3); 
    border-radius: 12px;   
}

.formx h2 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: medium;
}

.formx form {
    width: 100% ;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    gap: 5px;
    text-align: center;
}

form img {
    width: 15px;
    height: auto;
}


.form-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
}




.form-group input {
    width: 80%;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    appearance: auto;
    -webkit-appearance: checkbox;  /* For Safari */
    background-color: #ddd;  /* Default background color (gray) */
    border: 2px solid #aaa;  /* Border color */
}


.form-group textarea {
    width: 80%;
}

.form-group label {
    width: 25px;
}


.form-group-last {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
} 

/* Style the custom file upload label */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
}

/* Hide the default file input */
.file-upload-wrapper input[type="file"] {
    display: none;
}
  
.file-error-message {
    color: rgb(0, 0, 0); 
    display: none;
    font-size: 8px;
    justify-content: center;
}

.custom-file-upload {
  display: inline-block;
  background: #000000; /* Green background */
  color: white; /* White text color */
  padding: 5px; /* Padding around the text */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
}

.custom-file-upload img {
  width: 10px;
  height: auto;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 95%;
    padding: 15px;
}

.socials {
    display: flex;
    padding: 5px;
    flex-direction: row;
    width: 30%;
    height: 80px;
    align-items: center;
    gap: 20px;
}

.socials img {
    width: 100%;
    height: auto;
}

.upper-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 60%;
    gap: 30px;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    width: 70%;
    height: auto;
}

.address {
    display: flex;
    flex-direction: column;
    height: 80px;
    gap: 20px;
    justify-content: center;
    border-left: solid white 2px;
    padding-left: 30px;
    
}

.address div {
    display: flex;
    align-content: center;
    gap: 10px;
}

.address img {
    width: 15px;
    height: auto;
}

.address a {
    color: white;
    text-decoration: none;
}

.address div:hover {
    font-weight: lighter;
    text-decoration: none; /* Keeps the underline removed on hover */
}

.lower {
    display: flex;
    padding: 5px;
    flex-direction:column;
    align-items: center;
    width: 90%;
}

.copyright {
    font-size: 60%;
    text-align: center;
    color: grey;
}


/* ALL PAGES */


a {
    color: gray;
}

@media screen and (max-width: 600px) {
    th, td {
        font-size: 9px; /* Reduce font size on small screens */
    }
    .ButtonGrp button {
        width: 18px;
        height: 18px;
    }
}

/* Responsive */
@media screen and (max-width: 1110px) {
    .search-form-container {
        height: 120px;
        width: 100%;
        
    }

    .search-form-container >form {
        flex-direction: column;
        justify-content: space-around;
        padding-top: 20px;
        width: 100%;
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .search-group {
        width: 100%;
        justify-content: flex-start;
    }

}