html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f6f8fa;
}

#home-page {
  min-height: 100vh;
  padding: 2rem 2rem 4rem;
}

/* Header - Normal */

#home-page-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

#home-page-header h1 {
  flex: 1;
  margin-bottom: 0.5rem;
  min-width: 6rem;
  font-size: 3rem;
}

#home-page-header h1:first-child {
  text-align: right;
  margin-right: 0.25rem;
}

#home-page-header img {
  align-content: center;
  object-fit: contain;
  max-width: 100%;
  max-height: 6rem;
}

/* Category Tabs */

#category-tabs-container {
  width: 100%;
  margin: 0 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#category-tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  list-style-type: none;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
}

.category-tab-button {
  padding: 0.5rem 0.5rem 0.25rem !important;
  text-decoration: none !important;
  background-color: transparent;
  color: black;
  border: none;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: normal;
}

.category-tab-button.active {
  border-bottom: 4px solid black;
  font-weight: bold;
}

/* Search Bar */

#search-bar-container {
  display: flex;
  justify-content: center;
}

#search-input {
  width: 90%;
  max-width: 20rem;
  margin: 0 0 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border-style: solid;
  font-size: 1rem;
}

/* Links */

#links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.link-card {
  position: relative;
  padding: 1.5rem;
  background-color: white;
  text-decoration: none !important;
  color: black;
  border: 3px solid transparent;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.link-card:hover {
  border: 3px solid cornflowerblue;
}

.link-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.link-card-image {
  height: 4rem;
  width: 4rem;
}

.link-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: left;
}

.link-card-body {
  flex: 1;
  color: #777676;
  text-align: left;
}

/* Media queries */
@media (max-width: 1000px) and (orientation: portrait) {
  html {
    font-size: 36px;
  }
  #home-page {
    padding: 1rem 1rem 2rem;
  }
  #home-page-header {
    gap: 0.5rem;
  }
  #home-page-header img {
    max-height: 2rem;
  }
  #home-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
  }
  #search-input {
    font-size: 1.5rem;
  }
  #links-container  {
    gap: 0.5rem;
  }
  .link-card-body {
    font-size: 1rem;
  }
}
