@font-face {
      font-family: 'Quicksand';
      src: url('/assets/fonts/quicksand/quicksand-latin-400-normal.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
  }
  @font-face {
      font-family: 'Quicksand';
      src: url('/assets/fonts/quicksand/quicksand-latin-600-normal.woff2') format('woff2');
      font-weight: 600;
      font-style: normal;
  }
  @font-face {
      font-family: 'Quicksand';
      src: url('/assets/fonts/quicksand/quicksand-latin-700-normal.woff2') format('woff2');
      font-weight: 700;
      font-style: normal;
  }

  body {
      margin: 0;
      font-family: 'Quicksand', monospace;
      background-color: #FFDDEB; 
      display: flex;
      padding: 20px;
      justify-content: center;
      color: #5B3A6E;
      background-image: url('/assets/img/skycloud.png');
  }

  hr {
    color: #5B3A6E;
  }

  .container {
    display: grid;
    grid-template-areas:
      "header header"
      "nav main"
      "footer footer";
    grid-template-columns: 12vw 1fr;
    grid-template-rows: 15vh 1fr 10vh;
    gap: 20px;
    height: 100%;
    min-height: 100vh;
    padding: 10px;
    background-color: #F7A8D6;
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
  }

  header {
    grid-area: header; 
    display: flex;
    background: #F7A8D6;
    padding: 20px; 
    border-radius: 20px;
    color: #5B3A6E;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    justify-content: center;
    align-items: center;
  }

  nav.sidebar-left { 
    grid-area: nav; 
    background: #A85F88ff; 
    padding: 10px; 
    color: white; 
    border-radius: 20px;
  }

  main { 
    grid-area: main; 
    background: #e9c46a;
    background-image: url(https://messymind.me/assets/img/merletto.png);
    padding: 10px; 
    border-radius: 20px; 
  }

  footer { 
    grid-area: footer; 
    display: flex;
    background: #F7A8D6;
    padding: 20px;
    border-radius: 20px;
    color: #5B3A6E;
    font-size: 0.7rem;
    justify-content: center;
    align-items: center;
  }
  footer p {
  margin: 0;                
  text-align: center;
}

  @media (max-width: 800px) {
    .container {
      grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
  }

  /* --- Sidebar styles --- */
  .sidebar-left ul {
      list-style: none;
      padding: 0;
      margin: 0;
  }
  .sidebar-left li {
      margin-bottom: 10px;
  }
  .sidebar-left a {
      display: block;
      padding: 12px;
      background: #FFDDEB;
      color: #5B3A6E;
      border-radius: 12px;
      text-decoration: none;
      font-weight: 600;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
  }
  .sidebar-left a:hover {
      background: #F7A8D6;
      transform: translateY(-3px);
  } 
  /* --- Slideshow --- */
  .slideshow {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .slideshow img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slide 12s infinite;
    border-radius: 12px;
  }
  .slideshow img:nth-child(1) { animation-delay: 0s; }
  .slideshow img:nth-child(2) { animation-delay: 4s; }
  .slideshow img:nth-child(3) { animation-delay: 8s; }
  @keyframes slide {
    0%, 100% { opacity: 0; }
    10%, 30% { opacity: 1; }
    40% { opacity: 0; }
  }

  /* --- About section buttons inside main --- */
  main .about-nav a {
    margin-right: 10px;
    text-decoration: none;
    padding: 6px 10px;
    background: #eee;
    border-radius: 6px;
    color: #5B3A6E;
  }
  main .about-nav a:hover {
    background: #ccc;
  }  
  
  .switch {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.switch-btn {
  display: inline-block;
  padding: 14px 24px;
  background: #FFDDEB;
  color: #5B3A6E;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.switch-btn:hover {
  background: #F7A8D6;
  transform: translateY(-3px);
}

.switch-btn:focus {
  outline: none;
  border: 2px solid #5B3A6E;
  box-shadow: 0 0 0 4px #FFDDEB;
}
  
  
  .card {
   max-width: 800px;      
  margin: 0 auto 30px;    
  padding: 15px;          
  background-color: #FFDDEB; 
  border-radius: 20px;     
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
  overflow-x: auto;        

}
  .card img {
  width: 100%;       
  height: auto;
  display: block;           
  margin: 0 auto 20px;      
  max-width: 100%;          
  border-radius: 12px;    
    }

 .card h2 {
  color: #5B3A6E;
  margin-bottom: 15px;
}

.card p {
  color: #5B3A6E;
  line-height: 1.6;
}
