/* Base layout and font */
html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal scroll */
  font-family: 'Inter', Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  display: flex;
  flex-direction: column;
  
}
html {
  scroll-behavior: smooth;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-around; /* or space-between / space-evenly */
  align-items: center;
  color: white;
  background-color: rgba(0, 94, 170, 0.822); /* or your preferred color */
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.top-nav a {
  flex: 1;                      /* Make each link take equal space */
  text-align: center;          /* Center text inside */
  text-decoration: none;
  padding: 12px 0;
  color: white;
  font-weight: bold;
  border-right: 1px solid #eee; /* Optional: divider */
}

.top-nav a:last-child {
  border-right: none;          /* Remove divider from last link */
}

.top-nav a:active {
  transform: scale(0.87);
  transition: transform 0.2s;
}
body {
  padding-top: 60px; /* prevents content from hiding under fixed nav */
}




/* Content wrapper with side margin */
.content {

  flex: 1;
  margin: 2rem;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .content {
    margin: 1rem;
  }
}

/* Sticky footer */
.footer {
  background-color: rgb(30, 113, 179);
  width: 100%;
  text-align: center;
  padding: 20px 0;
  color: white;
  box-sizing: border-box;
}

/* Headings */
h1, h2 {
  font-weight: 600;
}

/* Forms */
form {
  margin-bottom: 2rem;
}

/* Logo styling */
.byuilogo {
  height: 60px;
  width: auto;
  align-items: center;
}

/* Inputs & buttons */
input[type="text"] {
  padding: 0.75rem;
  font-size: 1rem;
  width: 250px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  background-color: rgb(0, 109, 182);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.name_button {
  background-color: none;
  color: #333;

}

button:hover {
  background-color: rgba(0, 110, 182, 0.8);
}

/* Schedule grid */
.schedule-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  padding: 1rem;
}

.modal-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}



.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}


.para {
  text-indent: 2em; /* or whatever size you like */
  margin-bottom: 1em; /* optional: add space between paragraphs */
}


.schedule-box {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0; /* For fade in */
  transform: translateY(20px);
}

.schedule-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.schedule-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #222;
}

/* PDF list & links */
ul.pdf-list {
  list-style: none;
  padding: 0;
}

ul.pdf-list li {
  margin-bottom: 0.5rem;
}

ul.pdf-list li a {
  color: #007bff;
  text-decoration: none;
}

ul.pdf-list li a:hover {
  text-decoration: underline;
}

/* PDF containers */
.pdf-container {
  margin-bottom: 2rem;
  max-width: 600px;
}

canvas {
  border: 1px solid #ccc;
  max-width: 100%;
  height: auto;
  display: block;
}

/* PDF controls - Flex for buttons */
.pdf-controls {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* wrap on small screens */
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.pdf-controls button {
  flex: 1 1 auto;
  min-width: 0; /* allow shrinking */
  text-align: center;
  padding: 0.5rem;
}

/* Animation: highlight & fade slide up */
@keyframes highlightFade {
  0% { background-color: #ffffcc; }
  100% { background-color: white; }
}

.schedule-box.highlight {
  animation: highlightFade 2s ease forwards;
}

.schedule-box.lift {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.schedule-box.in-view {
  animation: fadeSlideUp 2s ease forwards;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile tweaks */
@media (max-width: 600px) {
  input[type="text"] {
    width: 100%;
    box-sizing: border-box;
  }

  button {
    width: 100%;
    margin-top: 0.5rem;
  }
  .pdf-controls button {
    flex: 1;
    margin: 0 0.25rem; /* Optional: side margin between buttons */
    padding: 0.5rem;
    text-align: center;
  }

  .schedule-container {
    display: flex;
    flex-direction: column;
  }

  .schedule-box {
    min-width: 100%;
    box-sizing: border-box;
  }
  .modal-content {
    max-width: 90%;
  }
}
