@charset "utf-8";
/* AgriMore CSS */

/* Import custom font for headings and titles */
@font-face {
    font-family: 'Game';
    src: url('game_sans_serif_7.ttf');
}

/* Base page styles - smooth scrolling and CSS variables */
html,
body {
    scroll-behavior: smooth;
}

/* Global color variables used throughout the site */
:root {
    --primary-color: rgb(16, 88, 16);
    --text-color: rgb(255, 255, 255);
    --background-color: tan;
}

/* Main body styling - tan background with Arial font */
body {
    background-color: tan;
    font-family: Arial, sans-serif;
}

/* Large page title - AgriMore+ */
.title {
    font-family: 'Game', Arial, sans-serif;
    font-size: 40px;
    font-weight: normal;

    display: flex;
    justify-content: center;
    align-items: center;

    width: auto;
    padding: 24px;

    background-color: #021f02;
    color: var(--text-color);

    border: 4px solid rgb(255, 255, 255);
    border-bottom: 2px solid rgb(255, 255, 255);
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Navigation menu container */
.menu {
    text-align: center;
    margin-bottom: 24px;
}

/* Styled navigation links */
.menutext {
    font-family: 'Game', Arial, sans-serif;
    font-size: 25px;
    font-weight: normal;

    border: 4px solid rgb(255, 255, 255);
    border-top: 2px solid rgb(255, 255, 255);
    border-radius: 10px;
    padding: 10px 20px;
    color: var(--text-color);
    background-color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.menutext .active {
    text-decoration: underline;
    color: var(--text-color);
    text-underline-offset: 4px;
}

/* Responsive menu sizing for smaller screens */
@media (max-width: 900px) {
    .menutext {
        font-size: 18px;
    }
}

/* Styling for navigation links - visited, unvisited, and hover states */
.menutext a:visited {
    font-size: 30px;
    color: rgb(220, 236, 222);
}

/* Style for unvisited links */
.menutext a:link {
    color: rgb(220, 236, 222);
    text-decoration: none;
}

/* Add hover effect to menu links */
.menutext a:hover {
    color: rgb(240, 226, 209);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Video background container */
.video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border-radius: 10px;
}

/* Background video positioning and sizing */
#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    min-width: 100%;
    min-height: 100%;

    object-fit: cover;

    border-radius: 10px;
}

/* Dark gradient overlay on top of video for text readability */
.video-container::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.9));
}

/* Centered text overlay on top of background video */
.subtitle {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    font-weight: normal;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Large subtitle text */
.subtitle p {
    font-family: 'Game', Arial, sans-serif;
    font-size: 48px;
    margin: 0px;
}

/* Responsive sizing for subtitle text on medium screens */
@media (max-width: 900px) {
    .subtitle p {
        font-size: 24px;
        margin-top: 40px;
    }
}

/* Additional responsive sizing for small screens */
@media (max-width: 830px) {
    .subtitle p {
        font-size: 20px;
        margin-top: 40px;
    }
    .subtitle {
        width: 95%;
    }
}

/* Description text */
.description {
    font-size: 25px;
    font-weight: normal;
    color: rgb(255, 255, 255);

    margin-top: 24px;
    width: 750px;
    padding: 10px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .description {
        font-size: 20px;
        width: auto;
    }
}

@media (max-width: 830px) {
    .description {
        font-size: 18px;
        width: auto;
    }
}

/* Start of Home Webpage */

/* Title for the image slideshow section */
.slideshow-title {
    text-align: center;
    font-family: 'Game', Arial, sans-serif;
    font-size: 36px;
    font-weight: normal;

    color: white;
    background-color: var(--primary-color);

    max-width: 750px;
    margin: 80px auto 0 auto;
    padding: 16px;

    border: 2px solid white;
    border-radius: 40px;
}

/* Responsive slideshow title sizing */
@media (max-width: 900px) {
    .slideshow-title {
        font-size: 24px;
        width: 80%;
        align-items: center;
    }
}

/* Container for rotating slideshow images with fade animation */
.slideshow {
    position: relative;
    display: flex;
    justify-content: center;
    height: 90vh;
    margin: 24px 48px;
}

/* Slideshow images with fade animation - starts invisible */
.slideshow img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 1280px;
    height: 100%;

    object-fit: cover;

    border: 2px solid white;
    border-radius: 5px;
    padding: 5px;

    opacity: 0;
    animation: fade 35s infinite;
}

