/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #D79A10; /* Couleur de fond */
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    height: 80%;
    padding: 20px;
    background-color: rgba(57, 57, 57, 0.8); /* Fond semi-transparent */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.left {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.right {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    border-left: 2px solid #ccc;
}

h1, h2 {
    font-size: 2em;
    text-align: center;
}

.comments textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
    background-color: #333;
    color: white;
    resize: none;
}

.comments button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

.comments button:hover {
    background-color: #0056b3;
}

.comment-list {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.comment-list div {
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.greeting-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Assure que le texte est au-dessus de l'animation */
    background-color: rgb(57, 57, 57); /* Fond semi-transparent */
    padding: 20px;
    border-radius: 10px;
}

.greeting {
    font-size: 2em;
    text-align: center;
}

.rain-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.dollar {
    position: absolute;
    width: 150px; /* Largeur fixe pour le conteneur */
    height: 150px; /* Hauteur fixe pour le conteneur */
    background-size: contain; /* Assure que l'image est entièrement visible */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    background-position: center; /* Centre l'image dans le conteneur */
    animation: fall linear infinite;
    pointer-events: none; /* Permet de cliquer à travers les billets */
}

@keyframes fall {
    0% {
        transform: translateY(-100px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) scale(1);
        opacity: 1;
    }
}
