/* Header Logo Styles */
.top-header-wrapper {
    background-image: url(/banner.png);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #c9c9c9;
    padding: 5px 0;
    z-index: 100;
    width: 100%;
    position: relative; /* For absolute positioning of children */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-header-content { 
    display: none;
}

.header-right-area {
    display: none;
}

.squeaky-toy-container {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 20px;
}

#squeaky-toy {
    width: 40px;
    height: 40px;
    transition: transform 0.1s ease-out;
}

#squeaky-toy.squash {
    animation: squash-bounce 0.3s ease-out;
}

@keyframes squash-bounce {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.2, 0.7); }
    50% { transform: scale(0.8, 1.2); }
    70% { transform: scale(1.1, 0.9); }
    100% { transform: scale(1, 1); }
}

.logo-area { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 10px 0;
}

.trademark {
    font-size: 0.8rem;
    font-weight: bold;
    vertical-align: super;
    margin-left: -10px; 
    color: #555; 
    text-shadow: none;
}

.header-logo-img {
    height: 80px;
    width: auto;
}

.header-right, .header-left {
    display: none;
}

/* Main Navigation Bar Styles (formerly bottom-navbar) */
.main-navbar { 
    background: none;
    border: none;
    position: static;
    box-shadow: none;
    width: 100%;
    padding: 5px 0;
    margin-top: 0;
    border-top: 1px solid #ccc;
    background: #e9e9e9;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.main-nav-container { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-nav-menu { 
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-navbar .nav-item { 
    display: block;
    position: relative; 
}

.main-navbar .nav-link { 
    display: block;
    color: #333; 
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
}

.main-navbar .nav-link:hover { 
    color: #333;
    background-color: #e6e6e6;
    background-image: none;
    border: 1px solid #adadad;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
}

.play-now-container {
    display: none;
}

.bottom-banner-img,
.small-websim-logo-item,
.small-websim-logo-img,
.close-btn-inline,
.bottom-navbar { 
    display: none;
}

.navbar,
.nav-container,
.logo,
.logo-img,
.nav-menu,
.nav-logo {
    display: none;
}

.game-page {
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#game-iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #999;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    background: #000;
}

.container { /* Applies to #main-content */
    margin: 0 auto;
    height: 100%; /* Ensure it explicitly fills vertical space given by parent */
    display: flex;
    align-items: center; /* Vertically center the page-main-wrapper */
    justify-content: center; /* Horizontally center the page-main-wrapper */
    flex: 1;
    width: 100%;
}

/* New: Wrapper for page content within .container to enable internal centering */
.page-main-wrapper {
    width: 100%;
    height: 100%; /* Fill the container's height */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the active .content page horizontally */
    justify-content: center; /* Center the active .content page vertically if short */
}

.game-active .main-container {
    border-left: none;
    border-right: none;
    box-shadow: none;
}

.content {
    width: 100%;
}

.broadcast-bar {
    background: #ffe575; /* A more classic yellow */
    background-image: linear-gradient(to bottom, #fff5c0, #ffe575); /* Subtle gradient */
    border-bottom: 1px solid #c7a93c;
    padding: 12px 0;
    text-align: center;
    position: relative;
    z-index: 100;
    box-shadow: none;
    text-shadow: none;
    color: #333; /* Darker text for readability */
}

.broadcast-bar.warning {
    background: #ffc275;
    background-image: linear-gradient(to bottom, #ffdcc0, #ffc275);
    border-color: #c7833c;
    color: #333;
}

.broadcast-bar.error {
    background: #ff7575;
    background-image: linear-gradient(to bottom, #ffc0c0, #ff7575);
    border-color: #c73c3c;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.broadcast-bar.success {
    background: #75d275;
    background-image: linear-gradient(to bottom, #c0eac0, #75d275);
    border-color: #3c9b3c;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.broadcast-content {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dismiss-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.dismiss-btn:hover {
    opacity: 1;
}

.pineapple-container {
    position: fixed;
    bottom: -200px; /* Start hidden */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; /* Behind main GUI */
    transition: bottom 0.5s ease-in-out;
    pointer-events: none; /* So it doesn't block clicks */
}

.pineapple-container.visible {
    bottom: -30px; /* Revealed position, slightly peeking out */
}

.pineapple-container img {
    width: 120px;
    height: auto;
}