/* General styles for body, p, a, h3, img, etc. remain the same */

body {
    font-family: "ocr-a-std", monospace;
    font-weight: 700;
    font-size: 1rem;
    background-color: #FFD587;
}

p {
    line-height: 1.5;
    color: #4B5B6A;
    text-align: left;
    margin: 3vw;
    padding-left: 125px;
    padding-right: 125px;
    font-size: 0.8rem;
}

a { /* hyperlinks */
    text-decoration: none;
    color: #93C796;
}

h3 { /* readable text for climate report */
    line-height: 1.5;
    color: #4B5B6A;
    text-align: left;
    font-size: 1rem;
    font-family: Palatino;
    padding-left: 125px;
    padding-right: 125px;
}

img {
    max-width: 100%;
    height: auto;
}

.work-Img {
    display: block;
    max-width: 80vw;
    margin: auto;
}

h1 {
    color: #FD8B57;
    font-size: 1rem;
    margin: auto;
    text-align: center;
    padding-bottom: 20px;
}

h2 {
    color: #77A0F2;
    font-size: 1rem;
    margin: auto;
    text-align: justify;
    max-width: 80vw; /* Use max-width instead of padding */
}

header {
    justify-content: center;
    display: flex;
    align-items: center;
    padding-top: 20px;
    position: relative;
}

header img {
    max-width: 400px; 
    max-height: 100px; 
}

/* weather status */
.wrapper {
    color: #77A0F2;
    font-size: 0.7rem; 
    position: absolute;
    top: 20px;
    right: 20px; 
    width: 200px;
    text-align: right;
}

#contact {
    padding: 0 0 3rem 0;
}

#teaservid {
    position: relative; /* Ensure the video is positioned relatively */
    z-index: 2;
}

.body-text {
    margin-left: 20px;
    font-size: 1px;
    color: #454B61;
}

.link:hover {
    color: #93C796;
}

/* Homepage menu */
.main {
    display: grid;
    justify-content: center;
    align-content: center;
    height: 500px;
}
.main > * {
    grid-column: 1;
    grid-row: 1;
}

/* homepage sun */
.sun {
    width: 300px;
    height: 300px;
    animation: spin 100s linear infinite;
}

/* homepage nav */
.link {
    animation: rotateAnimation1 100s linear infinite;
    color: #ADABE8;
    width: 0px;
    height: auto;
    margin: -70px auto;
    font-size: 1.6rem;
    font-family: pf-uniform, sans-serif;
}

/* rotating homescreen */
@keyframes rotateAnimation1 {
    from {
        transform: rotate(0deg);
    } 
    to {
        transform: rotate(360deg);
    }
}

/* spinning sun */
.sunspin {
    width: 150px;
    height: 150px;
    animation: spin 60s linear infinite;
    position: absolute;
    top: 10px; /* Position it 20px from the top */
    left: 10px;
    z-index: 0;
}

@keyframes spin {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* the next two are to adjust browser size */
#imgembed {
    display: block;
    max-width: 80vw;
    margin: auto;
    margin-bottom: 20px; /* Increase bottom margin to make space for the sunspin */
}

@media screen and (max-width: 768px) {
    .sunspin {
        position: relative; /* Change to relative positioning */
        top: auto; /* Reset top position */
        left: auto; /* Reset left position */
        width: 100px; /* Adjust size if needed */
        height: 100px; /* Adjust size if needed */
        margin-bottom: 20px; /* Increase bottom margin */
    }

    .wrapper {
        position: relative; /* Change to relative positioning */
        top: auto; /* Reset top position */
        right: auto; /* Reset right position */
        margin-right: 0; /* Reset right margin */
        text-align: left; /* Reset text alignment */
    }

    center {
        margin-bottom: 20px; /* Increase bottom margin */
    }

    #imgembed {
        margin-bottom: 20px; /* Increase bottom margin */
    }

    h2 {
        font-size: 0.9rem; /* Adjust font size for headings */
        line-height: 1.4; /* Adjust line height for headings */
        max-width: 90vw; /* Limit the width of the heading text */
        padding-left: 5vw; /* Add some padding for better readability */
        padding-right: 5vw; /* Add some padding for better readability */
    }
}
