/* ============================= */
/* Code 10 - Hover Reveal Image */
/* ============================= */

/* Full-page container */
#container {
  width: 100%;
  height: 100vh;
  background-color: #1b263b;
  position: relative;
}

/* Positioned image box */
#content {
  width: 500px;
  height: 500px;

  border: 5px solid #ffb703;
  border-radius: 50px 150px 80px 200px;

  overflow: hidden;

  background-image: url("https://images.pexels.com/photos/31791288/pexels-photo-31791288.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  padding: 30px;
  box-sizing: border-box;
}

/* Invisible Catipsum text */
#content p {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;

  font-family: Georgia, serif;
  font-size: 110%;
  line-height: 100%;
  text-align: justify;

  color: transparent;
  background-color: rgba(0, 0, 0, 0);

  transition: all 0.5s ease;
}

/* Reveal text on hover */
#content:hover p {
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 10px;
}

/* ============================= */
/* Code 13 - Cat Positioning Box */
/* ============================= */

#container2 {
  width: 100%;
  height: 100vh;
  background-color: #2c3e50;
  position: relative;
}

#content2 {
  width: 500px;
  height: 500px;
  background-color: #f4d35e;
  border: 5px solid #ee964b;
  border-radius: 30px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
}

#content2 h1 {
  position: relative;
  text-align: center;
  margin-top: 0;
}

#content2 p {
  font-family: Georgia, serif;
  font-size: 105%;
  line-height: 120%;
  text-align: justify;
}