
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
header {
    text-align: center;
    padding: 20px;
}
img {
    max-width: 200px; /* Adjust this value as needed */
    height: auto;
}
section {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    margin-bottom: 20px;
    background-color: #f9f9f9ec; /* Light background for readability */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2, h3 {
    color: #333;
}
p, ul {
    color: #555;
}
.three-d-container {
    width: auto;
    height: auto;
    background-color: transparent;
    position: relative;
    perspective: 600px; /* Increased perspective for better 3D effect */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

.three-d-cube {
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transform: translateZ(-50px);
    animation: rotateCube 10s infinite linear;
}

.three-d-cube:hover {
    animation: rotateCube 1s infinite linear;
}

.three-d-cube .three-d-item {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #836fff; /* Remove background */
    border-radius: 10%; 
}

.three-d-cube .three-d-item img {
    width: 100%;
    height: 100%;
}

/* Corrected each face transform position */
.three-d-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(50px); /* Front face */
}
.three-d-item:nth-child(2) {
    transform: rotateY(180deg) translateZ(50px); /* Back face */
}
.three-d-item:nth-child(3) {
    transform: rotateY(90deg) translateZ(50px); /* Right face */
}
.three-d-item:nth-child(4) {
    transform: rotateY(-90deg) translateZ(50px); /* Left face */
}
.three-d-item:nth-child(5) {
    transform: rotateX(90deg) translateZ(50px); /* Top face */
}
.three-d-item:nth-child(6) {
    transform: rotateX(-90deg) translateZ(50px); /* Bottom face */
}

/* Animation for rotating cube */
@keyframes rotateCube {
    0% {
        transform: translateZ(-150px) rotateY(0deg);
    }
    25% {
        transform: translateZ(-150px) rotateY(90deg);
    }
    50% {
        transform: translateZ(-150px) rotateY(180deg);
    }
    75% {
        transform: translateZ(-150px) rotateY(270deg);
    }
    100% {
        transform: translateZ(-150px) rotateY(360deg);
    }
}
/* From Uiverse.io by adamgiebl */ 
.cssbuttons-io-button {
    background: transparent;
    border: none;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    padding: 0;
  }
  
  .cssbuttons-io-button .icon {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5em;
    width: 2.5em;
    border-radius: 50%;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #836fff;
    transition: all 0.3s;
  }
  
  .cssbuttons-io-button:hover .icon {
    background: #7b52b9;
  }
  
  .cssbuttons-io-button .icon svg {
    width: 1.5em;
    color: #836fff;
    transition: transform 0.3s;
  }
  
  .cssbuttons-io-button:hover .icon svg {
    transform: translateX(-0.1em);
    color: white;


  }
  
  .cssbuttons-io-button:active .icon {
    transform: scale(0.95);
  }
  