:root {
    /* Durham-inspired palette */
    --durham-purple: #6E3B87;
    /* Primary */
    --durham-light: #B18FCF;
    /* Accent */
    --durham-lighter: #E9D8F2;
    /* Background accent */
    --text-dark: #1c1c1c;
    --text-light: #ffffff;
    --bg-light: #faf8fc;
    --card-bg: #ffffff;
    --border-radius: 10px;
    --font-main: 'Inter', sans-serif;
    --transition: 0.25s ease;
}

/* Defining the fadeIn animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* optional: subtle upward motion */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f9f9f9;
}

header, footer {
  background-color: var(--durham-purple);
  color: var(--text-light);
  text-align: center;
  padding: 1.5rem 1rem;
}

header h1 {
    color: var(--durham-lighter);
    margin: 0;
}

nav a {
    color: var(--text-light);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 600;
}

nav a.active,
nav a:hover {
    color: var(--durham-light);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.map-window {
  width: 90%;
  height: 70vh;
  border: 2px solid #ccc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: white;
}

#map {
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .map-window {
    height: 70vh;
  }
}

/* HEADER LAYOUT + LOGO */
header {
    position: relative;
}

.logo {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 64px;
    width: auto;
    background-color: transparent;
}

.weather {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 64px;
    width: auto;
    background-color: transparent;
}

/* TOGGLE STYLES */
.toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.toggle-wrapper p {
  margin: 0;
  font-weight: bold;
}

.toggle-checkbox {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  z-index: 1;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.toggle-container {
  display: flex;
  align-items: center;
  position: relative;
  border-radius: .375em;
  width: 3em;
  height: 1.5em;
  background-color: var(--durham-purple);
  box-shadow: 
    inset 0 0 .0625em .125em rgb(255 255 255 / .2),
    inset 0 .0625em .125em rgb(0 0 0 / .4),
  ;
  transition: background-color .4s linear;
}

.toggle-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: .0625em;
  border-radius: .3125em;
  width: 1.375em;
  height: 1.375em;
  background-color: #e4ddcf;
  box-shadow:
    inset 0 -.0625em .0625em .125em rgb(0 0 0 / .1),
    inset 0 -.125em .0625em rgb(0 0 0 / .2),
    inset 0 .1875em .0625em rgb(255 255 255 / .3),
    0 .125em .125em rgb(0 0 0 / .5),
  ;
  transition: left .4s;
}

.toggle-button-circles-container {
  display: grid;
  grid-template-columns: repeat(3, min-content);
  gap: .125em;
  position: absolute;
  margin: 0 auto;
}

.toggle-button-circle {
  border-radius: 50%;
  width: .125em;
  height: .125em;
  background-image: radial-gradient(circle at 50% 0, #f6f0e9, #bebcb0);
}

.toggle-checkbox:checked ~ .toggle-container {
  background-color: grey;
}

.toggle-checkbox:checked ~ .toggle-button {
  left: 1.5625em;
}