/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
  }
  
  /* Tema padrão (claro) */
  :root {
    --bg-color: #ffffff;
    --text-color: #121212;
    --vibrant: #1e90ff;
    --cinza: #555555;
    --escla:#d9d9d9;
    --clink: #0b61d0;
    --cbordas: #dddddd;
  }
  
  /* Tema escuro usando */
  :root:has(#dark:checked) {
    --bg-color: #121212;
    --text-color: #ffffff;
    --vibrant: #0a5ca5;
    --cinza: #aaaaaa;
    --escla:#484848;
    --clink: #58a6ff;
    --cbordas: #444444;
  }
  
  /* Base do site */
  body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
  }
  
  /* Header */
  header {
    position: fixed;
    height: 100%;
    width: 15vw;
    background-color: var(--vibrant);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  header h1 {
    font-size: 3vw;
    text-align: center;
    padding: 40px 0;
  }
  
  #menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
  }
  
  #menu a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
    height: 7vh;
  }
  
  #menu a:hover {
    color: var(--clink);
  }
  
  .theme-toggle {
    list-style: none;
    display: flex;
    gap: 4rem;
    background-color: var(--escla);
    box-shadow: 0 0 1rem rgb(0 0 0 / 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    width: 11vw;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }
  
  .theme-toggle input[type="radio"] {
    appearance: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--input-color);
    cursor: pointer;
    position: relative;
    z-index: 1;
  }
  
  .theme-toggle label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  
  .theme-toggle label img {
    width: 3vw;
    height: 3vw;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  /* Mostra o ícone do botão oposto ao que está selecionado */
  #dark:checked ~ label[for="light"] img {
    opacity: 1;
  }
  
  #light:checked ~ label[for="dark"] img {
    opacity: 1;
  }
  
  
  
  /* Responsivo */
  @media (max-width: 1100px) {
    header {
      position: relative;
      height: auto;
      width: 100%;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
    }
  
    header h1 {
      font-size: 2rem;
      padding: 0;
    }
  
    #menu {
      position: static;
      flex-direction: row;
      gap: 1rem;
      height: auto;
      font-size: 1rem;
    }
  }
  