* {
    margin: 0; padding: 0;
   
    /* background: #000 !important;
   color: #0f0 !important;
   outline: solid #f00 1px !important; */
  }
  
.logo a{
    color: black;
    text-decoration: none;
    font-size: 30px;
    
}

a {
  text-decoration: none;
}

/* sets different rules for narrower screens (usually meaning mobile) If
you want to quickly test how this works on your computer, just make your 
browser window really skinny */
@media screen and (max-width: 800px) {

    .logo {
        font-size: 20px !important;
    }
    
  }

  .name {
    display: inline;
    opacity: 0.6;
    cursor: default;
    transition: color 4000ms;
    user-select: none;
    -webkit-user-select: none;
}

.name:hover {
    opacity: 1;
    color: #e77500;
    transition: color 0ms;
}

#names::-webkit-scrollbar {
    display: none;
}

#names {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    margin: 0px 10px;
    font-size: 12px;
    animation: slide 120s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(0%, 0%);
    }
    90% {
        transform: translate(0%, -100%);
    }
    90.001% {
        transform: translate(0%, 100%);
    }
    100% {
        transform: translate(0%, 0%);
    }
}

#front {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#title {
    font-family: franklin-gothic-urw, sans-serif;
    font-size: 6rem;
    text-align: center;
    line-height: 90px;
    text-transform: uppercase;
}

a > p {
    font-family: franklin-gothic-urw, sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: black;
}

a > p:hover {
    text-decoration: underline;
}

a > p:active {
    color: orange;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    height: 100%;
}

#logo {
    width: 300px;
}

#logo:hover {
    opacity: 65%;
}

@media screen and (max-width: 700px) {
    #title {
        font-size: 4.2rem;
        line-height: 60px;
    }
}

@media screen and (max-width: 500px) {
    #title {
        font-size: 3rem;
        line-height: 50px;
    }
}

/* Skyscraper Ad Styles */
.skyscraper-ad {
    position: fixed;
    top: 50%;
    right: -350px; /* Hidden initially */
    transform: translateY(-50%);
    width: 300px;
    height: 600px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: right 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.close-ad-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10;
}

.skyscraper-ad.slide-out {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none; /* Prevent clicks while sliding out */
}

.skyscraper-ad:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: -8px 0 25px rgba(0,0,0,0.4);
}

.skyscraper-ad.visible {
    right: 10px;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.scroll-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1001;
}

#hero-image {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url(../images/commencement-hero.jpg);
    background-size: cover;
    background-position: center top;
}

#title {
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.scrolling-names {
    animation: scroll-up linear infinite;
    animation-duration: 100s;
}


/* senior congrats section */
.top-section {
  display: flex;
  flex-direction: column;
  width: 66.7%;
}

.top-content {
  width: 100%;
  /* margin-bottom: 2rem; */
}

.articles {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2rem;
  max-width: 100%;
  max-height: 100%;
}

.scroll-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  scroll-behavior: smooth;
  /* padding: 10px 0; */
}

.scroll-card {
  flex: 0 0 auto;
  width: 250px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-title {
  font-family: 'sofia-pro', serif;
  font-weight: bold;
  padding: 2px;
}

.card-text {
  font-size: small;
}

.card-left {
  rotate: 1deg;
}

.card-right {
  rotate: -1deg;
}

.scroll-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 2rem;
}

.scroll-buttons button {
  background-color: #b96f2e;
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 20px;
  padding: 15px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.scroll-buttons button:hover {
  background-color: #8f5522;
}

.scroll-buttons button:active {
  transform: scale(0.96);
}

.scroll-card {
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
  margin-right: 10px;
  object-fit: fit;
}

.no-padding {
    padding: 0;
}

.scroll-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto; 
  scroll-behavior: smooth;
}