/* Reset some basic styles */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Set full height and default font */
body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

.logo {
    font-size: 24px;
    margin: 0;
    position: absolute;
    top: 20px;
    left: 20px; /* Align logo with image container */
    color: #ea1458;
}

/* Main Content Styling */
.main-content {
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* Allow absolute positioning within */
    overflow: hidden; /* Prevent content from overflowing */
    overflow: hidden; /* Prevent any overflow that causes layout issues */
    align-items: center; /* Center the content */
    justify-content: space-between; /* Distribute space equally */
}

.main-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
}

.main-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

.cta-button {
    background-color: #e74c3c;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Image Container Styling */
.image-container {
    position: absolute;
    right: 0;
    width: 400px;
    height: 600px;
    overflow: hidden;
    z-index: -1;
    opacity: 0.8;
    flex-shrink: 0; /* Prevent flexbox from resizing this */
}


.image-container img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

#home {
    width: 100%; /* Match the width of the image container */
    height: 600px; /* Match the height of the image container */
    margin-bottom: 20px; /* Add some space below the first block */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    z-index: 1;
    position: relative;
    padding-right: 400px; /* Add margin to prevent crossing into the image-container */
}

.paper {
    background-image: url('/res/background.jpg'); /* Set background image */
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background from repeating */
    z-index: -3;
    position: relative;
    width: 100%; /* Match the width of the image container */
}


#about {
    background-color: #859797;
    max-width: none; /* Prevent width constraints */
    display: block; /* Ensure it doesn't become flex or grid */
    width: 100%; /* Center with margin */
    margin: 0px auto; /* Center and add margin */
    display: block; /* Ensure block display for full width usage */
}

.inner-text-padding {
    padding-left: calc(20vw);
    max-width: 60%; /* Center with margins */
}

#home-container {
    flex: 1; /* Allow this container to take the remaining space */
    max-width: calc(100% - 400px); /* Ensure it does not overlap the image-container */
    display: flex; /* Add flex to control child alignment */
    flex-direction: column; /* Ensure children are stacked vertically */
    width: 100%; /* Ensure full width usage */
}


#gallery {
    position: relative; /* Make the container relative for positioning the pseudo-element */
}

#gallery::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; /* Attach to the left border of the screen */
    height: 202px;
    width: 140px; /* Adjust width as needed */
    background-image: url('/res/cage.png'); /* Add your image URL */
    background-size: cover; /* Cover the entire pseudo-element */
    background-position: left center; /* Align image to the left */
    z-index: -1; /* Place it behind the gallery content */
    pointer-events: none; /* Ensure it does not interfere with user interactions */
}

.dragon {
    display: block;
    margin: 20px auto 0; /* Center the image and add top margin */
    max-height: 300px; /* Ensure the image scales responsively */
    width: auto; /* Maintain aspect ratio */
}