@import url(https://unpkg.com/open-props/open-props.min.css);
@import url(https://unpkg.com/open-props/normalize.min.css);

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: white;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Disable horizontal scrollbar */
  font-style: italic;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

summary {
    background-color: aliceblue;
    text-align: center;
}

.poem{
    text-align: center;
}

.rest {
  color: rgb(0, 0, 0);
  margin-bottom: -20px;
}

.title {
  margin-bottom: 0px;
}

.header {
  background: url('Baseball.jpg') fixed;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  height: 100vh; /* Full height of the viewport */
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.header:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.logo {
  text-align: center;
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: aliceblue;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

#heading {
    font-size: 40px;
}

.header:hover .logo {
  opacity: 0.8;
  transform: translateY(-5px);
}

.img {
  max-width: 100%;
  height: auto;
}

.main:hover {
  opacity: 0.9;
  transform: translateY(-5px);
  background-color: aliceblue;
}

.main {
  background-color: aliceblue;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 200px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


main {
  width: 66ch;
}

/* Media queries for responsiveness */

@media screen and (max-width: 768px) {
  .title {
    margin-bottom: 250px;
  }

  .header {
    padding: 50px 20px;
  }

  .button-container {
    flex-direction: column;
  }

  .logo {
    margin-top: 10px;
  }

  .main {
    margin-top: 200px;
    padding: 10px;
  }
}

@media screen and (max-width: 576px) {
    .title {
      margin-bottom: 150px;
    }
  
    .header {
      padding: 30px 20px;
    }
  
    .button-container {
      flex-direction: column;
    }
  
    .logo {
      margin-top: 10px;
    }
  
    .main {
      margin-top: 200px;
      padding: 10px;
    }
  }
  
  /* Medium screens (tablets) */
  @media screen and (min-width: 577px) and (max-width: 768px) {
    .title {
      margin-bottom: 200px;
    }
  
    .header {
      padding: 70px 20px;
    }
  
    .button-container {
      flex-direction: row;
    }
  
    .logo {
      margin-top: 15px;
    }
  
    .main {
      padding: 15px;
      margin-top: 200px;
    }
  }
  
  /* Large screens (desktops) */
  @media screen and (min-width: 769px) and (max-width: 992px) {
    .title {
      margin-bottom: 300px;
    }
  
    .header {
      padding: 80px 20px;
    }
  
    .button-container {
      flex-direction: row;
    }
  
    .logo {
      margin-top: 20px;
    }
  
    .main {
      margin-top: 200px;
      padding: 20px;
    }
  }
  
  /* Extra-large screens (large desktops) */
  @media screen and (min-width: 993px) {
    .title {
      margin-bottom: 400px;
    }
  
    .header {
      padding: 100px 20px;
    }
  
    .button-container {
      flex-direction: row;
    }
  
    .logo {
      margin-top: 25px;
    }
  
    .main {
      margin-top: 200px;
      padding: 25px;
    }
  }
  
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background-image: url('Title.jpg');
}   
.box {
	position: relative;
	width: 250px;
	height: 250px;
	transform-style: preserve-3d;
	animation: animate 20s linear infinite;
    margin: 50px;
    margin-left: 50px;
}

details{
    display: block;
    justify-content: baseline;
    background-color: aliceblue;
}

.title{
    display: grid;
    justify-content: start;
    margin-bottom: 100px;
}

@keyframes animate {
	0% {
		transform: perspective(1000px) rotateY(0dezg);
	}
	10% {
		transform: perspective(1000px) rotateY(36deg);
	}
	20% {
		transform: perspective(1000px) rotateY(72deg);
	}
	30% {
		transform: perspective(1000px) rotateY(108deg);
	}
	40% {
		transform: perspective(1000px) rotateY(144deg);
	}
	50% {
		transform: perspective(1000px) rotateY(180deg);
	}
	60% {
		transform: perspective(1000px) rotateY(216deg);
	}
	70% {
		transform: perspective(1000px) rotateY(252deg);
	}
	80% {
		transform: perspective(1000px) rotateY(288deg);
	}
	90% {
		transform: perspective(1000px) rotateY(324deg);
	}
	100% {
		transform: perspective(1000px) rotateY(360deg);
	}
}
.box span {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform-origin: center;
	transform-style: preserve-3d;
	transform: rotateY(calc(var(--i) * 45deg)) translateZ(400px);
	-webkit-box-reflect: below 0px linear-gradient(transparent, transparent, #0004);
}
.box span img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
  
  #img1 { -i: 1; }
  #img2 { -i: 2; }
  #img3 { -i: 3; }
  #img4 { -i: 4; }
  #img5 { -i: 5; }
  #img6 { -i: 6; }
  #img7 { -i: 7; }
  #img8 { -i: 8; }