@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Open+Sans:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background-color: #103b33;
  max-width: 700px;
}

h1,
h2,
h3 {
  font-family: 'DM Serif Display', serif;
  margin: 0;
  padding: 0;
  color: #f1e3d5;
}

p {
  margin: 0;
  padding: 0;
  color: #f1e3d5;
}

a {
  text-decoration: none;
}

.back-arrow {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: rgba(217, 217, 217, 0.4);
  color: white;
  font-size: 2.4rem;
  border-radius: 60px;
  box-shadow: 0 0 2px #888;
  padding: 0.2em 0.4em;
}

.header-container {
  position: fixed;
  max-width: 700px;
  z-index: 1000;
  top: 0;
  background-color: #0a2722;
  height: 16rem;
  width: 100%;
}

.header-container h1 {
  font-size: 3rem;
  margin: 2rem 2rem 2rem;
  text-align: center;
}

.header-container p {
  font-size: 1.8rem;
  margin: 0 2rem 4rem 2rem;
  text-align: center;
}

main {
  margin-top: 18rem;
  margin-bottom: 2rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.a-click {
  z-index: 100;
  height: 100%;
}

.new-card {
  position: relative;
  margin: 0 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  flex: 0 0 20rem;
}

.new-card::after {
  content: '';
  background-image: var(--my-bg-img);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  opacity: var(--text-opacity, 0.6);
  z-index: -1;
  border-radius: 1rem;
}

.inner-text {
  font-size: 1.6rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inner-text p {
  color: white;
}

.hide {
  display: none;
}

figure,
ul,
li {
  margin: 0;
  padding: 0;
  color: white;
}

figure {
  margin-bottom: 1rem;
}

figcaption {
  font-weight: bold;
  margin-bottom: 1rem;
}

ul {
  list-style-type: none;
}

.new-card-title {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  max-width: 150px;
  z-index: 100;
}

.caret {
  background-color: rgba(217, 217, 217, 0.4);
  align-self: end;
  color: white;
  font-size: 3rem;
  border-radius: 60px;
  box-shadow: 0 0 2px #888;
  padding: 0.2em 0.6em;
  z-index: 100;
}

.rotate {
  -moz-transition: all 0.5s linear;
  -webkit-transition: all 0.5s linear;
  transition: all 0.5s linear;
}
.rotate.down {
  -moz-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

.tips-card {
  margin: 0 2rem;
  border-radius: 1rem;
  display: flex;
  height: 20rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.tips-card::after {
  background-color: rgba(0, 0, 0, 0.3);
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 1rem;
  width: 100%;
  /* pointer-events: none; */
}

@media screen and (min-width: 700px) {
  body {
    margin: 0 auto;
  }
}
