@font-face {
  font-family: dollieScript;
  src: url('./assets/font/DollieScript_PersonalUse.ttf');
}

body {
  font-family: dollieScript;
  margin: 0;
}

*, *::before, *::after {
  box-sizing: inherit;
}

.panels {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.panel {
  align-items: center;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: all .7s cubic-bezier(0.61, -0.19, 0.7, -0.11);
}

.panel--active {
  flex: 5;
}

.panel p {
  align-items: center;
  display: flex;
  flex: 1 0 auto;
  font-size: 3em;
  justify-content: center;
  margin: 0;
  text-shadow: 1px 0 0 #BFBFBF;
  transition: all .7s ease-in;
  width: 100%;
}

.panel p:first-child {
  transform: translateY(-100%);
}

.panel p:last-child {
  transform: translateY(100%);
}

.panel--active p:first-child,
.panel--active p:last-child {
  transform: translateY(0);
}

.panel p:nth-child(2) {
  font-size: 5em;
}

.panel1 {
  background-color: #E0218A;
}

.panel2 {
  background-color: #F7B9D7;
}

.panel3 {
  background-image: url('./assets/images/3.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.panel4 {
  background-color: #ED5C9B;
}

.panel5 {
  background-color: #FACDE5;
}