:root {
  --primary-green:  #419d54;
  --primary-blue:  #07495f;
  --primary-gray: #666666;
  --primary-orange: #d87b46;
  --secondary-gray: #555555;
  --light-gray: #e5e5e5;

  --font-size-large: 24px;

  --section-min-width: 360px;
}

@font-face {
  font-family: 'Roboto';
  src: url('../assets/fonts/Roboto-VariableFont.ttf'),
       url('../assets/fonts/Roboto-Italic-VariableFont.ttf');
}
@font-face {
  font-family: 'Open Sans Condensed';
  src: url('../assets/fonts/opensans-condbold-webfont.ttf');
}
@font-face {
  font-family: 'Trebuchet MS';
  src: url('../assets/fonts/trebuchetms.ttf');
}
@font-face {
  font-family: 'Raleway';
  src: url('../assets/fonts/Raleway-VariableFont.ttf');
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
}

.navBar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: var(--section-min-width);
  max-width: 1168px;
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;

  .logo {
    align-self: flex-start;
  }

  .menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-bottom: 20px;

    .menuItem {
      a {
        text-transform: uppercase;
        font-family: 'Trebuchet MS';
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-gray);
        transition-duration: 0.4s;
        padding: 0 5px;
        text-decoration: none;
        text-wrap-mode: nowrap;
        /* min-width: 166px; */


        &:hover {
          color: var(--primary-orange);
        }
      }
    }
  }
}

.section {
  width: 100%;
  padding: 60px 0;
  min-width: var(--section-min-width);

  &#menu {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 0;
    border-bottom: 2px dotted var(--primary-gray);
  }

  &#description {
    background-color: var(--primary-green);
  }

  &#library,
  &#event {
    background-image: url('../assets/images/library-bg.jpg');
    background-repeat: repeat;
  }

  &#store {
    background-image: url('../assets/images/shop.png');
    background-repeat: repeat;
  }

  &#payment-terms {
    background-color: var(--primary-green);
  }

  &#footer {
    background-color: var(--primary-blue);
    padding: 36px 0;
  }

  &#not-found {
    min-height: calc(100vh - 121px - 128px);
  }

  .sectionContent {
    max-width: 1168px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;

    .title {
      font-size: 36px;
      font-weight: 900;
      font-family: "Open Sans Condensed";
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    .description {
      font-family: 'Raleway';
      font-size: 22px;
      font-weight: 400;
    }
  }
}

#description {

  .picture {
    object-fit: scale-down;
  }

  .description {
    margin-top: 20px;
    color: #eeeeee;
    font-size: 30px;
  }
}

#library,
#store,
#event {
  .title {
    color: var(--primary-orange);
    min-height: 60px;
    background: url(../assets/images/dashed-bg-grey.png) repeat-x scroll center bottom;
  }
}

#payment-terms {
  .title {
    color: var(--primary-blue);
  }

  .description {
    font-size: 16px;
    color: var(--primary-gray);
    text-align: justify;

    a {
      color: #337ab7;

      &:visited {
        color: #07495f;
      }
    }
  }
}

.footerContent {
  align-items: center;
  color: #ffffff;
  gap: 20px;

  a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
  }
}

.libraryList {
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  .libraryCard {
    border: 2px solid var(--light-gray);
    width: 264px;
    min-width: 264px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;

    .imageSmall {
      width: 100%;
      height: 100%;
      object-fit: cover
    }
    .image {
      border-bottom: 2px solid var(--light-gray);
      width: 264px;
      height: 264px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .card {
      font-family: 'Raleway';
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 16px;
      align-items: center;

      .card-title {
        display: flex;
        align-items: center;
        height: 120px;
        font-family: 'Open Sans Condensed';
        font-size: 22px;
        font-weight: 700;
        color: var(--primary-blue);
        text-align: center;
        padding-bottom: 8px;
        border-bottom: 8px solid var(--light-gray);
      }

      .card-author {
        font-weight: 600;
      }

      .card-text {
        height: 120px;
      }

      .card-link {
        text-decoration: none;
        color: var(--primary-orange);
        text-transform: uppercase;
        background-color: var(--light-gray);
        padding: 6px 20px;
        border: none;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 16px;
        font-size: 14px;
        letter-spacing: 2px;
        font-weight: 700;

        &:hover {
          cursor: pointer;
          background-color: var(--primary-gray);
        }
      }

    }
  }
}

.storeList {
    /* border: 1px solid red; */
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  .storeCard {
    border: 2px solid #bbbbbb;
    width: 264px;
    min-width: 264px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;

    .imageSmall {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .image {
      border-bottom: 2px solid var(--light-gray);
      width: 264px;
      height: 264px;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 4px;
    }

    .card {
      font-family: 'Raleway';
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 16px;
      align-items: center;

      .card-title {
        display: flex;
        align-items: center;
        height: 130px;
        font-family: 'Open Sans Condensed';
        font-size: 22px;
        font-weight: 700;
        color: var(--primary-blue);
        text-align: center;
        padding-bottom: 8px;
        border-bottom: 8px solid var(--light-gray);
      }

      .card-price {
        font-size: 26px;
        font-weight: 700;
      }

      .card-text {
        height: 130px;
      }

      .card-link {
        text-decoration: none;
        color: var(--primary-orange);
        text-transform: uppercase;
        background-color: var(--primary-gray);
        padding: 6px 20px;
        border: none;
        border-radius: 8px;
        overflow: hidden;
        margin: 16px 0;
        font-size: 14px;
        letter-spacing: 2px;
        font-weight: 700;

        &:hover {
          cursor: pointer;
          background-color: var(--secondary-gray);
        }
      }

    }
  }

}

.event-pic {
  display: flex;
  justify-content: center;
  align-items: center;
}

#event {
  .title {
    position: sticky;
    top: 72px; /* 72 no menu, 121 unwrapped menu, 147 wrapped menu*/
    background-color: #fefefe;
  }
}

.description {
  .day-header {
    padding: 24px 12px 8px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    @media screen and (width <= 460px) {
      flex-direction: column;
    }
  }
  p {
    margin-bottom: 4px;
  }
  .day-img {
    height: 80px;
    width: auto;
  }
  .day-title {
    font-weight: 600;
    font-size: 24px;
    min-width: 84px;
  }
  .pics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    .day-image {
      max-height: 300px;
      width: auto;
      max-width: 400px;
      @media screen and (width <= 400px) {
        width: 360px;
        height: auto;
      }
    }
  }
}

.location {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 16px 48px;
  @media screen and (width <= 400px) {
    padding: 12px 0 12px 8px;
  }

  .loc-item {
    display: flex;
    gap: 8px;
    font-family: "Roboto";
    font-size: 22px;
    font-weight: 400;
    .loc-title {
      min-width: 140px;
    }
  }
}

.logo-title-img {
  width: 400px;
  height: auto;
  @media (width <= 400px) {
    width: 340px;
  }
}
