/* General Reset and Global Styles */
* {
    margin: 0px;
    padding: 0px;
    font-family: 'Century Gothic', Arial, sans-serif;
}

body {
    width: 100%;
    display: -webkit-box;
    -webkit-box-pack: center;
    background-color: white;
    color: #303030;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/* Typography */
h1 {
    font: 45px 'Century Gothic', Arial, sans-serif;
    color: #303030;
}

h2 {
    font: bold 30px 'Century Gothic', Arial, sans-serif;
    color: #303030;
}

h3 {
    font: bold 24px 'Century Gothic', Arial, sans-serif;
    color: #303030;
}

h4 {
    font: bold 18px 'Century Gothic', Arial, sans-serif;
    color: #303030;
}

hlink {
    font: bold 16px 'Century Gothic', Arial, sans-serif;
    text-decoration: underline;
    color: #101010;
}

inv {
    font: bold 16px 'Century Gothic', Arial, sans-serif;
    color: #a785a7;
}

/* Structural Elements */
header, section, footer, aside, nav, article, hgroup {
    display: block;
}

/* Wrapper and Container */
#big_wrapper {
    max-width: 1300px;
    margin: 20px auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-flex: 1;
    background-color: white;
}

/* Header and Banner */
#top_header {
    border: solid #303030 1px;
    top: 0;
    height: 210px;
    background: url(/static/images/network_visualization.jpg);
    background-size: 1300px 210px;
    color: #303030;
    padding-top: 5px;
}

#banner-header-animated {
    position: relative;
    z-index: 10;
    margin-top: 10px; 
    background: rgba(255, 255, 255, 0.85);
}

#header-description-animated {
    position: relative;
    z-index: 10;
    color: #404040;
    font: 14px Calibri;
    padding: 5px;
    margin-top: 0; 
}


/* Slideshow for Top Banner */
#slideshow {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 150%; /* Adjusted to allow for panning */
    height: 150%; /* Adjusted to allow for panning */
    opacity: 0;
    animation: fade 20s infinite;
}

/* Keyframes for fading in and out */
@keyframes fade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    25% { opacity: 1; }
    45% { opacity: 0; }
    100% { opacity: 0; }
}

/* Add delays for each slide */
#slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}
@keyframes pan1 {
    0% { transform: translateY(-45%) translateX(-35%) scale(0.3); }
    100% { transform: translateY(-40%) translateX(-37%) scale(0.3); }
}
.pan-1 {
    animation: pan1 10s ease-in-out infinite;
}




#slideshow .slide:nth-child(2) {
    animation-delay: 5s;
}
@keyframes pan2 {
    0% { transform: translateY(-10%) translateX(40%) scale(1.3); }
    100% { transform: translateY(-12%) translateX(40%) scale(1.4); }
}
.pan-2 {
    animation: pan2 10s ease-in-out infinite;
}




#slideshow .slide:nth-child(3) {
    animation-delay: 10s;
}
@keyframes pan3 {
    0% { transform: translateY(0%) translateX(70%) scale(3); }
    100% { transform: translateY(0%) translateX(90%) scale(3); }
}
.pan-3 {
    animation: pan3 10s ease-in-out infinite;
}



#slideshow .slide:nth-child(4) { 
    animation-delay: 15s;
}
@keyframes pan4 {
    0% { transform: translateY(-10%) translateX(50%) scale(1.0); }
    100% { transform: translateY(-10%) translateX(50%) scale(1.0); }
}
.pan-4 {
    animation: pan4 10s ease-in-out infinite;
}











/* Menu Styles */
#banner-header {
    margin-top: 90px;
    background: rgba(255, 255, 255, 0.85);
}

#top_menu {
    border: #303030;
    background: rgba(255, 255, 255, 0.85);
    color: #303030;
}

#header-description {
    color: #404040;
    font: 18px 'Century Gothic', Arial, sans-serif;
    padding: 5px;
}

