/* Radio Snack Styles */

:root {
  --purple: #643df2;
  --green: #13f274;
  --gray: rgb(216, 216, 245);
  --orange: #F2522E;
  font-family: 'Barlow Semi Condensed', sans-serif;
}

::selection {
  background-color: var(--green);
  color: black;
}

html {
  background-color: var(--purple);
  color: white;
}

body {
  margin: 0;
}

main {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  min-height: 100vh;
}

nav {
  border-bottom: 8px solid var(--green);
  display: flex;
  flex-direction: row;
  align-items: center;
}

nav img {
  width: 200px;
}

.hamburger,
#nav-toggle {
  display: none;
}

nav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

nav li a {
  color: white;
  display: inline-block;
  text-decoration: none;
  padding: 1rem;
  font-size: 1.3rem;
}

header {
  font-size: 65px;
  font-weight: 600;
  max-width: 700px;
  line-height: 1.3em;
}

header img {
  max-width: 600px;
  width: 100%;
}

h2 {
  font-size: 30px;
  margin-top: 30px;
  margin-bottom: 15px;
}

p {
  line-height: 1.3em;
}

.button {
  background: var(--green);
  color: black;
  padding: 1rem 2rem;
  display: inline-block;
  text-decoration: none;
}

.button:hover {
  background: var(--gray);
}

.callout {
  display: flex;
  flex-direction: row;
  gap: 3rem;
}

/* events */

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .5rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.event {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s, background-color 0.2s;
  height: 100%;
  box-sizing: border-box;
}

.event:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.event img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.1);
}

.event h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.event time {
  font-size: 0.9rem;
  opacity: 0.8;
  display: block;
}

.events-list a {
  text-decoration: none;
  color: white;
}

footer {
  background: var(--green);
  color: black;
  margin: 0;
  padding: 1rem;
  text-align: center;
  margin-top: 8rem;
}

.banner-link {
  display: block;
  text-align: center;
}

.banner-link img {
  max-width: 100%;
  height: auto;
}

.centered {
  text-align: center;
}

@media screen and (max-width: 768px) {
  /* Hamburger menu */
  nav {
    display: grid;
    grid-template-areas:
    "logo hamburger"
    "menu menu";
  }
  nav ul {
    grid-area: menu;
    display: none;
    flex-direction: column;
    text-align: center;
  }
  nav img {
    grid-area: logo;
  }
  .hamburger {
    grid-area: hamburger;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    justify-self: end;
    margin-right: 1rem;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--green);
    margin: 3px 0;
    transition: 0.3s;
    display: block;
  }

  #nav-toggle:checked ~ ul {
    display: flex;
  }

  #nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  /* other misc mobile styles */

  header {
    font-size: 35px;
  }

  .callout {
    display: block;
  }

  .events-list {
    grid-template-columns: 1fr;
  }
}

