:root{
    box-sizing: border-box;
  }
  
  .container {
    padding: 40px 40px;
    width: 50%;
    margin: 0 auto;
    max-width: 900px;
  }

    h1 {
        text-decoration: wavy overline; 
        color: black;
        text-shadow: 2px 5px rgba(255, 255, 255, 0.699);
        font-family: cursive;
        font-size: 50px;
    }
    p {
        font-family: 'Courier New', Courier, monospace;
        text-align: left;
        font-size: 14px;
    }
    h2 {
        font-family: 'Courier New', Courier, monospace;
        text-align: left;
        font-size: 12px;
        color: blue;
    }
    h3{
        font-family: 'Courier New';
        color: red;
        text-align: right;
        font-size: 40px;
        
         .image {
    display: block;
    width: 100%;
    height: auto;
  }
  .overlay {
    position: absolute;
    top: 20px;
    bottom: 60px;
    left: 30px;
    right: 30px;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: none;
    background-color: rgba(255, 0, 0, 0.836);
  }
  
  .container:hover .overlay {
    opacity: 1;
  }
  
  .text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 20%;
    left: 50%;
    -webkit-transform: translate( -50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: right;
  }

.image-stack {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    position: relative;
  }
  .image-stack__item--top {
    grid-column: 1 / span 8;
    grid-row: 1; 
    padding-top: 20%; 
    z-index: 1; 
    
  }
  .image-stack__item--bottom {
    grid-column: 4 / -1;
    grid-row: 1; 
    height: 40%;
    width: 40%;

  

    }


  