body{
    background-color: rgb(82, 186, 228);
    background-image: url("bg1.png");
    background-repeat: no-repeat;
    background-size: cover;
    color: aliceblue;
    font-family: "Funnel Display";
    font-size: 150%;

    user-select: none;
}

h1{
    text-align: end;
    font-size: 75px;
    letter-spacing: 5px;
}

header{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    font-size: 115%;

    h2{
        font-weight: 900;
        text-shadow: 3px 0 rgba(0, 0, 0, 0.15);
        letter-spacing: 4px;

        background-color: rgba(255, 255, 255, 0.829);
        background-image: url("bg2.png");
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
.grateful-container{
    position: relative;
    width: 100%;
    height: 100%;
    border-bottom: 2px solid whitesmoke;
}
.grateful-container:hover{
    .gratefulness{
        max-height: 1000px; /* Adjust this value based on your content */
    }
    header h2{
        text-align: center;
        animation: tilt 8s infinite alternate;
    }
}

.gratefulness {
    position: relative;
    max-height: 0px;   /* Changed from height: 0 */
    width: 100%;

    display: flex;
    flex-flow: column nowrap;

    transition: max-height .25s ease-in-out;
    overflow: hidden;
    
    p{
        margin: 10px;
        color: white;
        border-bottom: .5px solid rgba(255, 255, 255, 0.75);
    }
}


/*  ANIMATIONS */

.tilt {
    text-align: center;
    animation: tilt 1s infinite alternate;
}

@keyframes tilt {
    0%{
        transform: rotate(0deg); 
    }
    25%{
        transform: rotate(5deg); 
    }
    75%{
        transform: rotate(-5deg); 
    }
    100%{
        transform: rotate(0deg); 
    }
}

    
.electric {
    background-image: url("https://media.giphy.com/media/70BItD093Mhnq/giphy.gif");
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----------------------- Popup Information Window -----------------------*/

.open-button {
    color: black;
    padding: 16px 20px;

    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.555);

    cursor: pointer;
    opacity: 0.8;
    position: absolute;
    bottom: 23px;
    right: 28px;
    width: 100px;
}
  
  /* The popup form - hidden by default */
.form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;

    z-index: 9;

    transform: ease;
}
  
  /* Add styles to the form container */
.form-container {
    display: flex;
    flex-flow: column nowrap;

    min-width: 900px;
    width: 900px;
    min-height: 250px;

    margin-top: 0px;
    padding: 20px;
    background-color: rgba(49, 116, 143, 0.9);
    background-image: url("bg1.png");

    border: 1px solid rgba(0, 0, 0, 0.555);
    border-radius: 2rem;

    overflow: hidden;

}

.form-container textarea {
    background-image: url("bg2.png");

    width: calc(100%); /* Account for padding */
    height: 100%;
    min-height: 250px;
    margin: 10px 0px;
    resize: vertical;
}

/* Set a style for the submit/login button */
.form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;

    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.555);
}
  
  /* Add a red background color to the cancel button */
.form-container .cancel {
    margin-left: auto;
    margin-bottom: 10px;
    width: 100px;
    height: 15px;
    background-color: darkred;
}
  
  /* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
    opacity: 1;
}
