@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap");

html {
    font-size: 62.5%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", sans-serif;
}

::selection {
    background-color: #1d7484;
    color: white;
}

body {
    font-size: 1.8rem;
    font-family: "Indie Flower", "Times New Roman", Times, serif;
    line-height: 1.618;
    max-width: 38em;
    margin: auto;
    color: #4a4a4a;
    background-color: #f9f9f9;
    padding: 13px;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

hr {
    border-color: #1d7484;
}

a {
    text-decoration: none;
    color: #1d7484;
}

a:hover {
    color: #982c61;
    border-bottom: 2px solid #4a4a4a;
}

a:visited {
    color: #144f5a;
}

/* Navigation Styling */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#menu button {
    flex-grow: 1;
    width: 112px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    background-color: #1d7484;
    color: #f9f9f9;
    cursor: pointer;
    border: none;
    border-radius: 1px;
    border: 1px solid #1d7484;
    padding: 0.5em 0.2em;
    transition: 300ms ease-in-out;
}

#menu button:hover {
    background-color: #982c61;
    border-color: #982c61;
    color: #f9f9f9;
}

/* Gallery Styling */
#category-products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

/* Footer Styling */
footer {
  text-align: center;
  font-size: 2em;
}

footer * {
  display: inline-block;
}

footer h3:hover a {
    color: #982c61;
    text-decoration: none;
    border-bottom: none;
}

footer hr {
  width: 100px;
}

@media screen and (max-width: 600px) {
    footer * {
         display: block;
         margin: 0;
    }

    footer hr {
        width: 100%;
    }

    .mt-4 {
        margin-top: 1em;
    }
}

/* Card Styling */
.card {
  width: 330px;
  border-radius: 10px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  transition: all 200ms ease-in-out;
  float: left;
  position: relative;
  cursor: pointer;
}

.card:hover {
    box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.75);
    transform: translateY(-2px);
}

.lowerCard {
  padding: 5px;
}

.cardImage {
  margin: 0px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 250px;
  width: 330px;
}

.card h3 {
  margin-top: 0px;
  text-align: center;
  font-size: larger;
}

.card p {
  text-align: center;
  margin: 0px;
  padding: 0 5px;
  word-wrap: break-word;
  line-height: 1.3em;
  font-family: Montserrat, "Times New Roman", "Arial";
  height: 150px;
  overflow-y: auto;
}

.card span {
  margin: 0px;
  margin-left: 7px;
  font-weight: bolder;
  text-decoration: underline;
}