@media (max-width: 1280px) {

    .slideshow {
        height: 60vh;
        margin: 24px 48px;
    }

    .slideshow img {
        object-fit: contain; 
        width: auto;
    }
}

@media (max-width: 900px) {

    .slideshow {
        height: 40vh;
        margin: 24px 48px;
        align-items: center;
    }

    .slideshow img {
        object-fit: contain; 
        width: auto;
        align-items: center;
    }
}

@media (max-width: 650px) {

    .slideshow {
        height: 30vh;
        margin: 24px 48px;
        align-items: center;
    }

    .slideshow img {
        object-fit: contain; 
        width: auto;
        align-items: center;
    }
}


/* Staggered animation delays for each image to create a rotating effect */

.slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.slideshow img:nth-child(2) {
    animation-delay: 5s;
}

.slideshow img:nth-child(3) {
    animation-delay: 10s;
}

.slideshow img:nth-child(4) {
    animation-delay: 15s;
}

.slideshow img:nth-child(5) {
    animation-delay: 20s;
}

.slideshow img:nth-child(6) {
    animation-delay: 25s;
}

.slideshow img:nth-child(7) {
    animation-delay: 30s;
}

/* Fade animation keyframes - images fade in, stay visible, then fade out */

@keyframes fade {

    /* Start with the image invisible */
    0% {
        opacity: 0;
    }

    /* Fade in to full opacity */
    8% {
        opacity: 1;
    }

    /* Stay fully visible for a while */
    20% {
        opacity: 1;
    }

    /* Fade out to invisible */
    28% {
        opacity: 0;
    }

}

/* Title for preview section */
.preview-title {
    position: relative;
    text-align: center;
    font-family: 'Game', Arial, sans-serif;
    font-size: 30px;
    font-weight: normal;

    color: white;
    background-color: var(--primary-color);

    max-width: 750px;
    margin: 80px auto 0px auto;
    padding: 12px;

    border: 2px solid white;
    border-radius: 40px;
}

/* Responsive preview title sizing */
@media (max-width: 900px) {
    .preview-title {
        font-size: 24px;
        width: 65%;
        margin: 80px auto 10px;
        align-items: center;
    }
}

