/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #080121;
    margin: 0;
    padding: 0;
    color: #A580CA;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column; /* Aligns elements vertically */
}

.lava-lamp-container {
    display: flex;
    flex-direction: column;  /* Stacks lava lamp and buttons vertically */
    align-items: center;     /* Centers items horizontally */
}

/* Lava Lamp styles */
.lava-lamp {
    width: 190px;
    height: 500px;
    position: relative;
}

.glass {
    width: 100%;
    height: 85%;
    position: relative;
    border-radius: 50% / 60% 60% 40% 40%;
    overflow: hidden;
    box-shadow: inset 0px -10px 20px rgba(0,0,0,0.3);
}

.blob {
    position: absolute;
    border-radius: 50%;
    /* transform: skew(
        calc(var(--skewX, 0) * 3deg),
        calc(var(--skewY, 0) * 5deg)
      ); */
    filter: blur(5px);
    opacity: 0.8;
    animation: blobAnimation 8s ease-in-out infinite;
}

.base {
    width: 100%;
    height: 15%;
    /* background-color: #2c3e50;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0; */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: absolute;  /* Change to absolute positioning */
    bottom: 20px;
    margin-bottom: 33px;
    margin-left: 25px;
}

/* Color Button Styling */
.color-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Adds space between buttons */
    margin-top: 30px; /* Adds space between the lamp and buttons */
}

.color-buttons button {
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.color-buttons button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Color-Specific Button Styles */
.orange-button {
    background-color: #ff9f43;
}

.red-button {
    background-color: #ee5253;
}

.blue-button {
    background-color: #34ace0;
}

.purple-button {
    background-color: #8e44ad;
}

.green-button {
    background-color: #2ecc71;
}

.pink-button {
    background-color: #ff79c6;
}

/* Keyframes for blob movement */
@keyframes blobAnimation {
    0% { 
        transform: translateY(500px) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(0px) scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: translateY(500px) scale(1);
        opacity: 0.8;
    }
}

/* Transition effect */
.glass, .blob {
    transition: background 0.3s ease-in-out;
}

/* Mobile (default) styles */
@media (max-width: 600px) {
    .lava-lamp {
        width: 190px;
        height: 500px;
    }

    .color-buttons {
        display: flex;
        flex-wrap: wrap;         /* Allow buttons to wrap onto multiple lines */
        justify-content: center; /* Center buttons horizontally */
        gap: 15px;               /* Adds space between buttons */
        margin-top: 30px;        /* Adds space between the lamp and buttons */
    }

    .color-buttons button {
        font-size: 14px;
        padding: 8px 16px;
        width: 45%;              /* Buttons will take up about half of the available width */
    }

    .lava-lamp-container {
        align-items: center;
    }
 
    
}

/* Tablet styles */
@media (min-width: 601px) and (max-width: 900px) {
    .lava-lamp {
        width: 190px;
        height: 500px;
    }

    .color-buttons {
        gap: 20px;
    }

    .color-buttons button {
        font-size: 15px;
        padding: 9px 18px;
    }

    .lava-lamp-container {
        align-items: center;
    }
}

/* Desktop styles */
@media (min-width: 901px) {
    .lava-lamp {
        width: 190px;
        height: 500px;
    }

    .color-buttons {
        gap: 20px;
    }

    .color-buttons button {
        font-size: 16px;
        padding: 10px 20px;
    }

    .lava-lamp-container {
        align-items: center;
    }
}
