body { 
    background-color: lavender;
    font-family:Geneva;
}

h1 {
    padding-top: 10px;
    color: purple;
    font-family: 'Brush Script MT', cursive;
    text-align: center;
    font-size: 40px;
}

p {
    color:purple;
    font-family: cursive;
    font-size: 20px;
    line-height: 0.8cm;
    padding-left:15px;
    /* align-items: center; */
}

.centered{
    text-align:center;
}

/* .smalltext{
    font-size: 12px;
} */

/* .drink{
    width: 200px;
    height: auto;
    animation: dance 1.5s infinite;
} */

/* @keyframes dance {
    0% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(20deg);
    }
    100% {
        transform: rotate(-20deg);
    }
    
} */

#text-container {
    top:20px;
    width: 100%;
    text-align:center;
    color: #999;
    text-transform: uppercase;
    font-size: 36px;
    font-weight:bold;
    height:100px;
    /* z-index:10; */
    /* padding-top: 100px; */
    /* bottom: 5%; */
    /* display:block; */
}

#flip {
    height:60px;
    overflow:hidden;
    font-family:Geneva;
    justify-content: center;
    margin-bottom: 45px;
}

#flip > div > div {
    color: #fff;
    padding: 4px 12px;
    height: 45px;
    margin-bottom: 45px;
    display: inline-block;
}

#flip div:first-child{
    animation: show 5s linear infinite;
}

#flip div div{
    background: pink;
}

#flip div:first-child div{
    background:goldenrod;
}

#flip div:last-child div{
    background:forestgreen;
}

@keyframes show{
    0% {margin-top:-270px;}
    5% {margin-top:-180px;}
    33% {margin-top:-180px;}
    38% {margin-top:-90px;}
    66% {margin-top:-90px;}
    71% {margin-top:0px;}
    99.99% {margin-top:0px;}
    100% {margin-top:-270px;}
}


.comedy{
    /* position:absolute; */
    margin: 20px;
    align-items: center;
    width: 40%;
    height: auto;
    border-radius: 10px;
    /* display:flex; */
   }
   
   .header-container{
       display:flex; /* places the hojicha and header in a row */
       justify-content: center;
       align-items: center;
       margin-top: 50px;
       /* gap: 10px; space between elements */
       /* margin: 10px 0px; */
       border-color: purple;
       border-style: solid;
       border-width: 2px;
   }

   
   .digi{
    width:100%;
   }
   

.slide-container{
    display: flex;
    width: 100%;
    margin-top: 25px;
}


.slide-row{
    display:flex;
    flex-direction: row;
    justify-content: space-between; /*equal spacing between */
    align-items: flex-start;
    /* gap:10px;  */
    padding:10px;
    flex-wrap:wrap;  /* allows wrapping on smaller screens */
}

.slide-item{
    text-align: center;
    width: calc(33.333% - 40px); /* subtracting gap and margin */
    flex: 1;
    box-sizing: border-box;
    margin: 10px 20px;
    padding: 10px;
    border: 2px dotted green;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

     /* Button styles */
.slide-item .reveal-btn {
    /* margin-top: 200px; */
    /* margin-left: 10px; */
    padding: 10px 14px;
    font-size: 14px;
    font-family:'Courier New', Courier, monospace;
    background-color: darkolivegreen;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer; /* hand on hover */
  } 


.slide-item .text-box {
    color: #CCCCFF;
    display: none; /* hide by default */
    margin: 10px;
    /* margin-left: 10px; */
    font-family:'Courier New', Courier, monospace;
    background-color: #164924;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
  }


.slide-item .text-box.active {
    display: block;
  }

.reveal-btn:hover {
background-color: rgba(250, 100, 50, 1);
}


.text-box.active{
    display:block; /*show when active */
}



@media (max-width: 1024px) {
    .slide-item {
        width: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .slide-item {
        width: 100%;
        margin: 10px 0;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
        padding-left: 10px;
    }

    .comedy {
        width: 80%;
    }

    .header-container {
        flex-direction: column;
    }

    .text-box {
        font-size: 0.9rem;
    }

    .reveal-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}