/* --------------------------------------------------
   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');
}

/* ✅ Full-screen Loading Background */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ✅ Centered GIF */
.loading-gif {
    width: 150px; /* Adjust size as needed */
    height: auto;
}

/* --------------------------------------------------
   NAVIGATE BUTTON (Green Tab)
-------------------------------------------------- */
.centered-menu-line {
    /* Positions the button partially off-screen so the top is hidden. */
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    
    /* Thicker & wider dimensions */
    width: 340px;
    height: 70px;
    
    /* Rounded only at bottom corners */
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    
    /* Slightly darker green outline */
    border: 2px solid #2A6B2A;
    box-sizing: border-box;
    
    /* Background & text style */
    background-color: #4caf50;
    color: #fff;
    font-family: 'MinecraftThin', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    
    /* Align text near the bottom of the element */
    display: flex;
    justify-content: center; 
    align-items: flex-end; 
    padding-bottom: 1px; /* small extra space at bottom */

    /* Float above other elements */
    z-index: 9999;
    
    /* Use your normal custom cursor image */
    cursor: url('/style/custom_cursor.png'), auto;

    /* Smooth fade effect */
    transition: opacity 0.25s ease;
}

/* On hover, switch to the “hover” cursor image */
.centered-menu-line:hover {
    cursor: url('/style/custom_cursor_hover.png'), pointer;
}

/* --------------------------------------------------
   DROPDOWN MENU (Animate In/Out)
-------------------------------------------------- */
#menu-dropdown {
  position: fixed;
  top: 10px;
  left: 50%;
  width: 300px; /* <--- Make the dropdown wider */
  
  /* Start hidden and scaled down vertically */
  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; /* can't click while hidden */
  
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 9999;
}

/* When .show is toggled, fade & scale in */
#menu-dropdown.show {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* Dropdown List Styles */
#menu-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu-dropdown li {
  margin: 8px 0;
}

/* Link styling - remove background highlight on hover, only change text */
#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;        /* no background highlight */
  text-decoration: none;   /* no underline */
}

/* Utility class to hide the menu if needed */
.dropdown-hidden {
  display: none;
}

/* --------------------------------------------------
   GLOBAL + BASE DESKTOP STYLES
-------------------------------------------------- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'MinecraftThin', sans-serif;
    background: url('/static/background.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;
    /* Custom Desktop Cursor (optional) */
    cursor: url('/style/custom_cursor.png'), auto;
}

/* Bees (behind panels) */
.bee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* behind the panels */
    pointer-events: none;
}

/* --------------------------------------------------
   CONTENT WRAPPER
-------------------------------------------------- */
.content-wrapper {
    width: 95%;
    max-width: 900px;
    text-align: center;
    margin-top: 8vh;
    margin-bottom: 5vh;
    position: relative;
    z-index: 2; /* above the bees */
}

/* --------------------------------------------------
   LOGO
-------------------------------------------------- */
.logo-frame {
    margin: 1vh auto 3vh;
    width: 18vw;
    max-width: 150px;
    height: auto;
    border: 4px solid #4caf50;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 85%;
    height: auto;
}

/* --------------------------------------------------
   TITLE
-------------------------------------------------- */
.title {
    font-family: 'Minecraft', sans-serif; /* thicker style for big title */
    font-size: clamp(3.5em, 6vw, 6em);
    margin: 3vh 0 4vh;
    text-shadow: 4px 4px 7px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------
   PANELS
-------------------------------------------------- */
.panel {
    width: 85%;
    max-width: 850px;
    padding: 5vh 3vw;
    margin: 3vh auto;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

h2 {
    font-size: clamp(2.8em, 5vw, 3.5em);
    margin-bottom: 20px;
    line-height: 1.3;
}

p {
    font-size: 1.6em;
    margin: 15px 0;
    line-height: 1.7;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.green-btn {
    border: none;
    padding: 20px 50px;
    font-size: 1.5em;
    border-radius: 30px;
    background-color: #4caf50;
    color: white;
    transition: background-color 0.3s;
    margin-top: 25px;
}

/* Hover effect & custom cursor */
.green-btn:hover,
a:hover,
button:hover {
    cursor: url('/style/custom_cursor_hover.png'), pointer;
    background-color: #45a049;
}

/* Basic fallback button style */
button {
    border: none;
    padding: 15px 35px;
    background-color: white;
    font-size: 1.3em;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

/* --------------------------------------------------
   DISCORD WIDGET
-------------------------------------------------- */
.discord-widget {
    display: block;
    width: 40%;
    max-width: 400px;
    height: 400px;
    margin: 4vh auto;
}

/* --------------------------------------------------
   FLYING BEE (desktop size)
-------------------------------------------------- */
.bee {
    position: absolute;
    width: 4vw;
    max-width: 50px;
    height: auto;
    z-index: 1; /* behind content/panels */
    pointer-events: none;
    animation: fly 18s ease-in-out infinite;
}

/* Bee Keyframes */
@keyframes fly {
    0%   { transform: translate(0vw, 0vh); }
    25%  { transform: translate(20vw, 8vh) rotate(10deg); }
    50%  { transform: translate(-20vw, 15vh) rotate(-10deg); }
    75%  { transform: translate(15vw, -5vh); }
    100% { transform: translate(0vw, 0vh); }
}

/* --------------------------------------------------
   TABLET AND MID-SIZE SCREENS
-------------------------------------------------- */
@media (max-width: 1024px) {
    .content-wrapper {
        max-width: 700px;
    }

    .logo-frame {
        width: 20vw;
    }

    h2 {
        font-size: 2.5em;
    }

    .green-btn {
        font-size: 1.3em;
        padding: 18px 45px;
    }

    p {
        font-size: 1.4em;
    }

    .bee {
        width: 6vw;
    }

    .discord-widget {
        width: 65%;
        height: 350px;
    }
}

/* --------------------------------------------------
   MOBILE OVERRIDES
-------------------------------------------------- */
@media (max-width: 768px) {
    body, a, button {
        cursor: auto; /* no custom cursor on mobile */
    }

    .content-wrapper {
        width: 95%;
        max-width: 500px;
        margin-top: 5vh;
    }

    .logo-frame {
        width: 25vw;
        margin-bottom: 3vh;
    }

    .panel {
        width: 95%;
        padding: 25px;
    }

    h2 {
        font-size: 1.8em;
    }

    p {
        font-size: 1.3em;
    }

    .green-btn {
        font-size: 1.1em;
    }

    .bee {
        width: 4vw;
        max-width: 50px;
        height: auto;
        opacity: 0.9; /* slight transparency on mobile for a softer effect */
    }
}

/* --------------------------------------------------
   iOS SCROLL FIX
-------------------------------------------------- */
html, body {
    -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------
   HIDE NAV BUTTON WHEN LOADING
-------------------------------------------------- */
body.loading .centered-menu-line {
  display: none;
}
