html {
    overflow-x:hidden;
    width:100%;
    max-width:100%;
}

body {
  background-image: url("images/canyon.jpg");
  background-repeat: no-repeat;
    background-position: center;
  background-color: #cccccc;
width:100%;
  position: relative;
    overflow-x:hidden;
    height:100vh;
    margin:0;
    max-width:100%;
}

div.obadiah {
    max-width:400px;
    margin:auto;  
}

.obadiah img {
    margin:auto;
    width:100%;
    padding-left:40px;
    margin-top:-30px;
}

h1,h2,p {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    text-align:center;
}

div.candles {
    max-width:700px;
    margin:auto;
    text-align:center;
}

div.acorns {
    max-width:100%;
    margin:auto;
    text-align:center;
}

div.acorns img{
    padding:0 20px;
}


h1 {
    color:blueviolet;
    background-color:#000000;
    font-size:4em;
    margin:auto;
    display:inline-block;
}

img.candle {
    display:inline-block;
    padding:0 20px;
}

h2 {
    color:chartreuse;
    font-size:2em;
}

div.praise {
    margin:auto;
    max-width:500px;
    text-align:center;
    bottom:0;
}

button {
    width:300px;
    height:40px;
  background-image: linear-gradient(to bottom right, aqua, purple, red);
    font-family: "Georgia";
    margin:auto;
    text-align:center;
    text-transform: uppercase;
    color:#ffffff;
    font-weight:bold;
    border:2px solid #ffffff;
    font-size:20px;
}

/*button gloring */
 @keyframes glowing {
        0% {
          background-color: #2ba805;
          box-shadow: 0 0 5px #2ba805;
        }
        50% {
          background-color: #FFFF00;
          box-shadow: 0 0 40px #FFFF00;
        }
        100% {
          background-color: #2ba805;
          box-shadow: 0 0 5px #2ba805;
        }
      }


button:hover {
    color: #FFFF00;
    animation: glowing 900ms infinite;
    cursor:pointer;
}


/* throw acorn styling */
.acorn {
  position: fixed;
  bottom: -50px; /* Starts below the screen */
  width: 100px;   /* Adjust as needed */
  height: auto;
  /* Two animations: 
     - 'move' handles the translation and rotation.
     - 'fade' waits 2 seconds then fades out over 1s.
  */
  animation: move var(--animDuration, 3s) ease-in-out forwards,
             fade 1s ease-in-out forwards 2s;
}

@keyframes move {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(var(--randX), var(--randY)) rotate(360deg);
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.special-style .obadiah img {
  transform-origin: center top;
  animation: scale 5000ms ease-in-out forwards;
}
@keyframes scale {
  to {
    transform: scale(2.5);
  }
}

h3.hidden {
    opacity:0;
    text-align:center;
        font-size:3em;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    margin:0 auto;
    cursor:pointer;
}

div.acorn-hidden {
    position:fixed;
    text-align:center;
    margin:auto;
    left: 50%;
    transform: translate(-50%, 0);
    z-index:99;
}

img.hidden {
    text-align:center;
    margin:auto;
    width:200px;
    opacity:0;
    
}

/* Create a full-screen overlay with the new background image */
body::after {
  content: "";
  position: fixed; /* Stays relative to the viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/sun.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0;  /* Start fully transparent */
  pointer-events: none; /* So it doesn't block any interactions */
  transition: opacity 2s ease-in-out; /* Fade in over 2 seconds */
  z-index: -1; /* Place behind page content */
}

/* When the special-style class is added, fade in the new background */
.special-style::after {
  opacity: 1;
}

.special-style h1, .special-style h2, .special-style button, .special-style img.candle, .special-style div.acorns {
  animation:fade 1s ease-in-out forwards 1s;
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.special-style h3.hidden, .special-style img.hidden {
   animation: fadein 1s ease-in-out forwards 2s;
}

.special-style img.hidden {
    cursor:pointer;z
}


@media screen and (max-width: 650px) {
    h3.hidden {
        line-height:2em;
    }
    
    .obadiah img {
    
    width:100%;
        max-width:100%;
    padding-left:0px;
    margin-top:-100px;
}

    h1 {
    font-size:2em;
}
    
    h3.hidden {
        font-size:2em;
        padding:0 20px;
    }
    
    button {
        margin-bottom:20px;
    }

    
    
}