/* ===============================
   GLOBAL STYLES FILE — MOBILE FIRST
   =============================== */

/* ===============================
   IMPORTS
   =============================== */

@import "imports/variables.css";
@import "imports/header.css";
@import "imports/footer.css";

/* ===============================
   RESET AND BASE STYLES
   =============================== */

/* Set base font size to 62.5% (10px) so 1rem = 10px */
html {
  font-size: 62.5%;
}

body {
  display: flex; /* Layout utility: ensures footer stays at bottom of viewport on short pages */
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--main-white-color);
  color: var(--main-black-color);
  font-family: Courier, "Courier New", monospace;
  font-size: 1.4rem;
  line-height: 1.5;
}

main {
  flex-grow: 1; /* Allow main content to grow and push footer down */
  margin: 0 30px;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
}

.legal-list {
  list-style: disc;
  padding-left: 40px;
}

/* Links */
a {
  text-decoration: none;
  font-weight: bold;
  color: var(--dark-blue-color);
}

a:hover {
  color: var(--main-orange-color);
}

/* Design details */
hr {
  border: 4px double var(--dark-orange-color);
  margin-top: 50px;
  margin-bottom: 50px;
}

/* ===============================
   TYPOGRAPHY 
   =============================== */

/* Font sizes */
h1,
.background-image h1 {
  text-align: center;
  font-size: 2.6rem;
}

h2 {
  font-size: 2rem;
}

h3,
nav a {
  font-size: 1.8rem;
}

p,
li,
input,
textarea,
select,
label,
.cta-button {
  font-size: 1.4rem;
}

.footer-column li {
  font-size: 1.2rem;
}

small {
  font-size: 1.2rem;
  display: block;
  text-align: center; /* small is an inline element so I have to make it display block for text-align to work*/
}

/* Font weight */
nav a,
label,
.cta-button {
  font-weight: bold;
}

/* ===============================
   BUTTON 
   =============================== */

.cta-button {
  display: flex;
  color: var(--main-black-color);
  background-color: var(--main-orange-color);
  font-family: Courier, "Courier New", monospace;
  cursor: pointer;
  box-shadow: 5px 5px 5px var(--main-black-color);
  border: 2px solid var(--main-black-color);
  border-radius: 10px;
  padding: 20px;
  margin: 30px auto;
  transition: ease-in-out 200ms;
}

.cta-button:hover {
  color: var(--main-white-color);
  background-color: var(--dark-blue-color);
  border: 3px solid var(--main-white-color);
}

/* ===============================
   MAPS
   =============================== */

.google-map {
  border: none;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  width: 100%;
  height: 300px;
}

.map-container {
  margin: 40px 0;
}

/* Map container for homepage (different main margin) */
.map-container-index {
  margin: 30px;
}

/* ===============================
   IMAGES
   =============================== */

img {
  width: 100%;
  border-radius: 5px;
  margin: 20px 0px;
}

.exhibition-image,
.explore-image {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* ===============================
    MEDIA QUERIES
   =============================== */

/* TABLET (768px - 1024px) */
@media (min-width: 768px) {
  main {
    margin: 0 50px;
  }

  /* Typography */
  .background-image h1 {
    font-size: 3rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3,
  nav a {
    font-size: 2rem;
  }

  p,
  li,
  input,
  textarea,
  select,
  label,
  .cta-button {
    font-size: 1.6rem;
  }

  small,
  .footer-column li {
    font-size: 1.4rem;
  }

  /* Maps */
  .map-container-index {
    margin: 40px;
  }

  .google-map {
    height: 400px;
  }
}

/* DESKTOP (1024px and up) */
@media (min-width: 1024px) {
  main {
    margin: 0 100px;
  }

  /* Typography */
  .background-image h1 {
    font-size: 3.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  h3 {
    font-size: 2.2rem;
  }

  p,
  li,
  .cta-button {
    font-size: 1.8rem;
  }

  small,
  .footer-column li {
    font-size: 1.6rem;
  }

  /* Maps */
  .map-container-index {
    margin: 50px;
  }

  .google-map {
    display: block;
    margin: 0 auto;
    height: 500px;
    max-width: 1300px;
  }
}
