.round-button {
    width: 32px;
    height: 32px;
    margin-top: 2px;
    margin-left: 5px;
    border-radius: 50px;
    align-items: center;
    background-color: #FFBD59;
    z-index: 99;
}

#top-row {
    top: 10px;
    position: absolute;  /* Keeps the entire row positioned absolutely */
    display: flex;       /* Enables Flexbox layout */
    align-items: center; /* Vertically centers child elements */
    width: 18vw;
    left: 0;
    gap: 0.5rem;           /* Optional: Adds space between elements */
}

#home-button {
    z-index: 99;
}

#home-button .button-icon {
    opacity: 65%;
    width: 20px;
    height: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    z-index: 1500;
    border: 4px solid #536072;
    border-radius: 60px;
}

.switch > span {
    position: absolute;
    top: 14px;
    pointer-events: none;
    font-family: Arial, 'Helvetica', sans-serif;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    width: 50%;
    text-align: center;
}

/* General Styles */
body {
    background-image: url("./assets/spiral-background.png");
}

/* Heading Styles */
h1 {
    color: #422800;                   /* Same color as the button text */
    font-size: 24px;                  /* Adjust font size to your liking */
    font-weight: 700;                 /* Bold to match the button font weight */
    padding: 8px;               /* Padding for a polished look */
    border: 2px solid #422800;        /* Same border color as the button */
    border-radius: 30px;              /* Rounded corners, similar to the button */
    background-color: #fbeee0;        /* Same background color as the button */
    box-shadow: #422800 4px 4px 0 0;  /* Same shadow as the button */
    text-align: center;                /* Center the title */
    user-select: none;                /* Prevent text selection */
    -webkit-user-select: none;
    touch-action: manipulation;
    font-family: serif;
}

#signup-disclaimer {
    margin-top: 0px;
    font-size: 0.85rem;
    color: #003173;
}

/* Flex Container for Header */
.header {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the entire header content */
}

.left-column {
    position: fixed;
    top: 100px;
    left: 0px;
    width: 18vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

/* Logo and Title Space Styles */
.logo-space {
    width: 18vw;
    max-width: 15vw; /* Set a max width for each section */
    height: auto; /* Maintain aspect ratio */
    text-align: center;
}

/*https://getcssscan.com/css-buttons-examples Button 74*/
#reset-btn {
    min-width: 11vw;
    max-width: 18vw;
    max-height: 10vh;    
    background-color: #fbeee0;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    cursor: pointer;
    display: block;
    font-weight: 600;
    font-size: 16px;
    padding: 0 5px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.content-area {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 18vw;
    height: 100vh; /* Full height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.content-image {
    min-width: 100%;
    height: 32.5vh;
}

.logo {
    max-width: 100%;
    border-radius: 10px;
}

/* Welcome overlay */
.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #3C4552;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #3c4552;
    background-image: url("./assets/fr/page-de-bienvenue.png"), url("./assets/spiral-background.png");
    background-size: auto 100%, auto; /* Control sizes for each layer */
    background-repeat: no-repeat, repeat; /* Only the spiral background repeats */
    background-position: top center, center; /* Position each image */
}

/* Cloud-shaped bubble styling for instructions */
.instructions {
    display: none; /* Initially hidden */
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    background-color: #3c4552;
    background-image: url("./assets/fr/directives.png"), url("./assets/spiral-background.png");
    background-size: auto 100%, auto; /* Control sizes for each layer */
    background-repeat: no-repeat, repeat; /* Only the spiral background repeats */
    background-position: top center, center; /* Position each image */
}

.bottom-buttons {
    position: absolute;
    left: calc(50% - ((120px * 2) + 7%)); /* Half of the viewport width minus half the total button width */
    bottom: 2%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* Button styling */
.welcome-button {
    display: block;
    width: 125px;
    margin: 10px auto;
    padding: 10px 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #424D5B;
    background-color: #fff;
    border: 4px solid #536072;
    border-radius: 10px;
    cursor: pointer;
}

#start-game {
    background-color: #72AF7F;
}

#signup-button {
    background-color: #FF8659;
    width: 135px;
}

#login-button {
    background-color: #72AF7F;
    width: 135px;
}

#welcome-banner {
    max-width: 100%;
    margin-bottom: 10px;
}

.login-field {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #003173;
}

.password-input {
    max-width: 90%;
}

.pass-visibility-toggle {
    width: 35px;
    height: 35px;
    margin-top: 2px;
    margin-left: 5px;
    border-radius: 10px;
    align-items: center;
}

.pass-vis-image {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    opacity: 60%;
}