/* Content preview cards with image and bullet list */
.preview {
    position: relative;
    margin: 20px auto 100px auto;
    max-width: 1280px;
    padding: 20px;

    background-color: rgb(16, 88, 16, 0.9);
    color: var(--text-color);

    border: 2px solid white;
    border-radius: 25px;

    font-size: 20px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* List styling within preview cards */
.preview ul {
    max-width: 480px;
    padding-left: 0;
}

/* Responsive layout for preview cards on medium screens */
@media (max-width: 1080px) {
    .preview {
        flex-direction: column;
        width: 65%;
        align-items: center;
    }

    .preview ul {
        max-width: 600px;
    }
}

/* Preview card image styling */
.preview-image img {
    width: 100%;
    height: auto;
    border: 2px dashed white;
    border-radius: 10px;
}

/* List items with icon backgrounds */
.iconlist li {
    margin-bottom: 20px;
    list-style: none;
}

/* Icon list items - each item has a different background icon */
.iconlist li:nth-child(1) {
    background-image: url('corniconlist1.png');
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 40px;
}

.iconlist li:nth-child(2) {
    background-image: url('geariconlist1.png');
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 40px;
}

.iconlist li:nth-child(3) {
    background-image: url('cowiconlist1.png');
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 40px;
}

.iconlist li:nth-child(4) {
    background-image: url('clockiconlist1.png');
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 40px;
}

/* Preview section link styling - visited, unvisited, and hover states */
.preview a:visited {
    color: rgb(220, 236, 222);
    text-decoration: none;
    font-family: 'Game', Arial, sans-serif;
}

.preview a:link {
    color: rgb(220, 236, 222);
    text-decoration: none;
    font-family: 'Game', Arial, sans-serif;
}

.preview a:hover {
    color: rgb(240, 226, 209);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* End of Home Webpage */

/* Start of Farming Types, Technology, and Livestock */

/* Standard bullet list styling */
.bulletlist li {
    margin-bottom: 10px;
    list-style: circle;
}

.part1 ul,
.part2 ul {
    width: 65%;
}

/* Main content section for part 1 */
.part1-section {
    max-width: 1280px;
    margin: 80px auto 0 auto;
}

/* Title for part 1 section */
.part1-title {
    display: block;
    text-align: center;
    font-family: 'Game', Arial, sans-serif;
    font-size: 28px;
    font-weight: normal;

    color: white;
    background-color: var(--primary-color);

    max-width: 400px;
    margin: 40px auto 0 0;
    padding: 12px;

    border: 2px solid white;
    border-radius: 40px;
}

/* Part 1 container - flexbox layout with image and text side-by-side */
.part1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    font-size: 20px;
    align-items: center;

    gap: 30px;
    max-width: 1280px;

    background-color: var(--primary-color);
    color: var(--text-color);

    margin: 26px auto;
    padding: 12px;

    border: 2px white solid;
    border-radius: 10px;
}

/* Image styling for part 1 */
.part1img img {
    border: 2px dashed white;
    border-radius: 25px;

    width: 100%;
    max-width: 600px;
}

/* Main content section for part 2 */
.part2-section {
    max-width: 1280px;
    margin: 80px auto 0 auto;
}

/* Title for part 2 section */
.part2-title {
    display: block;

    text-align: center;
    font-family: 'Game', Arial, sans-serif;
    font-size: 28px;
    font-weight: normal;

    color: white;
    background-color: var(--primary-color);

    max-width: 400px;
    margin: 40px 0 0 auto;
    padding: 12px;

    border: 2px solid white;
    border-radius: 40px;
}

/* Part 2 container - flexbox layout reversed so image appears on right */
.part2 {
    display: flex;

    font-size: 20px;
    align-items: center;

    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 30px;
    max-width: 1280px;

    background-color: var(--primary-color);
    color: var(--text-color);

    margin: 24px auto;
    padding: 12px;

    border: 2px white solid;
    border-radius: 10px;
}

/* Image styling for part 2 */
.part2img img {
    border: 2px dashed white;
    border-radius: 25px;

    width: 100%;
    max-width: 600px;
}

/* Responsive layout for part 1 and part 2 on medium screens */
@media (max-width: 1000px) {

    .part1-title,
    .part2-title {
        align-items: center;
        margin: 20px auto;
    }

    .part1,
    .part2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .part1 ul,
    .part2 ul {
        width: 90%;
    }
}

/* Video container for embedded iframe videos */

.video {
    display: flex;
    justify-content: center;
    gap: 30px;

    width: 100%;
    max-width: 1280px;
    margin: 80px auto;
}

/* Iframe styling for tractor and drone videos */
.tractorvideo iframe,
.dronevideo iframe {
    height: 330px;
    width: 600px;

    border: 4px solid white;
    border-radius: 10px;
}

@media (max-width: 1260px) {
    .video {
        flex-direction: row;
        align-items: center;
    }

    .tractorvideo iframe,
    .dronevideo iframe {
        height: 270px;
        width: 500px;
        max-width: 700px;
    }
}

@media (max-width: 1100px) {
    .video {
        flex-direction: column;
        align-items: center;
    }

    .tractorvideo iframe,
    .dronevideo iframe {
        height: 380px;
        width: 85vh;
    }
}

@media (max-width: 800px) {

    .tractorvideo iframe,
    .dronevideo iframe {
        width: 92vw;
        height: 350px;
    }
}

/* Container for "Did You Know" and "Global" information boxes */

.info-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 80px auto;
    max-width: 1280px;
}

