*  {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
    text-align: center;
    background-color: #121212;
    color: white;
    padding: 20px;
    transition: background 0.5s ease, color 0.5s ease;
}

header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    color: white;
    position: relative;
    display: inline-block;
    animation: glitch 1s infinite alternate;
    color: palevioletred;
    text-shadow: 4px 4px #ff00ff, -4px -4px #00ffff;
}

@keyframes glitch {
   0% {text-shadow: 2px 2px red, -2px -2px blue;}
   50% {text-shadow: -2px -2px red, 2px 2px blue;}
   100% {text-shadow: 2px -2px;}
}


.mood-container {
    display: flex;
    flex-direction: column; 
    gap: 1rem;
    align-items: center;
}
  
.mood {
    width: 90%; 
}

.mood-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.mood {            
    padding: 20px;
    border-radius: 10px;
    background: #1e1e1e;
    transition: transform 0.3s ease-in-out, background 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
}

.mood:hover {
    transform: scale(1.05) rotate(-1deg);
    background: rgba(255, 255, 255, 0.2);
    border-color: cornflowerblue;
    box-shadow: 0px 0px 15px rgba(255, 0, 255, 0.6);
}

.happy {border-left: 5px solid #ffcc00;}
.focused {border-left: 5px solid #ff5722;}
.relaxed {border-left: 5px solid #29b6f6;}
.hyped { border-left: 5px solid #ff0000; } 
.sleepy { border-left: 5px solid #9370db; } 
.angry { border-left: 5px solid lawngreen; } 


#vibe-meter {
    margin-top: 40px;
    font-size: 1.2rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(red, green, blue, 0.3);
}

input[type="text"] {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 0, 255, 0.2);
    color: palegoldenrod;
}

input[type="text"]::placeholder {
    color: black;
}

/* Button Styling */

button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #ff00ff,#ff5722, #00ffff);
    color: palegoldenrod;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s ease, background 0.5s ease;
}

button:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #00ffff, #ff5722, #ff00ff);
}

/* Dark Mode Toggle*/
.dark-mode {
    background: white;
    color: black;
}

.dark-mode .mood {
    background: #ddd;
    color: #121212;
}

.dark-mode .mood:hover {
    background: #bbb;
}

/*Toggle Button*/

#toggle-dark {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

#toggle-dark:hover {
    transform: scale(1.1);
}

footer {
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

#random-mood {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.6);
}

.mood:hover h2 {
    animation: shake 0.3s infinite alternate;
}

@keyframes shake {
    0% {transform: translateX(-2px);}
    100% {transform: translateY(2px);}
}

@media only screen and (min-width: 768px) {
    .mood-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mood {
        width: 30%;
    }
}

@media only screen and (min-width: 480px) {
    .mood-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mood {
        width: 30%;
    }
}