body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.launcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    color: white;
    text-align: center;
}

.background {
    background: url('../assets/background/panorama-shaders.png') no-repeat center center/cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: none;
}

.content {
    /*background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), 
              inset 0 4px 20px rgba(255, 255, 255, 0.3);
    position: relative;*/
    width: 1500px;
    position: relative;
    padding: 2.5rem 3rem;
    /*padding: 20px;*/
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent background */
    backdrop-filter: blur(1px) saturate(180%); /* Liquid glass effect */
    -webkit-backdrop-filter: blur(1px) saturate(180%); /* Vendor prefix for Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 400px;
    transition: all 0.3s ease;
    /* Apply the SVG filter for liquid distortion */
    filter: url(#liquid-distortion);
}

h1 {
    margin-bottom: 20px;
    font-size: 2rem;
}

h2 {
    margin-bottom: 20px;
    font-size: 1vw;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}


button {
    /*background-color: #0078D7;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 20px;*/
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    position: center;
    /*padding: 2.5rem 3rem;*/
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent background */
    backdrop-filter: blur(1px) saturate(180%); /* Liquid glass effect */
    -webkit-backdrop-filter: blur(1px) saturate(180%); /* Vendor prefix for Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 400px;
    transition: all 0.3s ease;
}

button:hover {
    /*background-color: #005EA6;*/
    background-color: rgba(255, 255, 255, 0.181); /* Semi-transparent background */
}

.menu {
    margin-top: 10px;
}

label, select {
    font-size: 1rem;
    color: black;
}

#settings-cont {
    /*background-color: rgb(39, 39, 39);*/
    color: white;
    border-radius: 0;
    padding: 20px;
    height: 500px;
    width: 250px;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    position: center;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent background */
    backdrop-filter: blur(2px) saturate(180%); /* Liquid glass effect */
    -webkit-backdrop-filter: blur(2px) saturate(180%); /* Vendor prefix for Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 400px;
    transition: all 0.3s ease;
}
#settings-cont.scale-in {
    animation: scaleIn 0.3s ease;
}
#settings-cont.scale-out {
    animation: scaleOut 0.3s ease;
}
@keyframes scaleIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
  
  @keyframes scaleOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
#overlay {
    /*display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;*/
    position: center;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14); /* Semi-transparent background */
    backdrop-filter: blur(1px) saturate(180%); /* Liquid glass effect */
    -webkit-backdrop-filter: blur(1px) saturate(180%); /* Vendor prefix for Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 400px;
    transition: all 0.3s ease;
}
#overlay.visible {
    display: block;
    opacity: 1;
}
#settings-cont h3 {
    font-size: 25px;
    font-weight: 550;
    margin-right: 175px;
}
.toggle {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    box-sizing:border-box;
    margin-top: 28px;
  }
  .toggle input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
  }
  .toggle label {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    box-sizing:border-box;
  }
  .toggle label:before {
    content: '';
    background: #bbb;
    height: 20px;
    width: 64px;
    position: relative;
    display: inline-block;
    box-sizing:border-box;
    transition: 0.2s ease-in;
  }
  .toggle label:after {
    content: '';
    position: absolute;
    border: 2px solid #ddd;
    background: #fff;
    top: 0;
    width: 32px;
    height: 32px;
    left: 0;
    z-index: 2;
    box-sizing:border-box;
    box-shadow: 0 0 5px #0002;
    transition: 0.2s ease-in;
  }
  .toggle input[type="checkbox"]:hover + label:after  {
      box-shadow: 0 2px 15px 0 #0002, 0 3px 8px 0 #0001;
  }
  .toggle input[type="checkbox"]:checked + label:before {
    background: rgb(4, 134, 0);
  }
  .toggle input[type="checkbox"]:checked + label:after {
    border-color: rgb(255, 255, 255) ;
    background-color: rgb(255, 255, 255);
    left: 38px;
  }
  
#logo1 {
    width: 1000px;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 5s linear, opacity 0.3s ease;
    z-index: 99999999;
}

#logo2 {
    width: 4000px;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 5s linear, opacity 0.3s ease;
    z-index: 99999999;
}

#logo3 {
    scale: 1;
    width: 1000px;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: scale 2s ease, opacity 0.3s ease;
    z-index: 99999999;
}

#launchbg {
    background-color: white;
    transition: 0.2s ease;
    display: block;
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    height: 100vh;
    left: 0;
    scale: 111111%;
    color: white;
}  

/* Hide the native checkbox input */
.ios-liquid-toggle-input {
  display: none;
}

.ios-liquid-toggle-label {
  position: relative;
  display: block;
  width: 60px;
  height: 34px;
  border-radius: 34px;
  cursor: pointer;
  
  /* Apply the base liquid glass effect */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  
  /* Add subtle light reflection with a pseudo-element */
  &::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 58px;
    height: 32px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0)
    );
    border-radius: 34px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }
}

/* The toggle's thumb, I belive this works */
.liquid-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 0 0 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2), box-shadow 0.3s ease;

  /* Use the SVG filter for the liquid distortion on the thumb */
  filter: url(#liquid-filter);
}

/* Adjust styles when the checkbox is checked (on state) */
.ios-liquid-toggle-input:checked + .ios-liquid-toggle-label {
  background-color: #34c759;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ios-liquid-toggle-input:checked + .ios-liquid-toggle-label .liquid-thumb {
  transform: translateX(26px);
}

/* Add a slight push-down effect on the thumb when active */
.ios-liquid-toggle-input:active + .ios-liquid-toggle-label .liquid-thumb {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  width: 32px;
}

.ios-liquid-toggle-input:checked:active + .ios-liquid-toggle-label .liquid-thumb {
  transform: translateX(24px);
}

/* We reuse your existing .glass-card styles for the content look */
.modal-content.glass-card {
    /* Adjust width/padding specific to the modal if necessary, 
       but your existing .glass-card styles should work well */
    max-width: 500px;
    width: 80%;
    margin: 1rem;
}


/* Close button positioning for the modal */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    z-index: 3; /* Ensure close button is clickable */
    /* Add basic styling to make the 'x' look nice */
    font-family: sans-serif; 
}

.close:hover {
    color: #ddd;
}

/* --- Pop-up Modal Positioning (Required for functionality) --- */
.modal {
    display: none; /* Hidden by default by CSS, shown by JS */
    position: fixed; 
    z-index: 100; /* Ensure it's on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    justify-content: center;
    align-items: center;
}

/* Key styling for the glass card (used for main content AND pop-up content) */
.glass-card {
    position: relative;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent background */
    backdrop-filter: blur(3px) saturate(180%); /* Liquid glass effect */
    -webkit-backdrop-filter: blur(3px) saturate(180%); /* Vendor prefix for Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 400px;
    transition: all 0.3s ease;
}