* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Burbank Small', Arial, sans-serif;
}

@font-face {
    font-family: Burbank Small;
    font-style: normal;
    font-display: swap;
    src: url(fonts/Burbank-Small.woff) format("woff"),url(fonts/Burbank-Small.ttf) format("truetype")
}

body {
    min-height: 100vh;
    background-color: #22a4f3;
    display: flex;
    flex-direction: column;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    gap: 20px;
}

.main-container {
    display: flex;
    background-color: #22a4f3;
    flex-direction: row;
    flex-grow: 1;
    justify-content: space-between;
}

.navbar {
    position: relative;
    z-index: 1000;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 50px;
    background-color: #22a4f3;
    gap: 15px;
}

.navbar a:hover {
    color: #f7e23c; /* Red text color on hover (use any color name or hex code) */
}

.navbar-mobile-button {
    display: none !important;
}

@media (max-width: 525px) {
    nav > a {
        display: none;
    }
}


.home-icon-group {
    display: flex;
    align-items: center;
}

.home-icon-wrapper {
    height: 32px;
    width: 28px;
    display: flex;
}

.arrow-icon-wrapper {
    height: 24px;
    width: 24px;
    display: flex;
}

.icon {
    height: 100%;
    width: 100%;
    fill: white;
    color: white;
    margin: auto;
}

nav a {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    font-family: Burbank Small;
    text-decoration: none;
}

nav div {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    font-family: Burbank Small;
    text-decoration: none;
}

#clear-cache {
    margin-left: auto;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-self: right;
}

.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.game {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 60vw;
    z-index: 0;
}

.game-canvas {
    width: 100%;
    aspect-ratio: 1.58;
}

.ad {
    background: #22a4f3;
    font-size: 12px;
    padding: 0px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.ad.top {
    width: 970px;
    height: 90px;
    align-self: center !important;
}

.ad.side {
    margin-top: 50px;
    width: 160px;
    height: 600px;
    margin: 50px 20px;
}

@media (max-width: 1320px) {
    .ad.top {
        width: 728px;
        height: 90px;
    }
}

@media (max-width: 1080px) {
    .ad.side {
        width: 120px;
        height: 600px;
    }
}

@media (max-width: 1000px) {
    .ad.top {
        display: none;
    }
}

@media (max-width: 320px) {
    .ad.top {
        display: none;
    }
}

.tooltip-modal {
    text-align: left;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 16px;
    width: 100vw;
    height: 100vh;
    position: fixed;
    display: none;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
}

.tooltip-content {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
}

.penguin-tooltip {
    object-fit: contain;
    height: 50vh;
    width: auto;
    margin-left: -150px;
}

.tooltip-text {
    background: white;
    padding: 20px;
    font-size: 18px;
    color: black;
    margin: 20px;
    border: 3px solid #979797;
    max-width: 400px;
    border-radius: 8px;
}

.tooltip-button {
    width: 80px;
    display: flex;
    align-self: flex-end;
    margin-right: 20px;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-wrapper {
    display: flex;
    width: 100%;
    max-width: 80vh;
    aspect-ratio: 1.58;
    background: #ccc;
}

footer {
    font-family: 'Burbank Small', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    background: #22a4f3;
    color: #fff;
    padding: 10px;
    font-size: 12px;
    gap: 6px;
    text-align: center;
    flex-shrink: 0;
}

footer .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

footer a {
    color: #ffcc00;
    font-weight: bold;
    text-decoration: none;
}

#exit-fullscreen-button {
    position: absolute;
    margin: 10px;
}

#exit-fullscreen-button {
    top: 0;
    right: 0;
    display: none;
}

/* ========================================
   NEW: Settings Dropdown Styles
   ======================================== */

.settings-dropdown {
    position: relative;
    display: inline-block;
}

/* Add invisible padding to bridge the gap */
.settings-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 999;
}

.settings-trigger {
    cursor: pointer;
    transition: background-color 0.2s;
}

.settings-trigger:hover {
    background-color: #5a6268;
}

.resize:hover {
    background-color: #5a6268;
}

#fullscreen-button:hover {
    background-color: #5a6268;
}

.settings-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 2px;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-dropdown:hover .settings-dropdown-content {
    display: block;
}

.dropdown-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: #202121;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    font-family: Burbank Small;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: #e9ecef;
}

