@import url('https://fonts.googleapis.com/css2?family=Inter&family=Merriweather&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8e5f8;
}

h1 {
  font-family: 'Merriweather', serif;
  margin: 50px 0 30px;
  text-align: center;
}

.marquee {
	margin: 0 auto;
	white-space: nowrap;
	overflow: hidden;
	position: fixed;
  top: 0;
	left: 0;
	padding: 0.5em;
	background: #f08cb6;
	right: 0;
}
    
.marquee > span {
	display: inline-block;
	padding-left: 100%;
	animation: marquee 30s linear infinite;
}

.marquee span span {
	padding-left: 3em;
	padding-right: 3em;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

.layer-container {
  max-width: 600px;
  margin: 0 auto;
}

.layer {
  background-color: transparent;
  border: 1px solid #9fa4a8;
  border-radius: 10px;
  margin: 20px 0;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.layer.active {
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.layer.active::before,
.layer.active::after {    
  content: '\f27a';
  font-family: 'Font Awesome 6 Free';
  color: #f08cb6;
  font-size: 7rem;
  position: absolute;
  opacity: 0.2;
  top: 50px;  
  left: 20px;
  z-index: 0;
}

.layer.active::before {
  color: #8b33d3;
  top: -10px;
  left: -30px;
  transform: rotateY(180deg);
}

.layer-title {
  font-family: 'Merriweather', serif;
  font-weight: 500;
  margin: 0 35px 0 0;
}

.layer-text {
  display: none;
  margin: 30px 0 0;
}

.layer.active .layer-text {
  display: block;
}

.layer-toggle {
  background-color: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  position: absolute;
  top: 30px;
  right: 30px;
  height: 30px;
  width: 30px;
}

.layer-toggle:focus {
  outline: 0;
}

.layer-toggle .fa-times {
  display: none;
}

.layer.active .layer-toggle .fa-times {
  color: #fff;
  display: block;
}

.layer.active .layer-toggle .fa-chevron-down {
  display: none;
}

.layer.active .layer-toggle {
  background-color: #8b33d3;
}