/* Modal styles */
:root {
    --options_modal_w  : 90vw;
    --options_modal_h  : 90vh;
}

@media screen and (max-width: 600px) {
  :root {
    --options_modal_w  : 90vw;
    --options_modal_h  : 90vh;
  }
}

@media screen and (min-width: 601px) and (max-width: 775px) {
  :root {
    --options_modal_w  : 65vw;
    --options_modal_h  : 80vh;
  }
}

@media screen and (min-width: 776px) and (max-width: 950px) {
  :root {
    --options_modal_w  : 50vw;
    --options_modal_h  : 80vh;
  }
}

@media screen and (min-width: 951px) {
  :root {
    --options_modal_w  : 40vw;
    --options_modal_h  : 90vh;
  }
}

.modal {
  display: flex; 
  position: relative; 
  left: 0;
  top: 0;
  width: 100%; 
  overflow: auto; 
  /*background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); */
  padding-top: 0px;
}

.modal_content {
  background-color: #fff;
  margin: 0% auto; 
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #888;
  width: 90%; 
  /* max-width: 300px;  */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.modalSelection {
    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: 3000;
}

.modalSelection_content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: var(--options_modal_w);
    height: var(--options_modal_h);
    text-align: center;
    position: relative;
    opacity: 0; /* Initially hidden */
    transform: translateY(-20px); /* Start with slight upward movement */
    transition: all 0.5s ease; /* Apply transition for fade and movement */
}

.modalSelection_content.show {
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Slide down */
}

.switch {
    display: inline-block;
    width: 60px;
    height: 34px;
    position: relative;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider::before {
    transform: translateX(26px);
}

.buttons {
    margin-top: 15px;
}

.modal_button 
{
  padding: 10px 20px;
  margin: 5px;
  background-color: #2C8Fff;
  color: white;
  border: none;
  font-size: 18px;
  font-weight: bold;
  width : calc(var(--video_settings_w));
  height: calc(var(--video_settings_h));
  cursor: pointer;
  border-radius: 10px;
}

.modal_button_green 
{
  /* Same color as neon create button */
  background-color: var(--neonCreate);
}

.modal_button_small
{
  padding: 0px 0px;
  width : calc(var(--image_grid_but_w));
  height: calc(var(--image_grid_but_h));
  font-size: 1.0em;
}

.modal_button.cancel
{
  background-color: #f44336;
}

.switch-container {
    display: flex;
    justify-content: space-between; /* Aligns text and toggle on opposite sides */
    align-items: center; /* Vertically centers the text and toggle */
    margin: 10px 0;
}

.slider-text {
    font-size: 16px;
    color: #333;
}

.closeCross {
    position: absolute;
    top: 10px;
    right: 15px;
    color: red;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.closeCross:hover {
    color: darkred;
}

.custom-dropdown {
    position: relative;
    display: flex;
    justify-content: space-between; /* Space between label and selected dropdown */
    align-items: center; /* Vertically center label and dropdown */
    margin: 10px 0;
    width: 100%; /* Full width for container */
}


.custom-dropdown label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.dropdown-selected {
    padding: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 40%; /* Adjust as needed */
    text-align: center; /* Center text inside dropdown */
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}

.dropdown-options.open {
    max-height: none; /* Adjust based on the number of options */
    opacity: 1;
    width:100%;
}

.dropdown-option {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #f1f1f1;
}

.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

.login-container h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-input {
    padding-right: 35px;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.button_text {
    width: 100%;
    padding: 0.75rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.button_text:hover {
    background-color: #0056b3;
}

#message {
    margin-top: 1rem;
    color: #e74c3c;
}

.link-text {
    color: #007BFF;
    text-decoration: none;
}

.link-text:hover {
    text-decoration: underline;
}

.centerhelp {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    width:  80%;
}

.register-container h1 {
    margin-bottom: 1.5rem;
    color: #333;
}
