@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary1: #800000; 
  --primary2: #B71C1C;
  --accent1: #FFD54F;
  --accent2: #D4AF37;
  --secondary1: #FAFAFA;
  --secondary2: #F5F5F5;
  --support1: #1A237E;
  --support2: #2E7D32; 
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Urbanist", sans-serif;
}


/* a {
  color: #00B7FF;
} */

header {
  display: flex;
  padding: 0.5rem 3rem;
  /* align-items: center; */
  /* height: 5rem; */
}

header > a {
  img {
    height: 5rem;
    border-radius: 100%;
  }
  margin-right: auto;
  
}

nav ul {
  list-style-type: none;
  align-items: center;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
}

p {
  margin-bottom: 2rem;
}

h2, h3 {
  margin-bottom: 0.5rem;
}

#main-page-text, #join-page-text {
  padding: 4rem 10rem;
  background-color: var(--secondary2);
}

#board-page-text {
  padding: 4rem 10rem;
}

#gallery-page-text {
  padding: 4rem;
}


/* main section:nth-of-type(2) {
  background-color: rgb(246, 203, 120);
} */

/* main section:nth-of-type(1) {
  background-color: orange;
} */

footer {
  background-color: rgb(200, 55, 45);
}

footer section {
  padding: 4rem 10rem;
}


/* hi */

nav {
  display: flex;
}

nav li {
  padding: 0;
  margin-left: 30px;
  /* background-color: red; */
  /* border: red 0.5px dotted; */
  /* height: 100%; */
  font-weight: bold;
  font-size: large;
  display: flex;
  align-items: center;
}

nav a{
  padding: 1rem 2rem;
  display: block;
  text-decoration: none;
  color: rgb(149, 40, 35);
  width: 100%;
  height: 100%;
}

nav a:hover {
  color: var(--accent1);
  transition: 300ms ease;
}

nav .current {
  text-decoration: underline;
  text-decoration-thickness: 0.25rem;
  text-underline-offset: 0.5rem;
}

nav li:last-child {
  padding: 0;

  a {
    border: white solid 5px;
    border-radius: 300px;
  }

}
  

nav li:last-child a:hover {
  border-color: var(--accent1);
  transition: 500ms ease;
}

#index-title-section{
  background-image: url("../images/titlebackground.png");
  background-size: cover;
  background-position: center;
}

#joinpage-title-section {
  background-image: url("../images/2425/boishakh/A3.jpeg");
  background-size: cover;
  background-position: left center;
}


#board-title-section, #events-title-section, #gallery-title-section, #joinpage-title-section {
  background-color: var(--primary1);
}

#board-page-text, #events-page-text, #gallery-page-text, #join-page-text{
  h2 {
    color: var(--primary2)
  }
  .accent2 {
    font-weight: bold;
  }
  background-color: var(--secondary1);
}

.title-section h1 {
   color: white;
}

.accent1 {
  color: var(--accent1)
}

.accent2 {
  color: var(--accent2)
}

#current-board {
  * {
    margin-bottom: 0.5rem;
  }
  div {
    font-size: large;
  }
}

#events-table {
  th, td, li {
    font-size: large;
  }
}


body {
  /* font-family: 'Segoe UI', sans-serif; */
  background-color: var(--secondary1);
  color: #333;
  margin: 0;
}

header {
  background-color: var(--support2);
  color: white;
  padding: 20px;
  text-align: center;
}


nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

button, .cta {
  background-color: var(--accent1);
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
}

footer {
  background-color: var(--support1);
  color: white;
  text-align: center;
  padding: 20px;
}

table {
  width: 80%;
  border-collapse: collapse;
  background-color: #FAFAFA;
  color: #333;
}

th {
  background-color: #800000; /* Primary */
  color: white;
  padding: 10px;
}

td {
  padding: 10px;
  border-bottom: 1px solid #DDD;
}

tr:nth-child(even) {
  background-color: #F5F5F5; /* Secondary */
}

thead th {
  text-align: left;
}

.gallery {
  padding: 40px;
  background-color: #FAFAFA; /* Or Off-white */
}

.gallery h2 {
  text-align: center;
  color: #800000; /* Primary color */
  margin-bottom: 20px;
}

.image-grid {
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fit, 100px); */
  display: flex;
  gap: 16px;
  padding: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}

.image-grid img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.grids {
  margin-left: 20%;
}

.event-display {
  text-align: center;
  box-shadow: 0 0 1em;
  /* filter: drop-shadow(0 0 0.5em lightgray); */
  border-radius: 10px;
  margin-bottom: 1rem;
}

.grid-title {
  padding: 1rem;
  font-size: large;
  /* border-bottom: black solid 2px; */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: var(--primary1);
  color:white
}

#gallery-sidebar {

  .active {
    color: white;
    background-color: var(--support2);
  }

  div {
    padding: 1rem;
    background-color: var(--secondary2);
  }
  div:hover{
    color: var(--accent2);
    cursor: pointer;
    transition: 200ms ease;
  }
  width: 15%;
  position: absolute;
  text-align: right;
}

.hidden {
  display: none;
}


#footer-icons > * + *{
  margin-left: 2rem;
}

#join-page-links {
  a {
    svg {
      margin-right: 0.5rem;
    }
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }

    
  
  
}