@import "preflight.css";

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rubik", sans-serif;
}

.subtitle,
.subtitle * {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  color: gray;
}

.left {
  text-align: left;
}

#logo {
  height: 40px;
  align-self: end;
}

body {
  width: 100%;
  height: 100vh;
  padding: 0;
  margin: 0;
  font-family: "Lato", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 0 2rem 0 2rem;
  border-width: 0px;
  border-bottom-width: 1px;
  border-color: gray;
  border-style: solid;
  height: 48px;
}

#nav-container {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  max-width: 80rem;
}

#navleft {
  display: flex;
  flex-direction: row;
  align-self: end;
  height: 100%;
  justify-content: left;
  align-items: center;
  gap: 16px;
  color: black;
}

#navleft > span {
  font-size: 1.25rem;
}

#navlinks {
  display: flex;
  flex-direction: row;
  justify-content: left;
  gap: 16px;
}

#navlinks > a {
  transition: 100ms all;
}

#navlinks > a:hover {
  color: green;
}

.navlink-active {
  color: green;
}

main {
  padding: 2rem 0;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8rem;
}

.full-section {
  padding: 0 2rem 0 2rem;
  width: 100%;
}

.full-section > h2,
.section > h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.section {
  width: 100%;
  max-width: 80rem;
  box-sizing: border-box;
  padding: 0 2rem 0 2rem;
}

.small-section {
    max-width: 42rem;
}

#review-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.limit-reviews .review:nth-child(n + 9) {
  display: none;
}

.limit-reviews .review:nth-child(n + 7) {
  @media (width < 104rem) {
    display: none;
  }
}

.limit-reviews .review:nth-child(n + 5) {
  @media (width < 80rem) {
    display: none;
  }
}

.limit-reviews .review:nth-child(n + 4) {
  @media (width < 54rem) {
    display: none;
  }
}

.review-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  height: fit-content;
  width: 100%;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: thin solid lightgray;
  border-radius: 0.5rem;
  padding: 1.5rem;
  flex-basis: 20rem;
  flex-grow: 1;
}

.review-content {
  white-space: pre-wrap;
}

.review-link {
  float: right;
  margin-bottom: 4px;
  margin-left: 4px;
}

.review-name {
  color: gray;
}

.see-more {
  color: rgb(0 80 152);
}

#about-me-section {
  display: flex;
  flex-direction: column;
  width: fit-content;
  height: fit-content;
  gap: 4rem;

  @media (width >= 48rem) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

#about-me-section > img {
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
  height: 500px;
  width: 100%;

  @media (width >= 48rem) {
    height: 100%;
  }
}

footer {
  background: dimgray;
}

#footer-container {
  display: flex;
  flex-direction: row;
  padding: 2rem;
  justify-content: space-around;
  max-width: 80rem;
  margin: auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: black;
}

.footer-section > * {
  color: white;
}

.footer-header {
  color: lightgray;
}

.faq {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background-color: rgb(247, 243, 240);
  padding: 1rem 1.5rem;
}

.faq > summary {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.input-container {
    margin-bottom: 1rem;
  margin-top: 1rem;
  width: 100%;
}

input {
  width: 100%;
  border-radius: .5rem;
  border: 1px solid lightgray;
  padding: 0 1rem;
  height:3rem;
}

.input-error {
  border: 1px  solid darkred;
}

.input-error-text {
  color: darkred;
}

textarea {
  min-height: 8rem;
  width: 100%;
  padding: 1rem;
  border-radius: .5rem;
  border: 1px solid lightgray;
}

.input-label {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.submit-button {
  width: 100%;
  border-radius: 0.5rem;
  height: 3rem;
  align-text: center;
  color:white;
  cursor: grab;
  background: rgb(55 106 79);
}

.submit-button-inactive {
  background: dimgray;
  cursor: not-allowed;
}