input[type="text"], input[type="password"] {
    width: 97%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.mini-link {
    margin-top: 4px;
    padding-top: 0;
    font-size: 11px;
    text-decoration: underline;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.password-field-container {
    display: flex;
}

.button-container {
    display: flex;
    justify-content: flex-start;
}

#login-modal {
    z-index: 1199;
}

#forgot-password-modal {
    z-index: 1200;
}

#forgot-password-content {
    margin-top: 10%;
    width: 45%;
}

#forgot-password-back-button {
    background-color: #FF8659;
}

#forgot-password-submit-button {
    background-color: #72AF7F;
}

#request-submitted-message {
    border: 2px solid #003173;
    border-radius: 8px;
    padding: 10px;
    margin-top: 0px;
}

#signup-modal {
    z-index: 1201;
}

#submit-button {
    background-color: #72AF7F;
}

#tutorial-button {
    background-color: #72AF7F;
    width: 140px;
}

#back-button {
    background-color: #FF8659;
}

#show-instructions, #return-button {
    background-color: #FFBD59;
}

#submit-phrases {
    background-color: #72AF7F;
    color: #424D5B;
    width: auto;
}


/* Title Styles */
.title {
    margin: 5px auto; /* Add space around the title */
    max-width: 25vw;
    text-align: center;
    justify-content: center;
    border: 4px solid #422800;
}

/* Media Queries */
@media (max-width: 680px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding-top: 5rem; /* Adds extra space for the smaller logo */
    }
    .logo-space {
        position: static; /* Removes absolute positioning on smaller screens */
        margin-bottom: 1rem;
    }
}

/* Victory message styling */
#victory-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1400;
    max-width: 40%;
    max-height: 40%;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.20s ease-in, visibility 0.20s;    
}

#victory-message.visible {
    opacity: 1;
    visibility: visible;
}

#reset-btn:hover {
  background-color: #fff;
}

#reset-btn:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}

@media (min-width: 768px) {
  .reset-btn {
    min-width: 120px;
    padding: 0 25px;
  }
}

.grid-container {
    display: grid;
    gap: 5px;
    margin: 1% auto auto auto;
    width: 64vw;
    justify-content: center;
    height: 85vh;
    box-sizing: border-box;
}

/* Styling for the individual cards */
.card {
    background-color: lightgray;
    border: 2px solid #333;
    border-radius: 8px;
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: transparent;
}

.card.revealed {
    background-color: var(--card-color);
}

/* Styling for the card text */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fbeee0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-family:Arial, Helvetica, sans-serif;
    cursor: pointer;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.card-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.hidden {
    display: none;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); /* Background with transparency */
}

.modal-content {
    background-color: #FFBD59;
    font-family: Arial, Helvetica, sans-serif;
    color: #424D5B;
    margin: 8% auto; 
    padding: 20px;
    border: 5px solid #424D5B;
    border-radius: 10px;
    width: 80%; 
    max-width: 650px;
}

@media (max-height: 650px) {
    .modal-content {
      margin: 5% auto;
    }

    #phrase-modal-content {
        margin: 1% auto;
    }    
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#close-tutorial {
    cursor: pointer;
}

textarea {
    width: 100%;
    font-size: 16px;
    background-color: #fbeee0;
}
  
input.check-toggle-round-flat:checked ~ .off {
    color: #424D5B;
}
  
input.check-toggle-round-flat:checked ~ .on {
    color: #fbeee0;
}
  
.switch > span.on {
    left: 0;
    padding-left: 2px;
    color: #424D5B;
}
  
.switch > span.off {
    right: 0;
    padding-right: 4px;
    color: #fbeee0;
}
  
.check-toggle {
    position: absolute;
    margin-left: -9999px;
    visibility: hidden;
}
.check-toggle + label {
    display: block;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
  
input.check-toggle-round-flat + label {
    padding: 2px;
    width: 97px;
    height: 35px;
    background-color: #FFBD59;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
}
input.check-toggle-round-flat + label:before, input.check-toggle-round-flat + label:after {
    display: block;
    position: absolute;
    content: "";
}
  
input.check-toggle-round-flat + label:before {
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 2px;
    background-color: #FFBD59;
    -webkit-moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
}
input.check-toggle-round-flat + label:after {
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: 48px;
    background-color: #fbeee0;
    -webkit-border-radius: 52px;
    -moz-border-radius: 52px;
    -ms-border-radius: 52px;
    -o-border-radius: 52px;
    border-radius: 52px;
    -webkit-transition: margin 0.2s;
    -moz-transition: margin 0.2s;
    -o-transition: margin 0.2s;
    transition: margin 0.2s;
}
  
input.check-toggle-round-flat:checked + label {

}
  
input.check-toggle-round-flat:checked + label:after {
    margin-left: 44px;
}
