* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  margin: 0px;
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  color: white;
  overflow-y: hidden;
  background-image: url("images/bg.jpg");
  background-size: cover;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.432);
}

nav {
  padding: 25px;
}

a {
  padding: 10px;
  text-decoration: none;
  font-family: "Cinzel", serif;
  color: white;
  border: 1px solid white;
  background-color: rgba(0, 0, 0, 0.63);
  border-radius: 5px;
  transition: 0.3s;
}

a:hover {
  color: #f8be4a;
  border-color: #f8be4a;
}

header {
  text-align: center;
  margin: 50px;
  font-family: "Cinzel", serif;
  font-size: 20px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 75px;
  margin-right: 200px;
  margin-top: 20px;
  height: 400px;
}

.card {
  position: relative;
  cursor: pointer;
  transition: 0.5s;
}

.card:hover {
  transform: translate(0, -15px);
}

.back {
  position: absolute;
  height: 380px;
  border: 1px solid black;
  border-radius: 3%;
  transition: 0.5s;
}

.back:hover {
  box-shadow: rgba(245, 200, 54, 0.35) 0px 5px 40px;
}

.back.selected {
  box-shadow: rgba(245, 200, 54, 0.35) 0px 5px 40px;
}

.reading {
  display: flex;
  justify-content: center;
  position: relative;
  opacity: 0;
  transition: opacity 3s;
  cursor: auto;
  z-index: 2;
  padding: 50px;
}

.content {
  display: flex;
  flex-direction: row;
  gap: 25px;
  margin: 25px;
  cursor: auto;
}

.description h2 {
  font-family: "Cinzel", serif;
  font-size: 25px;
}

.description {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 400px;
  font-family: "Source Serif Pro", serif;
  font-size: 18px;
}

.front {
  height: 250px;
}

.button-container {
  display: flex;
  justify-content: center;
  margin: 50px;
  opacity: 0;
  transition: opacity 3s;
}

.button {
  width: 250px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  color: #f8be4a;
  border-color: #f8be4a;
}

@media screen and (max-width: 1800px) {
  body {
    overflow: scroll;
  }

  .reading {
    flex-wrap: wrap;
  }

  .button-container {
    margin-bottom: 50px;
  }
}
