html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;

}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #444348;
}

canvas {
    width: 300px;
    height: 300px;
}

ul {
    list-style: none;
  }
  
a {
    text-decoration: none;
}


.container-nav {
    max-width: 1120px;
    margin-inline: 1.5rem;
  
  }
  
  .header-nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #0a0e1434;
    z-index: 800;
    color: #9ebcc2;
  }
  
  .nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav__logo {
    color: var(--white-color);
    font-weight: var(--font-medium);
    font-size: 32px;
  }
  
  .nav__close,
  .nav__toggle {
    display: flex;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .nav__list,
  .nav__social {
    display: flex;
  }
  
  .nav__list {
    flex-direction: column;
    row-gap: 3rem;
  }
  
  .nav__link {
    position: relative;
    color: var(--white-color);
    font-size: var(--h1-font-size);
    font-weight: var(--font-medium);
    display: inline-flex;
    align-items: center;
    transition: opacity 0.4s;
  }
  
  .nav__link i {
    font-size: 2rem;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  
  .nav__link span {
    position: relative;
    transition: margin 0.4s;
  }
  
  .nav__link span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: #0a0e1434;
    transition: width 0.4s ease-out;
  }
  
  .nav__link:hover span {
    margin-left: 2.5rem;
  }
  
  .nav__link:hover i {
    opacity: 1;
    visibility: visible;
  }
  
  .nav__link:hover span::after {
    width: 100%;
  }
  
  .nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
    opacity: 0.4;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }
  
  .nav__social {
    column-gap: 1rem;
  }
  
  .nav__social-link {
    color: var(--white-color);
    font-size: 1.5rem;
    transition: transform 0.4s;
  }
  
  .nav__social-link:hover {
    transform: translateY(-0.25rem);
  }
  
  .show-menu {
    left: 0;
  }
  
  .show-menu .nav__item {
    visibility: visible;
    transform: translateX(0);
  }
  
  @media screen and (min-width: 1024px) {
    .container-nav {
      margin-inline: auto;
    }
  
    .nav {
      padding: 0 20px;
      height: calc(var(--header-height) + 2rem);
    }
  
    .nav__toggle,
    .nav__close {
      display: none;
    }
  
    .nav__link {
      font-size: var(--normal-font-size);
    }
  
    .nav__link i {
      font-size: 1.5rem;
    }
  
    .nav__list {
      flex-direction: row;
      column-gap: 3.5rem;
    }
  
    .nav__menu {
      display: flex;
      align-items: center;
      column-gap: 3.5rem;
    }
  }
  

.map-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh;
}

.mode-switches {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.mode-switch-inner {
    display: flex;
    flex-direction: column;
    margin: 50px auto; 
}

.toggle-switch {
        position: relative;
        display: inline-block;
        width: 90px;
        height: 40px;
        cursor: pointer;
}


.modes-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    margin: 10px;
    padding: 20px;
    
}

.basic-energy-container, .cosmic-energy-container, .brainrot-energy-container, .what-if-energy-container  {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    text-align: center;
    
}

.inner-column, .cosmic-inner, .brain-inner, .whatif-inner {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 50px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ddd;
    border-radius: 20px;
    box-shadow: inset 0 0 0 2px #ccc;
    transition: background-color 0.3s ease-in-out;
}

