* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#head {
    text-align: center;
    font-size: 40px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(0, 0, 0);
    text-shadow: 4px 5px red;
    animation: fade-in 2s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
        scale: 1.5;
    }

    to {
        opacity: 1;
        scale: 1;
        transform: translateY(20px);
    }
}

#text {
    text-align: center;
    margin-top: 5vh;
    animation: in 3s forwards;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#default {
    margin-left: 20px;
    font-size: 20px;
    padding: 5px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    border-radius: 12px;
}

#default:hover {
    cursor: pointer;
    background-color: orange;
}

@keyframes in {
    from {
        opacity: 0;
        scale: 1.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

#box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;
    margin-bottom: 15vh;
}

#container {
    width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.colour {
    width: 120px;
    position: relative;
    height: 120px;
    border-radius: 30%;
    animation: animate 3s forwards;
    border: 2px solid black;
    transition: transform 0.25s ease-in-out;
}

.colour:hover {
    cursor: pointer;
    transform: scale(1.3) rotate(20deg);
}

@keyframes animate {
    from {
        opacity: 0;
        scale: 1.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

#ice-cold {
    background-color: #a0d2eb;
}

#freeze-purple {
    background-color: #e5eaf5;
}

#medium-purple {
    background-color: #d0bdf4;
}

#purple-pain {
    background-color: #8458B3;
}

#heavy-purple {
    background-color: purple;
}

#yass-queen {
    background-color: #ff1d58;
}

#sister {
    background-color: #f75990;
}

#crown-yellow {
    background-color: #fff685;
}

#blue-light {
    background-color: #00DDFF;
}

#brutal-blue {
    background-color: #0049B7;
}

#brightly-orange {
    background-color: #ff1e00;
}

#electric-red {
    background-color: #c80e13;
}

@media (max-width: 768px) {
    body {
        min-width: 100vw;
        min-height: 100vh;
        overflow-x: hidden;
    }

    #head {
        font-size: 24px;
        text-shadow: 2px 3px red;
    }

    #text {
        font-size: 20px;
        font-family: "Poppins", sans-serif;
        font-weight: 400;
        font-style: normal;
    }

    #default {
        font-size: 15px;
    }

    #container {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        justify-items: center;
        max-width: 100vw;
    }

    .button {
        width: 60px;
        height: 60px;
    }

    .button:active {
        transform: rotate(15deg) scale(1.1);
    }
}