body {
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('media/page6/bg.png');
    background-size: cover;
    width: 100%;
    height: 100vh;
    margin: 0;
    position: relative;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Change from absolute to relative */
    width: 1100px; /* Match the width of #page1 */
    height: auto;
    margin: auto;
}

#page6 {
    position: relative; /* Allows absolute children */
    display: block;
}

/* Position relative to page1 */
#butterfly1 {
    position: absolute; 
    z-index: 3;
    top: 20%;
    left: 18%;
}

#butterfly2 {
    position: absolute; 
    z-index: 2;
    top: 31%;
    left: 77%;
}

#eye {
    position: absolute; 
    z-index: 2;
    top: 44%;
    left: 18%;
}

#eye1 {
    position: absolute; 
    z-index: 3;
    top: 48%;
    left: 33%;
}

#code {
    position: absolute; 
    z-index: 2;
    top: 30%;
    left: 19.6%;
    transform: rotate(90deg);
}

#shining2 {
    position: absolute; 
    z-index: 3;
    top: 30%;
    left: 48%;
}

#smoke {
    position: absolute; 
    z-index: 2;
    top: 74%;
    left: 59%;
}

#cd {
    position: absolute; 
    z-index: 2;
    top: 44.9%;
    left: 59.1%;
}

#exit {
    display: none; 
    position: absolute; 
    z-index: 3;
    top: 42%;
    left: 62.1%;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease-in; /* Smooth fade-in effect */
}

#rectangle{
    width:193px;
    height:120px;
    background:rgb(249, 11, 11);
    z-index: 100; 
    position: absolute; 
    top: 44.9%;
    left: 59.1%;
    opacity: 0%; 
}