/* General Body Styling */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    background: linear-gradient(45deg, #ff003c, #001aff);
    background-attachment: fixed; /* Makes the gradient stay in place on scroll */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

/* Top Navigation Bar */
.top-nav {
    background-color: black;
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.top-nav .divider {
    color: #555;
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit; /* Use the same font as the rest of the nav */
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: black;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    z-index: 1;
    border-radius: 10px;
    margin-top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Center the dropdown */
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #333;
    border-radius: 10px;
}

/* Class to show the dropdown (added by JavaScript) */
.show {
    display: block;
}

/* Main Content Styling */
.content-area {
    margin-top: 50px;
    width: 80%;
    max-width: 700px;
}

.info-box {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-box h2, .info-box h3 {
    margin: 0 0 10px 0;
}

/* Pros and Cons Container */
.pros-cons-container {
    display: flex; /* Arranges the boxes side-by-side */
    justify-content: center; /* Centers the boxes within the container */
    gap: 30px; /* Creates a space between the two boxes */
    flex-wrap: wrap; /* Allows the boxes to stack vertically on smaller screens */
    margin-top: 30px; /* Adds some space above this section */
}

/* We need to tell the info-box how to behave inside a flex container */
.pros-cons-container .info-box {
    flex: 1; /* Allows boxes to grow and shrink evenly */
    min-width: 280px; /* Prevents boxes from becoming too small */
    margin-bottom: 0; /* Removes the bottom margin they would normally have */
}

/* --- STYLES FOR PLOTLY t-SNE CONTAINER --- */

#plotly-tsne-plot {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden; /* Keeps the plot inside the rounded corners */
}