/* Special styling for the cache clear button */
#clear-cache-button:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

#clear-yukon-button:hover {
    background-color: #f0f8ff;
    color: #007bff;
}

#hard-reload-button:hover {
    background-color: #f0fff4;
    color: #28a745;
}

/* Cache message styling */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#cache-message {
    position: fixed;
    top: 60px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .settings-dropdown-content {
        right: auto;
        left: 0;
    }
}

@media (max-width: 525px) {
    .settings-dropdown {
        margin-left: auto;
    }
}

.facts-container {
    display: flex;
    position: inherit;
    width: 80%;
    align-self: center;
    justify-content: center;
    margin: 20px;
    border-radius: 8px;
    border: 2px dashed white;
    padding: 15px;
    background-color: #6ebff1;
}

.fact {
    font-weight: bold;
    font-family: 'Burbank Small';
    text-align: center;
    font-size: 14px;
    color: white;
}

@keyframes factSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fact-animate {
    animation: factSlideIn 0.5s ease forwards;
}

/* ========================================
   Info Section
   ======================================== */

.info-section {
    display: flex;
    flex-direction: column;
    width: 80%;
    align-self: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    flex-direction: row;
    background-color: #0068a7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-height: 200px;
}

.info-card--flipped {
    flex-direction: row-reverse;
}

.info-card--faq {
    flex-direction: column;
}

.info-card__image {
    flex: 0 0 35%;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.info-card__image--howtoplay {
    background-color: #0e3d5e;
}

.info-card__body {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.info-card__body--full {
    width: 100%;
}

.info-card__body h2 {
    font-family: 'Burbank Small', Arial, sans-serif;
    font-size: 22px;
    color: #fff;
    margin: 0;
}

.info-card__body p {
    font-family: 'Burbank Small', Arial, sans-serif;
    font-size: 14px;
    color: #d6eeff;
    line-height: 1.6;
    margin: 0;
}

.info-card__body a {
    color: #ffdd57;
}

.info-card__btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 6px;
    padding: 8px 22px;
    background-color: #fff;
    color: #1a7fc4 !important;
    font-family: 'Burbank Small', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid #d0e8ff;
    transition: background-color 0.2s, color 0.2s;
}

.info-card__btn:hover {
    background-color: #e0f0ff;
}

/* Discord mock UI */
.info-card__discord-mock {
    display: flex;
    background: #2c2f33;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 340px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.info-card--discord {
    max-width: 700px;
    align-self: center;
    width: 100%;
}

.info-card--discord .info-card__image {
    flex: 0 0 280px;
    max-width: 280px;
}

.discord-sidebar {
    background: #23272a;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 90px;
    color: #99aab5;
    font-family: 'Burbank Small', Arial, sans-serif;
}

.discord-sidebar span::before {
    content: '# ';
}

.discord-chat {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.discord-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.discord-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #7289da;
}

.discord-msg strong {
    display: block;
    color: #7289da;
    font-size: 11px;
    margin-bottom: 2px;
}

.discord-msg p {
    color: #dcddde !important;
    font-size: 11px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* How to play visual */
.howtoplay-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.howtoplay-penguin {
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Online Safety Tips */
.safety-section {
    background-color: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.safety-title {
    text-align: center;
    font-size: 26px;
    font-family: 'Burbank Small', Arial, sans-serif;
    color: #1a7fc4;
    margin-bottom: 4px;
}

.safety-subtitle {
    font-family: 'Burbank Small', Arial, sans-serif;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #1a7fc4;
    margin-top: -28px;
}

.safety-tips-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.safety-tip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.safety-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center bottom;
}

.safety-content h3 {
    font-family: 'Burbank Small', Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #1a7fc4;
    margin-bottom: 8px;
}

.safety-content ul {
    list-style: disc;
    padding-left: 18px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.safety-content ul li {
    font-family: 'Burbank Small', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.safety-committed {
    font-family: 'Burbank Small', Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #1a7fc4;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 900px) {
    .info-section {
        width: 95%;
    }

    .info-card, .info-card--flipped {
        flex-direction: column;
    }

    .info-card__image {
        flex: unset;
        min-height: 160px;
    }

    .safety-section {
        padding: 24px 20px;
    }
}

@media (max-width: 560px) {
    .info-card__body {
        padding: 20px 18px;
    }

    .safety-tips-row {
        flex-direction: column;
    }
}
