@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

.onab-banner {
  position: relative;
  width: 100%;
  max-width: 1150px;
  height: 150px;
  background: url('../images/onab-banner-bg-1.png') no-repeat center center;
  background-size: cover;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-family: 'Open Sans', sans-serif;
  margin: 20px auto;
}

.onab-text-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onab-text-slide {
  font-family: 'Open Sans', sans-serif;
  position: absolute;
  color: #ede4cc;
  text-shadow: 1px 1px #00243D;
  font-size: 34px;
  line-height: 1.2;
  font-weight: bold;
  opacity: 0;
  animation: onabCrossfade 8s infinite;
  transition: opacity 1s ease-in-out;
}

.onab-text-slide:nth-child(1) { animation-delay: 0s; }
.onab-text-slide:nth-child(2) { animation-delay: 4s; }

@keyframes onabCrossfade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  40%  { opacity: 1; }
  45%  { opacity: 1; }
  55%  { opacity: 0; }
  100% { opacity: 0; }
}

.onab-banner-link {
  display: inline-block;
  width: 100%;
  max-width: 1150px;
  text-decoration: none;
  color: inherit;
  margin: 20px auto;
}

.onab-banner-link:hover {
  cursor: pointer;
}
