/* Existing styles */
html, body {
    background-color: #006969;
}
body.helldivers {
    background-color: #006969;
}
.page-body {
    background-color: #faf8f5;
    padding-bottom: 50px;
}
body.helldivers > .page-body {
    background-color: #131313;
}
.chakra {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-style: normal;
}
p, a, li, input, select, textarea, h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
}
.maincontent h1, .maincontent h2, .maincontent h3, .maincontent h4, .maincontent h5, .maincontent h6 {
    font-weight: 700;
    color: #005555;
}
.tagline {
    font-size: .75em;
    font-weight: 200;
}

.helldivers {
    background-color: #131313;
    color: #FFFFFF;
}
.container {
    width: 100%;
}
.navbar {
    background-color: #006969;
    border-bottom: 3px solid #003535;
}
.fudgeminus, .fudgezero, .fudgeplus {
    text-align: center;
    border: 10px solid #000;
    color: #000;
    font-size: 3.0em;
    font-weight: bold;
    width: 100px;
    height: 100px;
    margin: auto;
}
.fudgeplus {
    background-color: #090;
}
.fudgeminus {
    background-color: #A00;
}

/* New styles for dropdown */
.navbar-nav .dropdown-menu {
    background-color: #006969; /* Match the main menu background color */
    border: none; /* Remove default border */
    border-radius: 0; /* Remove rounded corners */
}

.navbar-nav .dropdown-menu .dropdown-item, .navbar-nav .dropdown-menu .dropdown-item:hover {
    color: #FFFFFF; /* Match the main menu text color */
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background-color: #006969; /* Match the main menu hover color */
}

/* Adjust dropdown position and styles on desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        top: calc(100% + 13px); /* Position beneath the navbar with 3px overlap */
        margin-top: 0; /* Remove margin */
        border-top: none;
        border-left: 3px solid #003535; /* Add border to the left */
        border-right: 3px solid #003535; /* Add border to the right */
        border-bottom: 3px solid #003535; /* Match the border of the main menu */
    }
}

/* Remove border on mobile */
@media (max-width: 991px) {
    .navbar {
        border-bottom: none; /* Remove bottom border on mobile */
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        padding-left: 5px; /* Add padding to the left on mobile */
        padding-right: 5px; /* Add padding to the right on mobile */
    }
}

/* Match main menu font colors to dropdown */
.navbar-nav .nav-link {
    color: #FFFFFF; /* Brighter font color */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: #006969; /* Darker background on hover */
}

/* Remove blue outline when dropdown is clicked */
.navbar-nav .nav-link.dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}
/* Customize dropdown divider */
.dropdown-divider {
    height: 3px; /* Set thickness */
    background-color: #003535; /* Set color */
}
.custom-divider {
    height: 10px; /* Set thickness */
    background-color: #006969; /* Set color */
    border: 3px solid #003535;
    width: 90%;
    margin: 30px auto;
}
.featuredimage {
    border: 3px solid #003535;
    width: 48%;
}
.maincontent a, .helldivers a {
    text-decoration: underline;
    font-weight: 600;
}
.maincontent a {
    color: #005555;
}
.helldivers a {
    color: #d4c758;
}
.navbar a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}
.align-left-label .form-check-label {
    text-align: left;
    width: 100%;
}
.btn-primary, .btn-primary:hover {
    background-color: #006969;
    border-color: #003535;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 55px;
    corner-radius: 0;
    margin: 20px;
}
.form-check-input:checked {
    background-color: #006969;
    border-color: #003535;
}
.navbar-brand {
    font-size: 1.7em;
}
.navbar-portrait {
    height: 36px;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}
.mobileonly {
    display: none;
    @media (max-width: 767px) {
        display: inline;
    }
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1); /* Optional: This changes the border of the button to a lighter color */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.copy-button {
    cursor: pointer;
}
.copy-message {
    display: none;
    color: green;
    margin-top: 10px;
}

a.btn-primary, a.btn-primary:hover {
    color: #ffffff;
    text-decoration: none;
}
.pagination .active a {
    background-color: #006969;
    border-color: #003535;
    color: #ffffff;
}
.pagination a, .pagination a:hover {
    text-decoration: none;
}
.pagination a:hover, {
    color: inherit;
}
.pagination .active a:hover {
    color: #FFFFFF;
}

/* Quote Box Styles */
.custom-segment {
    background-color: #beedeb;
    border: 3px solid #003535;
}
.custom-img {
    max-width: 150px;
    width: 100%;
    vertical-align: top;
    border: 3px solid #003535;
}
.custom-text {
    font-size: 1rem;
    color: #003535;
    text-align: left;
    vertical-align: top;
}
.yellowquote {
    background-color: #f2eaa5;
    color: #262626;
    border: 3px solid #d4c758;
}
.yellowquote .custom-text {
    color: #262626;
}
.yellowquote .custom-img {
    border: 3px solid #d4c758;
}
.redquote {
    background-color: #ebd6d5;
    color: #470200;
    border: 3px solid #470200;
}
.redquote .custom-text {
    color: #470200;
}
.redquote .custom-img {
    border: 3px solid #470200;
}
.redquote a, .requote a:hover {
    color: #470200;
}
@media (max-width: 768px) {
    .custom-img {
        max-width: 48%;
        margin-bottom: 10px;
    }
    .custom-text {
        margin-top: 0;
    }
}
.mcsbtn:hover, .mcsbtn {
    margin: 0px 20px 0px 0px;
}

