body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
}

.emoji-list {
    margin: auto;
    width: 60%;
    margin-top: 30px;
    font-size: 2em;
}

.emoji-container {
    border: 0.5px solid black;
    padding: 7px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.emoji-container:hover {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
    transition: -webkit-transform 0.3s ease, -ms-transform 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    cursor: grab;
}
.emoji-containerX {
    border: 0.5px solid black;
    padding: 7px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.emoji-containerX:hover {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
    transition: -webkit-transform 0.3s ease, -ms-transform 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    cursor: grab;
}

.poem-container {
    margin: auto;
    width: 45%;
    margin-top: -45px;
}

#poem {
  border: 0.5px solid black;
  border-radius: 3px;
  padding: 10px;
  margin-top: 90px;
  font-size: arial;
  font-variant: small-caps;
  text-align-last: center;
  font-style: italic;
  font-size: 20px;
  opacity: 0; /* Start with opacity set to 0 */
  transition: opacity 0.3s ease; /* Add a transition for opacity */
}


#back-button {
    padding: 9px;
    cursor: pointer;
}

/* for mobile devices*/

@media only screen and (max-width: 600px) {
    .emoji-list {
        margin: 0;
        width: 100%;
    }
    .poem-container {
        margin: 0;
        width: 100%;
        margin-top: -45px;
    }
}