html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}
html {
  background-image: linear-gradient(to bottom right, #0d203c, #3c2140); 
  background-attachment: fixed;

}
body  {
    color: #f0f0f0;
    width:100%;
    max-width: 1400px;
    margin: 0 auto;
}
a {
    color: rgb(243, 242, 220);
    text-decoration: none;
}
a:visited {
  color: rgb(243, 242, 220);
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    text-align: center;
    text-shadow: 0px 4px 16px rgba(94, 57, 80, 0.713);
    
}
h1 {
    font-weight: 900;
    font-size: 3em;
    margin:0px;
    margin-top:1em;
}

h2 {
    font-weight: 900;
}

main, footer {
    padding:2em;
}

#search-box {
    padding: 10px;
    border: 1px solid #e8bcab;
    border-radius: 8px;
    background-color: #141d13;
    font-size: 1.4em !important;
    box-shadow: 0px 0px 16px rgba(249, 157, 112, 0.33);
    
    color:#e4f4e0;
    outline: none;
}
#search-box:focus {
    box-shadow: 0px 0px 24px rgba(232, 157, 122, 0.984); 
      
    
}

.topic > h2 {
  color: #f4d0b5;
  margin-bottom: 1em;
}
p.faded {
    color: #a6fbc96b;
    font-size: 1em;
    text-align: center;
    margin:0px;
    margin-bottom:15px;
}

.topic {
    margin-bottom:4em;
}
.topic h2:hover {
    text-shadow: 0px 0px 10px rgba(76, 175, 80, 0.5);
  }

/* Grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  /* Card styling */
  .grid-item {

    background-color: #11141200;
    background-image: linear-gradient(to bottom right, #ce4f1dad, #9932587b); 
    
    /* backdrop-filter: blur(4px); */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    font-size: 1em;
    transition-duration: 0.3s;
    box-shadow: 0px 0px 16px rgba(30, 30, 30, 0.848), inset 0px 0px 8px rgba(255, 255, 255, 0.782);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1em;

  }
  
  .grid-item:hover {
    background-color:#e33030e5;
    
    cursor: pointer;
     box-shadow: 0px 0px 16px rgba(250, 194, 138, 0.798); 
    transform: scale(1.02);
    
  }
  
  /* Responsive layout for narrower screens */
  @media (max-width: 600px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  
    .grid-item {
      aspect-ratio: auto; /* Remove square shape on small screens */
    }
  }

  .adsbygoogle {
    border:1px solid #2d1f1f;
  }


  
#intro-section {
  background: linear-gradient(to bottom left,#492b6c85,rgba(83, 27, 24, 0.7),rgba(123, 43, 43, 0.48));
  color:white;
  font-size:1.1em;
  padding: 1em;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  padding: 1rem;
  position: relative;
  box-shadow: 0px 0px 14px black;
}

.close-btn {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-self: end;
  align-self: start;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color:rgb(219, 181, 85);
}
.close-btn:hover {
  background-color: #68515180;
  color: white;
}
@media only screen and (min-width: 1200px) {
  #intro-section {
    border: 1px solid rgb(189, 156, 132);
  }
}