a.disabled {
    background-color: #AAAAAA !important;
    border-color: #AAAAAA !important;
    pointer-events: none;
    cursor: default;
}

.statdisplay {
    color: #FFFFFF;
    font-weight: 600;
    padding: 10px;
    margin: 5px;
    border-radius: 7px;
    flex-grow: 1;
    flex-basis: calc(50% - 20px); /* 50% for mobile, 2 per row */
}

@media (min-width: 768px) {
    .statdisplay {
        flex-basis: calc(25% - 20px); /* 25% for larger screens, 4 per row */
    }
}

.ee-encounterimage {
    max-width: 80%;
    height: auto;
    border: 3px solid #000000;
}

@media (min-width: 576px) {
    .ee-encounterimage {
        max-width: 400px;
    }
}

.ee-choice {
    flex-grow: 1;
    padding: 5px;
    flex-basis: calc(100% - 20px); /* 100% for mobile, 1 per row */
}

.ee-choice a, .ee-choice a:hover {
    margin: 0px;
}

.ee-choice a:hover {
    background-color: #003535;
}

@media (min-width: 576px) {
    .ee-choice {
        flex-basis: calc(50% - 20px); /* 50% for larger screens, 2 per row */
    }
}

.listimage {
    max-height: 400px;
    border: 3px solid #003535;
}
.embedwrapper {
    width: 100%;
}
@media (min-width: 576px) {
    .embedwrapper {
        width: 80%;
        margin-left: 10%;
    }
}

/* Newspaper theme */
body.newspaper .page-body {
    background-color: #e2e2e2;
}
body.newspaper h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    border-top: 5px solid #1a1a1a;
    border-bottom: 5px solid #1a1a1a;
    padding: 8px 0;
}
body.newspaper h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 8px;
    margin-bottom: 1.5rem;
}
body.newspaper .custom-segment {
    background-color: #dedede;
    border-color: #1a1a1a;
}
body.newspaper .custom-text {
    color: #1a1a1a;
}
body.newspaper .custom-img {
    border-color: #1a1a1a;
    filter: grayscale(100%);
}
body.newspaper pre {
    font-weight: 700;
}

/* Footer */
.site-footer {
    background-color: #006969;
    border-top: 3px solid #003535;
    padding: 25px 0 15px;
    text-align: center;
}
.site-footer .social-icons {
    margin-bottom: 10px;
}
.site-footer .social-icons a {
    color: #ffffff;
    font-size: 1.6em;
    margin: 0 12px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.site-footer .social-icons a:hover {
    opacity: 0.6;
}
.site-footer .footer-copy {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.site-footer .tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 200;
    margin-bottom: 0;
}

/* Nav social icon separator */
.nav-social-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 6px 4px;
}

/* Nav link hover underline (non-dropdown items only) */
.navbar-nav .nav-link:not(.dropdown-toggle) {
    position: relative;
}
.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, left 0.2s ease;
}
.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    width: 70%;
    left: 15%;
}

pre {
 font-family: monospace;
 font-size: 12px;
}

@media (max-width: 600px) {
    pre {
        font-size: 8px;
    }
}
a.secret-revealed {
    background-color: #660033 !important;  /* Crushed Berry */
    border: 2px solid #880044 !important;  /* Slightly lighter berry tone */
    color: #fff !important;                /* White text for contrast */
}

a.secret-revealed:hover {
    background-color: #330011 !important;  /* Dark Wine */
    border-color: #771133 !important;      /* Deeper tone on hover */
    color: #fff !important;                /* Maintain white text */
}
.media-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
}

/* Default to a 16:9 aspect ratio for videos */
.media-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-container:has(iframe)::before{
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for iframe */
}

.media-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Helldivers Requisition Form */
.hd-form-panel {
    background-color: #282828;
    border: 3px solid #585858;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
}
.hd-form-panel h3 {
    color: #d4c758;
    margin-bottom: 20px;
    text-align: center;
}
.hd-form-section {
    background-color: #1e1e1e;
    border: 2px solid #585858;
    border-left: 4px solid #d4c758;
    padding: 15px;
    margin-bottom: 12px;
}
.hd-form-section h5 {
    color: #d4c758;
    margin-bottom: 10px;
}
.hd-form-section p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.hd-form-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 3px;
    transition: background-color 0.15s;
    cursor: pointer;
}
.hd-form-option:hover {
    background-color: #333333;
}
.hd-form-option input[type="radio"],
.hd-form-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #585858;
    background-color: #131313;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
}
.hd-form-option input[type="radio"] {
    border-radius: 50%;
}
.hd-form-option input[type="checkbox"] {
    border-radius: 2px;
}
.hd-form-option input[type="radio"]:checked,
.hd-form-option input[type="checkbox"]:checked {
    border-color: #d4c758;
    background-color: #131313;
}
.hd-form-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d4c758;
}
.hd-form-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 4px;
    width: 5px;
    height: 10px;
    border: solid #d4c758;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.hd-form-option .hd-option-text {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
}
.hd-form-option .hd-option-text b {
    color: #ffffff;
}
.hd-warbond-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hd-warbond-grid .hd-form-option {
    flex-basis: calc(50% - 3px);
    margin-bottom: 0;
}
@media (max-width: 767px) {
    .hd-warbond-grid .hd-form-option {
        flex-basis: 100%;
    }
}

/* Breakpoint scaling */
@media (min-width: 1025px) {
    .media-container {
        max-width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .media-container {
        max-width: 70%;
    }
}

@media (max-width: 767px) {
    .media-container {
        max-width: 100%;
    }
}