* {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
}

body {
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  margin: 16px;
  border: solid 2px white;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: white;
  bottom: calc(-100% + 5px);
  left: 0;
  transition: 1s ;
  z-index: -1;
}

.card:hover::after{
  bottom: 0;
}
.card:hover .card-p, .card:hover .card-h1, .card:hover .card-button {
  color: black;
}

.card-h1 {
  font-size: 36px;
  text-decoration: underline;
  margin-bottom: 20px;
  transition: 1s;
}

.card-p {
  width: 90%;
  text-align: center;
  font-size: 18px;
  transition: 1s;
}

.card-button {
  margin: 16px;
  padding: 8px 16px;
  color: white;
  background-color: gray;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: not-allowed;
  transition: 1s;
}




.card2 {
  width: 400px;
  height: 280px;
  position: relative;
  background-color: #606060;
  margin: 50px;
  box-shadow: 0 2px 20px black;
}

.card2::after {
  content: "";
  position: absolute;
  background-color: #606060;
  width: 100%;
  height: 100%;
  box-shadow: 0 2px 20px black;
  top: 0;
  left: 0;
  z-index: -1;
  transition: 1s;
}
.card2::before {
  content: "";
  position: absolute;
  background-color: #606060;
  width: 100%;
  height: 100%;
  box-shadow: 0 2px 20px black;
  top: 0;
  left: 0;
  z-index: -1;
  transition: 1s;
}
.card2:hover::after {
  transform: rotateZ(-10deg);
}
.card2:hover::before {
  transform: rotateZ(-20deg);
}

.card2:hover img {
  transform: rotateZ(0);
}

img {
  position: absolute;
  width: 94%;
  top: 20px;
  left: 0;
  object-fit: cover;
  transform: rotateZ(20deg);
  transition: 1s;
}

h1{
  font-size: 2.2em;
  text-align: center;
  -webkit-text-stroke: 0.07em rgb(0, 0, 0, 1);
}