@import url('./sections/hero.css');
@import url('./svg/svg-styles.css');
@import url('./sections/mural-overview.css');
@import url('./sections/mural-symbolism.css');
@import url('./sections/mural-artists.css');
@import url('./sections/navbar.css');
@import url('./sections/footer.css');
@import url('./sections/art.css');
@import url('./components/section-divider.css');
@import url('./components/menu-icon.css');

:root {
  --primaryOrange: #FF9800;
  --pouPurple: #9055A2;
  --pouPink: #DB0D81;
  --pouRed: #EE2648;
  --offWhite: #CCC;
  --bgBlack: #292929;
  --bgDarkerBlack: #2F2F2F;
  --bgFooterBlack: #1F1F1F; 
}

@font-face {
  font-family: 'Motter Ombra';
  src: url('../fonts/Motter-Ombra-Normal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
 margin: 0;
 padding: 0;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    background-color: #292929;
}

h1 {
    font-family: 'Motter Ombra';
    font-size: 4rem;
    padding-bottom: 1rem;
    font-weight: 400;
    color: var(--primaryOrange);
}

h2 {
    font-family: sans-serif;
    padding-bottom: 1rem;
    font-size: 2rem;
    font-weight: 400;
    color: var(--offWhite);
}

h3 {
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--offWhite);
}

h4 {
    font-family: sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--offWhite);
}

p {
    padding-top: 1rem;
    font-family: sans-serif;
    color: var(--offWhite);
}

p a,
.useful-links-ul li a {
  color: #B388D9;
  font-family: sans-serif;
  text-decoration: none;
}

.accessibility-toggle {
  color: #D7A3E5 !important;
  text-decoration: underline !important;
}

.accessibility-toggle:hover {
  color: #E6B9F0 !important;
}

p a:hover,
.useful-links-ul li a:hover {
  text-decoration: underline;
}

hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-color: #ccc;
  opacity: 0.2;
}

@media (min-width: 601px) {
  hr {
    width: 80%;
  }
}
@media (max-width: 600px) {
  hr {
    width: 100%;
  }
}

.useful-links-ul {
  margin-left: 1rem;
}

.useful-links-ul li {
  color: var(--offWhite);
  margin-bottom: 0.5rem;
}


/* Mobile (small devices, 0px to 599px) */
@media (max-width: 599px) {
  /* styles for mobile */
  .flex-content-container {
    padding: 2.5rem 0.5rem;
  }
}

/* Tablet (medium devices, 600px to 1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
  /* styles for tablets */
  .flex-content-container {
    padding: 2.5rem 0.75rem;
  }
}

/* Desktop (large devices, 1024px and up) */
@media (min-width: 1024px) {
  /* styles for desktops */
  .flex-content-container {
    padding: 3.75rem 4rem;
  }
}

.image-container {
    visibility: hidden;;
    width: 100%;
    height: auto;
}

.image-container {
  width: 0px;
  height: 0px;
}

.image-container img {
  /* display: none; */
  width: 100%;
  display: block;
}

img {
  filter: brightness(0.9);
}

.image-full {
  opacity: 0;
  transition: opacity 1s ease;
}

.image-full.fade-in {
  opacity: 1;
}

/** Desktop: flex image/text items row layout */
.flex-content-container {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
}

.flex-item-image {
    width: 50%;
    height: auto;
}

.flex-item-text {
    box-sizing: border-box;
    width: 50%;
}
.text-padding-left {
    padding-left: 2rem;
}

.text-padding-right {
    padding-right: 2rem;
}

.text-full-width {
  width: 100%;
}

.niu-dawn-hub-textbox {
  padding-top: 0px;
  padding-bottom: 12px;
}

@media (min-width: 601px) {
  .niu-dawn-hub-textbox {
    width: 80%;
  }
}
@media (max-width: 600px) {
  .niu-dawn-hub-textbox {
    width: 100%;
  }
}


@media (min-width: 1024px) {
  .image-container img {
    max-height: 600px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .image-container img {
    object-fit: contain;
    height: auto;
    max-height: 400px;
  }
}
/* Tablet/Small Desktop: Stack article content, shrink image size */
@media (min-width: 601px) and (max-width: 1023px) {
  .image-container img {
    object-fit: scale-down;
    max-height: 400px;
  }
}

@media (max-width: 1023px) {

  .flex-item-image {
    width: 100%;
  }

  .flex-item-text {
    width: 100%;
  }

  .flex-content-container {
    flex-direction: column;
  }

  .flex-item-text {
    order: 2;
    padding-left: 0px;
    padding-top: 24px;
  }

  .flex-item-image {
    order: 1;
  }

  .text-padding-left {
    padding-left: 0px;
  }

  .text-padding-right {
      padding-right: 0px;
  }
}


/** Image loading styles and animations */

.image-loading-container {
    width: 100%;
    height: 100%;
    background-color: var(--bgDarkerBlack);
    border-radius: 6px;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;
}

.image-loading-item {
    width: 50%;
}

.spinner {
  transform-origin: 50% 50%;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.fade-in-out {
  animation: fadeText 2s ease-in-out infinite;
}

@keyframes fadeText {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}