.toggle-switch-handle {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.toggle-switch::before {
    content: "";
    position: absolute;
    top: -25px;
    right: -35px;
    font-size: 12px;
    font-weight: bold;
    color: #aaa;
    text-shadow: 1px 1px #fff;
    transition: color 0.3s ease-in-out;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-handle {
    transform: translateX(45px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 0 3px #05c46b;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background {
    background-color: #05c46b;
    box-shadow: inset 0 0 0 2px #04b360;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch:before {
    content: "On";
    color: #05c46b;
    right: -15px;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background .toggle-switch-handle {
    transform: translateX(40px);
}

.hidden {
    display: none;
}

.modes-container > div {
    transition: opacity 0.3s ease-in-out;
}



#name {
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: fit-content;
    opacity: 0;
    border-radius: 5px;
    border: 3px solid rgb(82, 105, 254);
    padding: 0px 5px;
    font-size: 1.5rem;

}


svg path {
    cursor: pointer;
}

body.basic-mode {
    background-color: #e6ffe6;
    color: #004d00;
}

.basic-mode .toggle-switch-background {
    background-color: #b3ffb3;
}

.basic-mode .chart-container {
    border: 2px solid #004d00;
}

body.brainrot-mode {
    background: 
        linear-gradient(90deg, #ff00ff, #00ffff, #ff0000), 
        url('../cursed-echnique-amplification-blue/chillguy.jpg');
    background-blend-mode: overlay; 
    background-size: 400% 400%, cover; 
    animation: cosmicAnimation 10s ease infinite; 
    color: #a3a900;
}


.brainrot-mode .chart-container {
    border: 2px solid #ff0000;
}

.cosmic-mode .chart-container {
    border: 2px solid #006cdf;
}


.whatif-mode .chart-container {
    border: 2px solid #64f2ff;
}

@keyframes cosmicAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brainrot-mode .toggle-switch-background {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

body.cosmic-mode {
    background: radial-gradient(circle, #0f0c29, #302b63, #24243e);
    color: #00254d;
}

body.cosmic-mode h2 {
    color: white;
}



.cosmic-mode .toggle-switch-background {
    background-color: rgba(50, 50, 150, 0.5);
    box-shadow: 0 0 15px rgba(50, 50, 150, 0.8);
}

body.whatif-mode {
    background-color: #001f3f;
    color: #00aaff;
}

.whatif-mode .toggle-switch-background {
    background-color: #003366;
    box-shadow: 0 0 10px #00aaff;
}


.hidden {
    display: none;
}

h1 {
    margin-top: 30px;
}
/* General Styling for the Input */
.energy-quantity {
    background-color: #212121;
    max-width: 190px;
    height: 40px;
    padding: 10px;
    text-align: center;
    border: 2px solid white;
    border-radius: 5px;
    box-shadow: 3px 3px 2px rgb(249, 255, 85); 
    font-size: 16px;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.energy-quantity:focus {
    color: rgb(0, 255, 255);
    background-color: #212121;
    outline: none;
    box-shadow: -3px -3px 15px rgb(0, 255, 255);
}

body.basic-mode .energy-quantity {
    background-color: #e6ffe6;
    border-color: #004d00;
    color: #004d00;
    box-shadow: 3px 3px 2px #b3ffb3;
}

body.cosmic-mode .energy-quantity {
    background-color: #2d2a4a;
    border-color: #6279ff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(98, 121, 255, 0.8), 0 0 20px rgba(50, 50, 150, 0.5);
}

body.brainrot-mode .energy-quantity {
    background-color: #ff00ff;
    border-color: #ffcc00;
    color: #000000;
    box-shadow: 0 0 10px #ffcc00, 0 0 20px #00ffff;
}

body.whatif-mode .energy-quantity {
    background-color: #003366;
    border-color: #00aaff;
    color: #ffffff;
    box-shadow: 0 0 10px #00aaff, 0 0 15px #004d80;
}

button {
    background-color: #212121;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 2px rgb(249, 255, 85);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: rgb(0, 255, 255);
    color: #000;
    box-shadow: -3px -3px 15px rgb(0, 255, 255);
}

body.basic-mode button {
    background-color: #e6ffe6;
    color: #004d00;
    border-color: #004d00;
    box-shadow: 3px 3px 2px #b3ffb3;
}

body.basic-mode button:hover {
    background-color: #b3ffb3;
    color: #002a00;
    box-shadow: 0 0 10px #004d00, 0 0 15px #b3ffb3;
}

body.cosmic-mode button {
    background-color: #2d2a4a;
    color: #ffffff;
    border-color: #6279ff;
    box-shadow: 0 0 10px rgba(98, 121, 255, 0.8), 0 0 20px rgba(50, 50, 150, 0.5);
}

body.cosmic-mode button:hover {
    background-color: #3a358f;
    color: #c8d6ff;
    box-shadow: 0 0 15px rgba(98, 121, 255, 0.9), 0 0 30px rgba(50, 50, 150, 0.6);
}

body.brainrot-mode button {
    background-color: #ff00ff;
    color: #000000;
    border-color: #ffcc00;
    box-shadow: 0 0 10px #ffcc00, 0 0 20px #00ffff;
}

body.brainrot-mode button:hover {
    background-color: #ff99ff;
    color: #550055;
    box-shadow: 0 0 15px #ffcc00, 0 0 30px #00ffff;
}

body.whatif-mode button {
    background-color: #003366;
    color: #ffffff;
    border-color: #00aaff;
    box-shadow: 0 0 10px #00aaff, 0 0 15px #004d80;
}

body.whatif-mode button:hover {
    background-color: #005599;
    color: #cceeff;
    box-shadow: 0 0 15px #00aaff, 0 0 25px #004d80;
}

#energy-result {
    background-color: #212121;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    margin: 50px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    box-shadow: 3px 3px 5px rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

body.basic-mode #energy-result {
    background-color: #e6ffe6;
    color: #004d00;
    border-color: #004d00;
    box-shadow: 3px 3px 5px rgba(0, 100, 0, 0.5);
}

body.basic-mode #energy-result:hover {
    background-color: #b3ffb3;
    color: #002a00;
    box-shadow: 0 0 15px #004d00, 0 0 20px #b3ffb3;
}

body.cosmic-mode #energy-result {
    background-color: #2d2a4a;
    color: #ffffff;
    border-color: #6279ff;
    box-shadow: 0 0 10px rgba(98, 121, 255, 0.8), 0 0 20px rgba(50, 50, 150, 0.5);
}

body.cosmic-mode #energy-result:hover {
    background-color: #3a358f;
    color: #c8d6ff;
    box-shadow: 0 0 20px rgba(98, 121, 255, 0.9), 0 0 30px rgba(50, 50, 150, 0.6);
}

body.brainrot-mode #energy-result {
    background-color: #ff00ff;
    color: #000000;
    border-color: #ffcc00;
    box-shadow: 0 0 10px #ffcc00, 0 0 20px #00ffff;
}

body.brainrot-mode #energy-result:hover {
    background-color: #ff99ff;
    color: #550055;
    box-shadow: 0 0 15px #ffcc00, 0 0 30px #00ffff;
}

body.whatif-mode #energy-result {
    background-color: #003366;
    color: #ffffff;
    border-color: #00aaff;
    box-shadow: 0 0 10px #00aaff, 0 0 15px #004d80;
}

body.whatif-mode #energy-result:hover {
    background-color: #005599;
    color: #cceeff;
    box-shadow: 0 0 15px #00aaff, 0 0 25px #004d80;
}
