@font-face { font-family: rosmary; src: url('Rosemary.ttf'); } 

.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-behavior: smooth;
}

.popover {
 display:contents;
 box-shadow: 0px 6px 8px rgba(19, 19, 19, .7);
}

.popover:target {
position: absolute;
right: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.popover .content2 {
  height: 80%;
  width: 0%;
  transition-delay: 0s;
  display:block;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 0;
  height: 0;
  color: #fff;
  background:transparent;
  border: solid;
  border-color: transparent;
  animation: 0s grow ease forwards;
  text-align: center;
}

.popover .content {
  height: 70%;
  width: 70%;
  transition-delay: 0s;
  display:block;
  align-items: center;
  justify-content: center;
  position: absolute;
  background:transparent;
  width: 0;
  height: 0;
  opacity: 1;
  animation: 0s grow ease forwards;
  text-align: center;
}

.box {
  transition-delay: 0s;
  display:block;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  top: 50%;
  height: 50%;
  color: #fff;
  opacity: 0.25;
  text-align: center;
  animation: img-out 1s;
  font-family: rosmary;
}

.box2 {
  height: 90%;
  width: 100%;
  border: solid;
  border-color: #690825;
}

.box:hover{
  cursor: pointer;
  animation: img-in 1s;
  opacity: 1;
}



h2 {
  color: black;
  position: relative;
  top: 20%;
  opacity: 100%;
  font-family: sans-serif;
  text-shadow: 2px 2px 4px black;
  animation: hold-0 1s;
}

h3{
  position: relative;
  justify-content: center;
  top: 20%;
  left: 0%;
  opacity: 100%;
  animation: img-in 2s;
}

h4{
  text-decoration-line: underline;
  position: relative;
  justify-content: center;
  top: 20%;
  left: 0%;
  opacity: 100%;
  animation: img-in 2s;
}

.popover p {
padding: 50px;
opacity: 0;
animation: 1s fadeIn ease forwards 1s;
}

@keyframes grow {
100% {
  height: 90%;
  width: 90%;
}
}

@keyframes fadeIn {
100% {
opacity: 1;
}
}

@keyframes slideUp {
100% {
  transform: translateY(0);
  opacity: 1;
}
}

@keyframes hold-0{
  0%{opacity: 0;}
  50%{opacity: 0;}
  100%{opacity: 1;}
} 

@keyframes img-in{
  0%{opacity: 0.25;}
  100%{opacity: 1;}
}

@keyframes img-out{
  0%{opacity: 1;}
  75%{opacity: 0.25;}
}