#top_menu li {
    display: inline-block;
    list-style: none;
    padding: 5px;
    font: 18px 'Century Gothic', Arial, sans-serif;
    color: #303030;
    -webkit-transition: -webkit-transform .5s, opacity .5s, background .5s, width .5s, height .5s;
}

#top_menu li:hover {
    -webkit-transform: rotate(0deg);
    background: #999999;
}

/* Dropdown Menu */
.dropbtn {
    background-color: white;
    color: #909090;
    padding: 5px;
    font-size: 16px;
    border: none;
    font: 20px 'Century Gothic', Arial, sans-serif;
}

.dropdown {
    position: relative;
    display: inline-block;
    font: 20px 'Century Gothic', Arial, sans-serif;
}

.dropdown-content {
    color: white;
    display: none;
    position: absolute;
    background-color: black;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 1;
    font: 18px 'Century Gothic', Arial, sans-serif;
}

.dropdown-content a {
    color: black;
    padding: 5px 14px;
    text-decoration: none;
    display: block;
    background-color: black;
}

.dropdown-content a:hover {
    background-color: #808080;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #909090;
    color: black;
}

/* Content Sections */
#split_div {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
}

#div_articles {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-flex: 1;
    margin: 10px;
    padding: 10px;
    color: #303030;
    font: 20px 'Century Gothic', Arial, sans-serif;
}

#major_section {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-top: 15px;
    padding: 15px;
    background: white;
    color: #303030;
    border-left: 5px solid #303030;
}

#major_section a:hover {
    color: #000000;
}

#side_news {
    border: 1px solid #303030;
    vertical-align: right;
    width: 170px;
    margin: 5px;
    padding: 10px;
    background: white;
    color: #303030;
    font: 16px 'Century Gothic', Arial, sans-serif;
}

/* Footer */
#the_footer {
    text-align: center;
    padding: 20px;
    border-top: 2px solid #303030;
    color: #808080;
    margin-top: 300px;
    font: 14px 'Century Gothic', Arial, sans-serif;
}

/* Grid Layout for People Section */
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.person {
    text-align: left;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.person img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.person b {
    display: block;
    font-size: 18px;
    color: #303030;
    margin-bottom: 10px;
}

.person p {
    font-size: 14px;
    color: #404040;
}

/* Link styles consistent with banner and dropdown */
.person a:link, 
.person a:visited {
    color: #303030;
    background-color: transparent;
    text-decoration: none;
}

.person a:hover, 
.person a:active {
    color: black;
    background-color: transparent;
    text-decoration: none;
}

@media screen and (max-width: 1024px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .people-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Container Setup */
#content_container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    height: 100vh;
    overflow: hidden;
}

#about_section {
    flex: 2;
    padding: 20px;
    background-color: #fff;
    overflow: auto;
}

#newsfeed_section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
}

#newsfeed_container {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Ensuring Images are Responsive */
#about_section img, 
#newsfeed_section img {
    max-width: 100%;
    height: auto;
}

/* Article Section */
#major_section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

h2, h3, h4 {
    margin-top: 0;
}

/* Scrollbar Styling (optional) */
#newsfeed_container::-webkit-scrollbar {
    width: 10px;
}

#newsfeed_container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

#newsfeed_container::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Group Photos Slideshow */
#group-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
}

.group-slide {
    display: none;
    width: 100%;
    height: auto;
    position: relative;
}

.group-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.group-caption {
    color: #f2f2f2;
    font-size: 16px;
    padding: 12px;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 0 0 8px 8px;
    overflow-wrap: break-word;
    max-height: 35%;
    overflow-y: auto;
}



/* Navigation Buttons for Group Photos Slideshow */
.prev-group, .next-group {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next-group {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-group:hover, .next-group:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Flexbox container for the iframe and text */
.flex-container {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Space between the iframe and the text */
    margin-top: 20px;
}

/* Style for the text content */
.text-content {
    flex: 1; /* Take up remaining space */
    max-width: 400px; /* Optional: limit the width of the text area */
    font-size: 16px;
    line-height: 1.6;
}
