@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100vh;
  font-family: "Playfair Display", serif;
}

.container {
  margin: 5%;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
}
h1 {
  text-align: center;
  animation: growWarning 5s 0s ease-in-out infinite;
}
@keyframes growWarning {
  0% {
    color: black;
    transform: scale(1);
  }
  50% {
    color: orangered;
    transform: scale(1.3);
  }
  100% {
    color: black;
    transform: scale(1);
  }
}
.docs {
  display: flex;
  gap: 1%;
}
.searchContainer {
  margin-left: 5%;
}
#searchFor {
  width: 100%;
  font-size: 22px;
  padding: 5px 20px;
  background-color: goldenrod;
  border: 1px solid goldenrod;
  border-radius: 5px;
  margin-bottom: 15px;
}
input[type="text"] {
  color: white;
}
input::placeholder {
  color: white;
}
#illness {
  list-style-type: none;
}

#illness li a {
  border: 1px solid white;
  margin-top: -2px;
  background-color: goldenrod;
  padding: 10px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  display: block;
}

#illness li a:hover:not(.header) {
  background-color: rgb(240, 212, 140);
  color: black;
}

/* card */
.card {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 740px;
  height: 800px;
  font-size: 1.25rem;
  border-radius: 5px;
  border: 2px solid goldenrod;
  box-shadow: 2px 2px 8px goldenrod;
  background-color: rgb(247, 225, 170);
  display: flex;
  flex-direction: column;
}
#cardTitle {
  text-align: center;
  width: 100%;
  background-color: orangered;
  color: white;
  padding: 5px;
}
#details {
  text-align: left;
  width: 100%;
  color: black;
  padding: 5%;
}
#details a {
  text-decoration: none;
  color: black;
}
#details a:hover {
  color: orangered;
}
#close {
  position: absolute;
  top: 7.5px;
  right: 5px;
  cursor: pointer;
}
.hidden {
  display: none;
}
#back,
#next {
  text-decoration: none;
  color: goldenrod;
  font-size: 20px;
  font-weight: bold;
}
#back:hover,
#next:hover {
  color: orangered;
}
#next {
  margin-left: 650px;
}
