/* General Styles */
body {
    font-family: 'Cinzel', Georgia, serif;
    background-color: #3D2922; 
    color: #4be1ec; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2 {
    color: #35beec;
}

img {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

figcaption {
    font-size: 14px;
    text-align: left;
    color: #F6E05E;
    margin-top: 5px;
}

/* Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #592B1E;
    color: #F6E05E;
    padding: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header nav {
    padding: 10px 0;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header nav ul li a {
    color: #F5D76E;
    text-decoration: none;
    font-size: 16px;
}

header nav ul li a:hover {
    color: #D9B65C;
}

/* Main content section */
#content {
    margin: 40px auto;
    text-align: center;
    padding: 20px;
}

/* Section container styling */
.section {
    padding: 20px;
    margin: 20px 0;
    color: black;
    background-color: #dc92235e;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Greyed-out PCs who didn't survive */
.greyed-out {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Flexbox container for images */
.image-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

/* Global figure styling */
figure {
    text-align: center;
    width: 250px;
    background-color: #3D2922;
    padding: 10px;
    border-radius: 10px;
}

/* Style for the World Map Section */
#world-map figure {
    text-align: center;
    width: 275px;
    background-color: #3D2922;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

#world-map img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

#world-map figcaption {
    text-align: center;
    color: #F6E05E;
}

/* Flexbox container for the two lists */
.list-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.list-container ul {
    width: 48%;
    margin: 0;
}

/* Dropdown content */
.dropdown-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    padding: 10px;
    background-color: #592B1E;
    color: #F6E05E;
    border-radius: 5px;
    margin-top: 5px;
    width: 100%;
}

/* Triangle-list styles */
ul.triangle-list {
    list-style: none;
    padding-left: 0;
}

ul.triangle-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #F6E05E;
    min-height: 40px;
    cursor: pointer;
}

ul.triangle-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-0.95em);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #35beec;
}

/* Open state for clicked dropdown */
ul.triangle-list li.open .dropdown-content {
    max-height: 500px;
    opacity: 1;
}

/* Exclude dropdown for .no-dropdown section */
ul.no-dropdown li:hover::after {
    content: none;
}

ul.no-dropdown li::before {
    top: 0.3em;
    transform: none;
}

/* Button styling */
.main-page-button {
    text-align: center;
    margin: 40px 0;
}

.main-page-button a {
    background-color: #3D2922;
    color: #F6E05E;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    margin: 0 10px;
    display: inline-block;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.main-page-button a:hover {
    background-color: #D9B65C;
}

/* Footer */
footer {
    background-color: #592B1E;
    color: #ECC94B;
    text-align: center;
    padding: 10px;
}