/* --------------------------------------------------
   IMPORT FONTS
-------------------------------------------------- */
@font-face {
    font-family: 'Minecraft';
    src: url('/style/minecraft.ttf') format('truetype');
}
@font-face {
    font-family: 'MinecraftThin';
    src: url('/style/minecraft_thin.otf') format('opentype');
}

/* --------------------------------------------------
   GLOBAL + BASE MOBILE STYLES
-------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'MinecraftThin', sans-serif;
    
    /* Same "fixed cover" approach for background as main index */
    background: url('/static/comm_back.jpg') no-repeat center center fixed;
    background-size: cover;
    
    color: white;
    height: 100%;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    
    /* Typically disable custom cursor on mobile */
    cursor: auto;
    -webkit-overflow-scrolling: touch;
}

/* Villager (Bee) Container behind content */
.bee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* --------------------------------------------------
   NAVIGATE BUTTON (Green Tab)
   - Partially off-screen at top, hidden while loading
-------------------------------------------------- */
.centered-menu-line {
    position: absolute;
    top: -30px; /* negative so it’s “peeking” off-screen */
    left: 50%;
    transform: translateX(-50%);
    
    width: 280px;
    height: 60px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border: 2px solid #2A6B2A;
    box-sizing: border-box;
    
    background-color: #4caf50;
    color: #fff;
    font-family: 'MinecraftThin', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 3px;
    
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

/* Hide the nav button while loading */
body.loading .centered-menu-line {
    display: none;
}

/* --------------------------------------------------
   DROPDOWN MENU (Animate In/Out)
-------------------------------------------------- */
#menu-dropdown {
    position: fixed;
    top: 10px;
    left: 50%;
    width: 260px;
    
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 10px 15px;
    
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 9999;
}

#menu-dropdown.show {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

#menu-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu-dropdown li {
    margin: 8px 0;
}

#menu-dropdown a {
    color: #fff;
    text-decoration: none;
    font-family: 'MinecraftThin', sans-serif;
    font-size: 1.2rem;
    transition: color 0.2s;
}

#menu-dropdown a:hover {
    color: #4caf50;
    background: none;
    text-decoration: none;
}

/* --------------------------------------------------
   CONTENT WRAPPER
   - Centered container for all main content
-------------------------------------------------- */
.content-wrapper {
    width: 95%;
    max-width: 500px;
    margin-top: 8vh;
    margin-bottom: 5vh;
    text-align: center; 
    position: relative;
    z-index: 2;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------
   TITLE (Community Guidelines)
-------------------------------------------------- */
.title {
    font-family: 'Minecraft', sans-serif;
    font-size: clamp(2.5em, 5vw, 3.5em);
    margin: 3vh 0;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* --------------------------------------------------
   PANELS
   - Provide extra left/right space so they don’t
     hug the edges on small screens
-------------------------------------------------- */
.panel {
    width: 90%;                 /* narrower than 95% */
    max-width: 480px;
    margin: 3vh auto;
    padding: 20px;
    
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    
    text-align: left;          /* bullet points read better left-aligned */
}

.panel h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Minecraft', sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}

.panel ul li {
    margin: 0.5em 0;
    font-size: 1.2em;
    line-height: 1.6;
    font-family: 'MinecraftThin', sans-serif;
}

.panel p {
    font-size: 1.3em;
    margin: 15px 0;
    line-height: 1.7;
    font-family: 'MinecraftThin', sans-serif;
}

/* --------------------------------------------------
   LOADING SCREEN
-------------------------------------------------- */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loading-gif {
    width: 150px;
    height: auto;
}

/* --------------------------------------------------
   VILLAGER ANIMATION
   - Revert to a "fly" keyframe for continuous floating
   (similar to your bees). This ensures they appear
   & animate around the screen like before.
-------------------------------------------------- */
.villager {
    position: absolute;
    width: 6vw; /* slightly bigger for visibility on small screens */
    max-width: 50px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    animation: fly 16s ease-in-out infinite;
}

@keyframes fly {
    0%   { transform: translate(0vw, 0vh); }
    25%  { transform: translate(20vw, 5vh) rotate(10deg); }
    50%  { transform: translate(-20vw, 10vh) rotate(-10deg); }
    75%  { transform: translate(15vw, -5vh); }
    100% { transform: translate(0vw, 0vh); }
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.green-btn {
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 30px;
    background-color: #4caf50;
    color: white;
    transition: background-color 0.3s;
    margin-top: 15px;
}
.green-btn:hover {
    background-color: #45a049;
}

button {
    border: none;
    padding: 12px 25px;
    background-color: white;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

/* --------------------------------------------------
   iOS SCROLL FIX
-------------------------------------------------- */
html, body {
    -webkit-overflow-scrolling: touch;
}
