@charset "UTF-8";
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/RedditSans-VariableFont_wght.ttf"); /* IE9 Compat Modes */
}
html, body {
  height: 100vh;
  margin: 0;
  max-width: 100vw;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #Fff;
  font-family: "Open Sans", sans-serif;
  text-align: center;
}

body {
  background: #682E1A;
}

.body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Left-align content by default */
  background: linear-gradient(to bottom right, #682E1A, #E58339);
  font-size: 1.2rem; /* Default for smartphones */
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  text-align: left; /* Default text alignment to left */
}

/* Center specific elements (div, h1, h2, etc.) */
.body div,
.body h1,
.body h2,
.body h3,
.body h4,
.body h5,
.body h6 {
  text-align: center; /* Center text for these elements */
  align-self: center; /* Center these elements horizontally within the flex container */
}

/* Center images, respecting inline width */
.body img {
  display: block; /* Ensure image behaves as a block for centering */
  align-self: center; /* Center horizontally in flex container */
  margin-left: auto; /* Fallback centering */
  margin-right: auto; /* Fallback centering */
  max-width: 25%; /* Prevent overflow on smaller screens */
  height: auto; /* Maintain aspect ratio */
  width: auto; /* Default to intrinsic width, allowing inline width to take precedence */
}

/* For main content width */
main {
  max-width: 700px; /* Default for smartphones */
}

/* For tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .body {
    font-size: 1.4rem; /* Slightly larger for tablets */
  }
  main {
    max-width: 900px; /* Medium max-width for tablets */
  }
}
/* For PCs (1024px and above) */
@media (min-width: 1024px) {
  .body {
    font-size: 1.5rem; /* Larger for PCs */
  }
  main {
    max-width: 1000px; /* Larger max-width for PCs */
  }
}
.heart:after {
  content: "❤️";
  font-size: 1.75em;
}

.crab:after {
  content: "🦀";
  font-size: 1.75em;
}

h1 + .subtitle {
  display: block;
  margin-top: -1em;
}

* {
  box-sizing: border-box;
}

.header {
  position: sticky;
  top: 0;
}

.header a {
  float: left;
  color: black;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
}

.header a.logo {
  font-size: 25px;
  font-weight: bold;
}

.header a:hover {
  background-color: #ddd;
  color: black;
}

.header a.active {
  background-color: #E58339;
  color: white;
}

.header-right {
  float: right;
}

@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }
  .header-right {
    float: none;
  }
}
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    background-color: #333;
  }
}
.topnav {
  overflow: visible;
  background-color: #333;
  min-height: 50px;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  position: sticky;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #E58339;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
.btn {
  background: #E58339;
  color: white;
  padding: 10px 20px;
  border-radius: 15px;
  border: 0px;
  display: inline-block;
  align-self: center;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #f0964f;
  transform: translateY(-1px);
}

/* Events overview grid */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  align-self: stretch;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.event-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.event-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  align-self: stretch;
  flex: 0 0 auto;
}

.event-detail-image {
  width: 100%;
  height: 280px;
  align-self: stretch;
  overflow: hidden;
}

.event-card-image img,
.event-detail-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

@media (min-width: 768px) {
  .event-detail-image {
    height: 360px;
  }
}
.event-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  text-align: left;
  gap: 10px;
  padding: 18px 20px 22px;
  flex: 1 1 auto;
}

.event-card-body h2 {
  margin: 0;
  text-align: left;
  align-self: stretch;
  font-size: 1.15rem;
}

.event-card-description {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.event-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.event-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.event-badge.upcoming {
  background: #E58339;
  color: #fff;
}

.event-badge.past {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  opacity: 0.8;
}

/* Single event detail page */
.event-detail {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: stretch;
  text-align: left;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

.event-detail-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  text-align: left;
  gap: 14px;
  padding: 24px 28px 32px;
}

.event-detail-body h1 {
  margin: 0;
  text-align: left;
  align-self: stretch;
}

.event-description,
.event-location {
  margin: 0;
}

.event-location {
  opacity: 0.85;
  font-size: 0.95rem;
}

.talks-list {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
}

.talk-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
  align-self: stretch;
  text-align: left;
}

.talk-card h3 {
  margin: 0 0 4px;
  text-align: left;
  align-self: stretch;
  font-size: 1.05rem;
}

.talk-speaker {
  margin: 0 0 8px;
  font-size: 0.85rem;
  opacity: 0.75;
  font-style: italic;
}

.talk-description {
  margin: 0 0 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.talk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.talk-link {
  display: inline-block;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.talk-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

.event-detail-back {
  margin-top: 10px;
}
