
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    text-align: center;
    opacity: 0; /* Initially hidden */
    animation: showMessage 1s forwards 3s; /* Fade-in effect after 3 seconds */
}

.error-headings-section {
    position: relative;
    z-index: 1;
}

/* Targeting h1 and h2 only within .error-headings-section */
.error-headings-section h1 {
    margin: 0 auto;
    margin-top: 250px;
    color: black;
    font-size: 3rem;
    font-weight: 700;
}

.error-headings-section h2 {
    color: black;
    font-size: 1.2rem;
    margin: 20px 0;
    opacity: 0; /* Initially hidden */
    animation: showMessage 1s forwards 3s; /* Fade-in effect after 3 seconds */
}

.error-message {
    margin-top: 20px;
    opacity: 0;
    animation: showMessage 1s forwards 3s; /* Fade-in after 3 seconds */
}

.home-button {
    margin-top: 5px;
    padding: 10px 10px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0; /* Initially hidden */
    animation: showMessage 1s forwards 3s; /* Fade-in after 3 seconds */
}

button:hover {
    background-color: #e65c00;
}

.error-gif {
    margin-top: -10px;
    width: 600px; /* Adjust width as needed */
    height: 380px; /* Maintain aspect ratio */
}

/* Gear sec */
.gears-section {
    position: relative;
    z-index: 0; /* Gears should be below the headings */
}

.gears {
    position: relative;
    width: auto;
    height: auto;
    margin: 20px auto;
}

.gear {
    position: relative;
    z-index: 0;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: #000000;
}

.gear:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    right: 5px;
    bottom: 5px;
    z-index: 2;
    border-radius: 50%;
    background: #eaeaea;
}

.gear:after {
    content: "";
    position: absolute;
    left: 25px;
    top: 25px;
    width: 60px;
    height: 60px;
    z-index: 3;
    border-radius: 50%;
    border: 5px solid #000000;
    background: #eaeaea;
}

.gear .bar {
    position: absolute;
    left: -15px;
    top: 50%;
    z-index: 0;
    width: 150px;
    height: 30px;
    margin-top: -15px;
    border-radius: 5px;
    background: #000000;
}

.gear .bar:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    right: 5px;
    bottom: 5px;
    z-index: 1;
    border-radius: 2px;
    background: #eaeaea;
}

.gear .bar:nth-child(2) {
    transform: rotate(60deg);
}

.gear .bar:nth-child(3) {
    transform: rotate(120deg);
}

.gear.one {
    position: absolute;
    top: 40px;
    left: 475px;
    animation: anticlockwise 2s linear infinite;
}

.gear.two {
    position: absolute;
    top: 75px;
    left: 610px;
    animation: clockwise 2s linear infinite;
}

.gear.three {
    position: absolute;
    top: 40px;
    left: 745px;
    animation: anticlockwise 2s linear infinite;
}

/* Animations */
@keyframes clockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes anticlockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* Stop gears after 3 seconds */
@keyframes showMessage {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Hide the home button initially */


.home-button.visible {
    display: inline-block; /* Make the button visible when the class is added */
}



/* Mobile specific gear size adjustment */
@media (max-width: 600px) {
    .gear {
        width: 80px; /* Smaller size for mobile */
        height: 80px; /* Adjust accordingly */
    }

    .gear:before {
        left: 3px;
        top: 3px;
        right: 3px;
        bottom: 3px;
    }

    .gear:after {
        left: 15px;
        top: 15px;
        width: 40px;
        height: 40px;
    }

    .gear .bar {
        width: 100px; /* Adjust bar size */
        left: -10px;
    }

    .gear .bar:before {
        left: 3px;
        top: 3px;
        right: 3px;
        bottom: 3px;
    }

    .gear.one, .gear.two, .gear.three {
        animation-duration: 2s; /* Slow down the animation for mobile */
    }

    .gear.one {
        top: 50px;
        left: 60px;
    }

    .gear.two {
        top: 80px;
        left: 150px;
    }

    .gear.three {
        top: 50px;
        left: 240px;
    }

    .error-gif {
        margin-top: 50px;
        width: 350px; /* Adjust width as needed */
        height: 200px; /* Maintain aspect ratio */
    }

}