/* Global styles */
.fixed-bg {
    background-color: #fefefe; /* Background color for the whole page */
    height: 100vh;
    width: 100vw;
    top: 0px;
    left: 0px;
    margin: 0px;
    position: fixed;
}

.cover-bg {
    background-image: none; /* No background image */
}

/* Title and intro layout */
.main-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px; /* Space below title */
    display: block;
    font-family: 'Lato', sans-serif;
}

.main-intro {
    max-width: 65%; /* Fallback for very old browsers */
    margin-top: 0;
    text-align: justify;
    line-height: 1.4;
    display: inline-block;
    font-family: 'Lato', sans-serif;
}

/* Floating image container */
.photo-container {
    float: right; /* Float image to the right */
    margin-left: 20px; /* Space between image and text */
    margin-bottom: 10px;
}

/* Instant photo styles */
.instant-photo {
    max-width: 325px; /* Max width for image */
    height: auto;
    border: 10px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gt-color, .stanford-color, .theme-color, .sub-theme-color, a {
    font-weight: bold;
}

.gt-color {
    color: #EEB211;
}

.stanford-color {
    color: #8C1515;
}

.theme-color, .sub-theme-color, a {
    color: #556879;
}

.text-color {
    color: #333333;
}

.text-font {
    font-family: 'Lato', sans-serif;
}

.chinese-name {
    font-family: "source-han-sans-simplified-c", STXihei, 'Microsoft YaHei', '微软雅黑';
}

.outter-main-container {
    text-align: left; /* Align content to the left */
    left: 8%;
    width: 84%;
    height: 100vh;
    position: fixed;
    overflow: hidden;
}

.margin-place-holder {
    height: 10%;
    width: 100%;
}

.main-container {
    width: 100%;
    height: 100%;
    padding-right: 15px;
    padding-bottom: 15px;
    position: absolute;
    overflow-y: scroll;
}

.main-links {
    margin-top: 20px;
}

.main-links ul {
    padding: 0px;
    list-style-type: none;
}

.main-links ul li {
    display: inline;
    font-weight: bold;
}

.link-button {
    background-color: #556879;
    padding: 5px 10px; /* Button padding */
    box-shadow: 2px 2px #BBBBBB;
    line-height: 3em;
    white-space: nowrap;
    color: white;
    text-decoration: none;
    margin-right: 1em;
    transition: all 0.2s linear;
    font-family: 'Lato', sans-serif;
}

.link-button * {
    color: white;
}

.link-button:hover {
    box-shadow: 5px 5px #BBBBBB;
    cursor: pointer;
}

.main-text-logo {
    margin-bottom: -0.16em;
    height: 1em;
    width: auto;
}

/* Mobile styles */
@media (max-aspect-ratio: 1400/1000) {
    .fixed-bg {
        background-image: none; /* No background image on mobile */
        background-color: #fefefe;
        background-position: left;
    }

    .link-button {
        margin-right: 5px; /* Adjust button spacing */
    }

    .margin-place-holder {
        height: 5%;
    }

    .bottom-margin-place-holder {
        height: 100px; /* Bottom margin placeholder */
    }

    .main-intro {
        text-align: justify;
        max-width: 100%; /* Full width intro on mobile */
        max-height: none;
    }

    .photo-container {
        float: none; /* Remove float on mobile */
        text-align: center;
        margin: 0 auto 10px; /* Center image */
    }

    .instant-photo {
        max-width: 80%; /* Adjust image width on mobile */
        max-height: 300px; /* Adjust image height on mobile */
        margin: 0 auto;
    }

    .main-title {
        text-align: left; /* Ensure title aligns properly */
    }

    .chinese-name {
        display: block; /* Force Chinese name to a new line */
        margin-top: 5px; /* Add spacing above */
    }
}