/* Titles for information boxes */
.didyouknow h3,
.global h3 {
    text-align: center;
    text-decoration: underline;
    font-family: 'Game', Arial, sans-serif;
}

/* Styled information boxes */
.didyouknow,
.global {
    flex: 1;

    font-family: Arial, sans-serif;
    font-size: 20px;
    color: var(--text-color);

    height: 275px;
    background-color: var(--primary-color);

    border: 2px white solid;
    border-radius: 16px;

    margin-bottom: 50px;
    margin-left: 50px;
    margin-right: 50px;
    padding: 20px;
}

/* Responsive layout for information boxes on smaller screens */
@media (max-width: 900px) {
    .info-section {
        flex-direction: column;
        align-items: center;
        padding: 0 50px;
    }

    .didyouknow,
    .global {
        width: 100%;
        max-width: 700px;
    }
}

/* Back-to-top button styling */

.top {
    text-align: center;
    font-size: 16px;
    font-family: 'Game', Arial, sans-serif;

    background-color: var(--primary-color);

    width: 125px;
    margin: auto auto 30px auto;
    padding: 5px;

    border: 1px white dashed;
    border-radius: 10px;

    align-items: center;
}

/* Top button link styling - visited, unvisited, and hover states */
.top a:visited {
    font-size: 30px;
    color: rgb(220, 236, 222);
}

.top a:link {
    color: rgb(220, 236, 222);
    text-decoration: none;
}

.top a:hover {
    color: rgb(240, 226, 209);
}

/* Footer styling */
.footer {
    text-align: center;
    font-size: 12px;
    font-family: Arial, sans-serif;
    align-items: center;
}

/* End of Farming Types, Technology, and Livestock */

/* Start of Timeline */

/* Main timeline container with flexbox column layout */
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: 'Game', Arial, sans-serif;
    font-size: 25px;
    color: white;

    margin-top: 50px;
    gap: 16px;
}

/* Timeline date styling */
.date {
    text-align: center;
    font-size: 45px;
    font-weight: bold;

    padding-top: 15px;
    padding-bottom: 15px;
    text-decoration: underline;
}

/* Timeline event type styling */
.type {
    text-align: center;
    font-size: 25px;

    padding-bottom: 15px;
}

/* Timeline event description styling */
.desc {
    text-align: center;
    font-size: 25px;

    padding-bottom: 15px;
}

/* Vertical line connecting timeline events */
.line {
    width: 5px;
    height: 64px;
    background-color: var(--primary-color);
}

/* Timeline year card styling */
.year {
    background-color: var(--primary-color);
    width: 50%;
    border: 2px white solid;
    border-radius: 10px;
    padding: 16px 0px;
}

/* ID-specific year card styling - final year card */
#year {
    background-color: var(--primary-color);
    width: 50%;
    border: 2px white solid;
    border-radius: 10px;

    margin-bottom: 50px;
    padding: 16px 0px;
}

/* Images displayed in timeline sections */
.timelineimg img {
    width: 95%;
    height: auto;
    border: 2px dashed white;
    border-radius: 10px;

    display: block;
    margin: 10px auto;
}

/* Audio player styling */
.audio {
    display: block;
    width: 75%;
    margin: auto auto;
}

/* Responsive timeline styling for small screens */
@media (max-width: 800px) {
    .year {
        width: 85%;
        margin: 0 auto;
    }

    #year {
        width: 85%;
        margin-bottom: 50px;
    }
}