/* ===========================
   Global Styles
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f8fc;
    color: #222;
    line-height: 1.7;
}

/* ===========================
   Navigation
=========================== */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

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

    background: #003366;
    padding: 15px 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: .3s;
}

nav ul li a:hover {
    color: gold;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 2rem;
}

/* ===========================
   Text Sections
=========================== */

div {
    max-width: 1100px;
    margin: auto;
}

h1 {
    text-align: center;
    color: #003366;
    margin: 50px 0 20px;
}

h2 {
    color: #0057b8;
    margin: 30px 0 15px;
}

p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

/* ===========================
   Sections
=========================== */

.section-container {
    background: white;
    margin: 50px auto;
    max-width: 1200px;

    padding: 35px;

    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* ===========================
   Table
=========================== */

.table-responsive {
    overflow-x: auto;
}

/* ===========================
   Bubble Chart / Map / WordCloud
=========================== */

#bubble-chart,
#choropleth-map,
#olympic_wordcloud {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 30px;
}

svg {
    max-width: 100%;
}

/* ===========================
   Tooltip
=========================== */

.tooltip {
    position: absolute;
    background: rgba(0,0,0,.85);
    color: white;

    padding: 10px;
    border-radius: 8px;

    pointer-events: none;
    font-size: .9rem;
}

/* ===========================
   Jesse Owens Section
=========================== */

.image-container {
    display: flex;
    gap: 40px;
    align-items: center;

    max-width: 1100px;
    margin: 60px auto;
    background: white;

    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.image-container img {
    width: 45%;
    object-fit: cover;
}

.image-description {
    padding: 30px;
}

/* ===========================
   Olympic Moments
=========================== */

.section-title {
    text-align: center;
    margin: 60px 0 40px;
    color: #003366;
}

.notable-moments {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;

    max-width: 1200px;
    margin: auto;
}

.moment {
    background: white;
    border-radius: 15px;

    overflow: hidden;

    transition: .3s;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.moment:hover {
    transform: translateY(-8px);
}

.moment img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.description {
    padding: 20px;
}

/* ===========================
   Video
=========================== */

.video-section {
    width: 100%;
    margin-top: 60px;
}

.video-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.video-container iframe {
    width: 90%;
    max-width: 900px;
    height: 500px;

    border-radius: 12px;
}

.video-description {
    text-align: center;
}

/* ===========================
   Icons
=========================== */

.fa-solid,
.fa-regular {
    display: block;
    text-align: center;
    margin: 40px 0;
    color: gold;
    font-size: 3rem;
}

/* ===========================
   Hover Animation
=========================== */

.anim {
    transition: .4s;
}

.anim:hover {
    transform: scale(1.08);
}

/* ===========================
   Mobile
=========================== */

@media(max-width:900px){

    nav{
        flex-direction:column;
        gap:15px;
        padding:20px;
    }

    nav ul{
        flex-direction:column;
        text-align:center;
        gap:12px;
    }

    .image-container{
        flex-direction:column;
    }

    .image-container img{
        width:100%;
    }

    .video-container iframe{
        height:300px;
    }

}