/* Font face declarations (unchanged) */
@font-face {
    font-family: 'OldEurope';
    src: url('./Old\ Europe.ttf') format('truetype'),
         url('./Old\ Europe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Alagard';
    src: url('./alagard.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GothicPixles';
    src: url('./GothicPixels.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

/* General body styles (unchanged) */
body {
    background-image: url('./yuh1.png');
    background-size: auto; /* Use 'auto' to ensure background repeats */
    background-repeat: repeat; /* Make background image repeat */
    min-width: 425px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    color: red;
}

/* Styles for the title section (unchanged) */
#title {
    
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3%;
    margin-top: 70px;
    font-family: 'GothicPixles', sans-serif;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    min-width: 425px;
}

/* Styles for the about me section (unchanged) */
#aboutme {
    background-color: ;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5%;
    padding-bottom: 2%; /* Adjusted padding */
    display: flex;
    flex-direction: column;
    text-align: center; /* Ensure images are centered horizontally */
    min-width: 425px;
}

#aboutme .image-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Add gap between images */
}

#aboutme img {
    max-width: 100%; /* Ensure images scale with container */
    height: auto; /* Maintain aspect ratio */
    max-height: 600px; /* Set a maximum height for the images */
    border: 5px solid red; /* Add red border to images */
}

#aboutme .last-image {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Ensure images are responsive */
    gap: 20px; /* Add gap between images */
    width: 100%; /* Ensure the last image container takes up the full width */
    margin-top: 20px; /* Add margin to create a gap */
}

#aboutme .last-image img {
    max-width: 100%; /* Ensure last image scales with container */
    height: auto; /* Maintain aspect ratio */
    max-height: 600px; /* Set a maximum height for the last image */
    border: 5px solid red; /* Add red border to the last image */
}

/* Styles for the video container */
.video-container {
    display: flex;
    justify-content: center;
    width: 100%; /* Ensure the video container takes up the full width */
    margin-top: 20px; /* Add margin to create a gap */
}

.video-container video {
    max-width: 100%; /* Ensure video scales with container */
    height: auto; /* Maintain aspect ratio */
    border: 5px solid red; /* Add red border to the video */
}

/* Styles for the text about me section (adjusted with margin-top) */
#textaboutme {
    background-color:;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2%; /* Adjusted padding */
    padding-bottom: 3%; /* Adjusted padding */
    font-family: 'Alagard';
    color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-direction: column;
    line-height: 0.01;
    min-width: 425px;
    text-align: center; /* Center text and links */
}

/* Centering the links below images */
#textaboutme p {
    margin: 10px 0; /* Adjusted margin between paragraphs */
}

#textaboutme a {
    text-decoration: none;
    color: red;
    margin: 0; /* Removed margin on links */
    white-space: nowrap; /* Prevents wrapping within the link text */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

#textaboutme a:active {
    color: orange; /* Change link color on click */
}

#textaboutme a:focus {
    outline: none; /* Remove focus outline for links */
}

#textaboutme a:hover {
    text-decoration: underline;
    color: yellow;
}

#textaboutme a:first-child {
    margin-left: 0; /* Remove left margin from the first link */
}

#textaboutme a:last-child {
    margin-right: 0; /* Remove right margin from the last link */
}

/* Styles for the bottom section (unchanged) */
#bottom {
    background-color:;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1%;
    padding-bottom: 3%;
    border-top: 3px solid red;
    font-family: 'Alagard';
    color: red;
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to the next line */
    justify-content: center;
    align-items: center;
    font-size: 20px;
    min-width: 425px;
}

#bottom a {
    text-decoration: none;
    color: red;
    margin: 0 10px;
    white-space: nowrap; /* Prevents wrapping within the link text */
}

#bottom a:hover {
    text-decoration: underline;
    color: yellow;
}

/* Additional styles for the bottom links */
#bottom a {
    transition: color 0.3s ease; /* Smooth transition for color change */
}

#bottom a:active {
    color: orange; /* Change link color on click */
}

#bottom a:focus {
    outline: none; /* Remove focus outline for links */
}

#bottom a:first-child {
    margin-left: 0; /* Remove left margin from the first link */
}

#bottom a:last-child {
    margin-right: 0; /* Remove right margin from the last link */
}

/* Loader animation styles (unchanged) */
#loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: none;
}

/* Content display styles (unchanged) */
#content {
    display: none;
}

/* Keyframe animation for loader (unchanged) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles for smaller screens (unchanged) */
@media screen and (max-width: 768px) {
    #title, #aboutme, #textaboutme, #bottom {
        width: 90%;
    }

    #aboutme img {
        max-width: 90%; /* Adjusted max-width for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    #title, #aboutme, #textaboutme, #bottom {
        width: 95%;
    }

    #aboutme img {
        max-width: 100%; /* Adjusted max-width for even smaller screens */
        max-height: 400px; /* Limit height for smaller screens */
    }
}
