HTMLify

style.css
Views: 77 | Author: djdj
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90vh;
    box-sizing: border-box;
}

.section {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 800px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.section .box {
    position: absolute;
    width: 100px; /* Reduced size for better layout */
    height: 100px;
    /* border: 2px solid rgb(255, 204, 110); */
}

.section div:nth-child(1) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(250deg) skew(20deg, 20deg) translate(50px, 50px);
}

.section div:nth-child(2) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(293.5deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(3) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(340deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(4) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(385deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(5) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(428deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(6) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(473deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(7) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(518deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(8) {
    background: linear-gradient(to bottom right, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(563deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(9) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(586deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(10) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(272deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(11) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(-44deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(12) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(1deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(13) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(46deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(14) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(90deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(15) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(135deg) skew(20deg, 20deg) translate(50px, 50px);
}
.section div:nth-child(16) {
    background: linear-gradient(to top left, yellow, orange);
    border-radius: 50% 50% 0% 50%;
    transform: rotateZ(180deg) skew(20deg, 20deg) translate(50px, 50px);
}
#button {
    text-align: center;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
}

button {
    font-size: 21px;
    color: brown;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    box-shadow: 4px 4px 8px rgba(101, 52, 5, 0.879),
                -4px -4px 8px rgba(101, 52, 5, 0.879),
                4px -4px 8px rgba(101, 52, 5, 0.879),
                -8px 8px 8px rgba(101, 52, 5, 0.879);
}
.container{
    display:none;
    margin:10;
    padding:10;
 }

Comments