* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #fff; color: #2E3A4D; font-family: 'Open Sans', sans-serif; line-height: 1.6; margin: 15px; }
.header { background: #87CEEB; border-radius: 10px; color: #3E2723; margin-bottom: 20px; padding: 20px; position: relative; text-align: center; }
.header h1 { margin: 0; max-width: 100%; } 
.header h3 { margin: 0; max-width: 100%; }
.header .share-button { background: #FFEB3B; border: none; border-radius: 5px 0px 0px 5px; color: #000; cursor: pointer; padding: 5px; position: absolute; right: 0px; top: 20px; transition: background 0.3s; width: 66px; }
.header .share-button:hover { cursor: pointer; background: #ffbc05; animation: pulse 0.5s; }
.header .donate-button { background: #FFEB3B; border: none; border-radius: 5px 0px 0px 5px; color: #000; cursor: pointer; padding: 5px; position: absolute; right: 0px; top: 60px; transition: background 0.3s; width: 66px; }
.header .donate-button:hover { cursor: pointer; background: #ffbc05; animation: pulse 0.5s; }
.share-menu { background: #fff; border: 2px solid #ddd; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 10px; position: absolute; right: 20px; top: 70px; width: 200px; z-index: 10; }
.share-menu input { border: 1px solid #ddd; border-radius: 5px; padding: 5px; width: 100%; margin-bottom: 10px; }
.share-menu button { background: #FFEB3B; border: none; border-radius: 5px; color: #000; cursor: pointer; padding: 5px; width: 100%; }
.share-menu a { display: block; color: #000; padding: 5px 0; text-align: center; text-decoration: none; }
.share-menu a:hover { background: #ffeb3b; }
.container { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.main { background: linear-gradient(to bottom, #f0f4c3 33%, #74ff03d3 60%, #f0f4c3 88%);  border-radius: 3px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); float: left; width: 61%; min-height: 50vh; }
.logo { background: #87CEFA; border: 5px solid #388E3C; border-radius: 50%; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); height: 300px; margin: 0 auto; overflow: hidden; position: relative; width: 300px; max-width:100%; animation: glow-border 1.5s infinite alternate; }
.logo:hover { animation: pulse 0.5s; animation: glow-border 5s infinite alternate; cursor: pointer; }
.logo-border-ping { animation: glow-border 2s infinite alternate; }
@keyframes glow-border {
    0% { border-color: #388E3C; box-shadow: 0 0 10px rgba(56, 142, 60, 0.5); }
    100% { border-color: #76ff03; box-shadow: 0 0 20px rgba(118, 255, 3, 1); }
}
.logo-castle { background: #7D7D7D; border-radius: 5px; height: 40px; left: 50%; position: absolute; bottom: 111px; transform: translateX(-50%); width: 60px; z-index: 10; }
.logo-cloud { background: #fff; border-radius: 30%; height: 30px; position: absolute; width: 60px; box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.logo-mountains { background: linear-gradient(to top, #388E3C, white); bottom: 60px; clip-path: polygon(0 100%, 25% 40%, 50% 70%, 75% 30%, 100% 80%, 100% 100%); height: 200px; position: absolute; width: 100%; }
.logo-sun { background: #FFD700; border-radius: 50%; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); height: 100px; left: 80px; position: absolute; top: 10px; width: 100px; }
.logo-text { color: #388E3C; font-family: 'Georgia', serif; font-size: 1.5em; position: absolute; bottom: 33px; text-align: center; width: 100%; }
.logo-subtitle { color: #FFD700; font-family: 'Cursive', sans-serif; font-size: 1em; letter-spacing: 1px; position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.drip { animation: drip-animation infinite forwards; background: #FFC107; border-radius: 50%; position: absolute; }
.drip1 { animation-duration: 2s; height: 10px; width: 10px; left: 10%; top: 80px; }
.drip2 { animation-duration: 3.5s; height: 9px; width: 12px; left: 30%; top: 90px; }
.drip3 { animation-duration: 2.5s; height: 11px; width: 14px; left: 55%; top: 96px; }
.drip4 { animation-duration: 4s; height: 11px; width: 11px; left: 80%; top: 80px; }
@keyframes drip-animation { 
    0% { transform: translateY(0); opacity: 1; } 
    50% { transform: translateY(9px); opacity: 0.5; } 
    100% { transform: translateY(19px); opacity: 0; } 
}
.right { background: linear-gradient(to bottom, #f0f4c3 33%, #a8d08f2a 60%, #f0f4c3 88%); border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: relative; float: left; width: 20%; min-height: 50vh; }
.right::after { background: #f0f4c3; border-radius: 0 0 10px 10px; content: ''; height: 10px; left: 0; position: absolute; bottom: 0; width: 100%;  }
.nav { background: linear-gradient(to bottom, #f0f4c3 33%, #a8d08f2a 60%, #f0f4c3 88%);  border-radius: 10px;  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); width: 33%; }
.menu { border-radius: 10px;  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); float: left; width: 100%; min-height: 100%; }
.menuitem { background: transparent; border-bottom: 1px solid #ccc; border-radius: 5px; cursor: crosshair; margin-top: 7px; padding: 10px; transition: background 0.3s; color: #7D7D7D; width: 100%; display: flex;}
.menuitem:hover { animation: pulse 0.5s; background: #4CAF50; color: #fff; }
.menuitem-active { background: transparent; border-bottom: 7px solid #4CAF50; border-right: none; border-radius: 5px 5px 0px 0px; cursor: default; margin-top: 7px; padding: 10px; transition: background 0.3s; color: #7D7D7D; width: 100%; display: flex;}
.sub-menuitem { background: transparent; border-bottom: 1px solid #ccc; border-radius: 5px; cursor: crosshair; margin-top: 4px; padding: 20px; transition: background 0.3s; color: #7D7D7D; width: 100%; display: flex;}
.sub-menuitem:hover { animation: pulse 0.5s; background: #4CAF50; color: #fff; }
.sub-menuitem-active { background: transparent; border-bottom: 4px solid #4CAF50; border-right: none; border-radius: 5px 5px 0px 0px; cursor: default; margin-top: 4px; padding: 20px; transition: background 0.3s; color: #7D7D7D; width: 100%; display: flex;}
.scroll-button { background: #7D7D7D; border: none; border-radius: 5px; cursor: pointer; padding: 10px 20px; position: fixed; right: 33px; bottom: 33px; transition: background 0.3s; z-index: 1000; }
.scroll-button:active { transform: rotateY(180deg); }
.scroll-button:hover { background: #0056b3; }
.triangle { color: white; transition: transform 0.3s; font-size: large; }
.triangle.flipped { transform: rotate(180deg); }
.footer { background: #4CAF50; border-radius: 10px; color: #fff; font-size: .9rem; margin-top: 20px; padding: 15px; text-align: center; clear: both; position: relative; overflow: hidden; }
.footer-content { position: relative; z-index: 2; }
.flowerbed { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; margin-top: 10px; /* Reduced margin to bring flowers closer to the text */ padding: 10px; border-radius: 15px; z-index: 0; position: relative; }
.tulip, .rose { margin: 10px; font-size: 3rem; /* Increased size of flowers */ animation: sway 2s infinite; }
.rose { animation-delay: 1s; }
.bee { position: absolute; left: -50px; top: 50px; font-size: 30px; animation: flyBee 33s ease-in-out infinite; }
.honeycomb-container { position: absolute; right: 0; bottom: 0; display: grid; width: 5%; height: 50%; overflow: hidden; }
.honeycomb { background: #FFC107; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); position: relative; }
.honey-drip { position: absolute; bottom: -5px; left: 50%; width: 5px; height: 15px; background: gold; border-radius: 50%; animation: drip 4s infinite; transform: translateX(-50%); }
@keyframes flyBee { 0% { transform: translateX(-100%) translateY(0) scaleX(-1); } 25% { transform: translateX(10vw) translateY(-10px) scaleX(-1); } 50% { transform: translateX(calc(100vw + 50px)) translateY(10px) scaleX(-1); } 51% { transform: translateX(calc(100vw + 50px)) translateY(10px) scaleX(1); } 75% { transform: translateX(10vw) translateY(-10px) scaleX(1); } 100% { transform: translateX(-100%) translateY(0) scaleX(1); } }
@keyframes drip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes sway { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
.container-castle { background: #4CAF50; border-radius: 10px; height: 450px; margin-bottom: 20px; overflow: hidden; position: relative; width: 100%; }
.horizon { background: #87CEFA; height: 200px; width: 100%; z-index: 0; }
.main-castle { background: gray; border: 3px solid #2E3A4D; border-radius: 10px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); height: 200px; left: 50%; position: absolute; transform: translateX(-50%); width: 400px; z-index: 5; bottom: 88px; }
.tower { background: gray; border: 3px solid #2E3A4D; border-radius: 5px; box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4); height: 237px; position: absolute; top: -40px; width: 75px; z-index: 4; }
.tower1 { left: -3px; }
.tower2 { right: -3px; }
.gate { background: #4B4B4B; border: 2px solid #2E3A4D; border-radius: 5px; cursor: pointer; height: 100px; left: 50%; position: absolute; bottom: -3px; transform: translateX(-50%); width: 60px; z-index: 6; }
.window { background: #C0C0C0; border: 2px solid #696969; border-radius: 5px; height: 50px; position: absolute; width: 30px; z-index: 7; }
.window1 { left: 33%; top: 60px; }
.window2 { right: 33%; top: 60px; }
.cloud { background: #fff; border-radius: 50%; opacity: 0.8; position: absolute; z-index: 3; animation: move 80s linear infinite; }
.cloud.one { height: 75px; left: 100%; top: 50px; width: 120px; animation-delay: 1s; }
.cloud.two { height: 70px; left: 100%; top: 30px; width: 110px; animation-delay: 9s; z-index: 6; }
.cloud.three { height: 65px; left: 100%; top: 10px; width: 100px; animation-delay: 5s; }
.cloud.four { height: 80px; left: 100%; top: 44px; width: 140px; animation-delay: 7s; }
.cloud.five { height: 70px; left: 100%; top: 101px; width: 130px; animation-delay: 12s; z-index: 6; }
.cloud.six { height: 75px; left: 100%; top: 60px; width: 150px; animation-delay: 25s; }
.cloud.seven { height: 60px; left: 100%; top: 80px; width: 140px; animation-delay: 33s; }
.cloud.eight { height: 90px; left: 100%; top: 100px; width: 160px; animation-delay: 35s; }
.cloud.nine { height: 30px; left: 100%; top: 20px; width: 50px; animation-delay: 40s; z-index: 6; }
.cloud.ten { height: 50px; left: 100%; top: 111px; width: 90px; animation-delay: 31s; }
@keyframes move { 
    0% { transform: translateX(0vw); } 
    100% { transform: translateX(-123vw); }
}
.bird-container { position: relative; width: 100%; height: 100%; overflow: hidden; }
.bird { position: absolute; width: 50px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #000; animation: flyAcross 33s linear infinite; transform: scaleX(-1); }
.bird.eagle { font-size: 32px; animation: flyAcross 25s linear infinite; }
.bird::before { content: "🕊️"; }
.bird.eagle::before { content: "🦅"; }
@keyframes flyAcross { 
    0% { transform: translateX(-110vw) scaleX(-1); }
    100% { transform: translateX(110vw) scaleX(-1); }
}
.bird.one { top: 3%; left: 9%; z-index: 11; }
.bird.two { top: 7%; left: 13%; z-index: 11; }
.bird.three { top: 5%; left: 7%; z-index: 6; }
.bird.eagle { top: 1%; left: 77%; z-index: 7; }
.sun { background: #FFD700; border: 5px solid #FFC107; border-radius: 50%; box-shadow: 0 0 10px rgba(255, 223, 0, 0.5); height: 70px; position: absolute; right: 20px; top: 20px; width: 70px; z-index: 2; animation: glow 4s infinite alternate; }
@keyframes glow { 0% { box-shadow: 0 0 10px rgba(255, 223, 0, 0.5); } 100% { box-shadow: 0 0 20px rgba(255, 223, 0, 1); } }
.main-mountain { border-left: 60px solid transparent; border-right: 60px solid transparent; bottom: 150px; height: 0; position: absolute; z-index: 0; }
.main-mountain.big { bottom: 160px; border-bottom: 160px solid #7D7D7D; left: 50px; }
.main-mountain.medium { bottom: 150px; border-bottom: 120px solid #949494; left: 10px; }
.main-mountain.small { bottom: 140px; border-bottom: 80px solid #A9A9A9; left: 100px; }
.tree { background: #7B3F00; border: 2px solid #2E3A4D; border-radius: 5px; bottom: 50px; height: 140px; position: absolute; right: 10%; width: 40px; z-index: 7; }
.tree::before { background: #388E3C; border: 1px solid black; border-radius: 50%; content: ''; height: 80px; left: -50px; position: absolute; bottom: 80px; width: 140px; }
/* Active Level Link */
.kingdom-level-active { color: #FFD700; font-weight: bold; background-color: #4CAF50; border-radius: 5px; text-decoration: none; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: transform 0.3s, background-color 0.3s; }
.kingdom-level-active:hover { background-color: #388E3C; transform: scale(1.05);}
.kingdom-level { color: #3E2723; background-color: #FFFFFF; border-radius: 5px; text-decoration: none; transition: color 0.3s, background-color 0.3s; }
.kingdom-level:hover { color: #4CAF50; background-color: #f0f0f0; }
.king-kingdom-level {font-size: 2rem; color: #FFC107; background-color: #4CAF50; width: 100%; display: flex; text-decoration: none; }
.king-kingdom-level:hover { animation: pulse 0.5s; animation: glow-border 5s infinite alternate; cursor: crosshair; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

@media only screen and (max-width:300px) {
    /* For extreme small mobile phones: */
    .nav, .main, .right {
        min-width: 100%;
        padding: 1px;
    }
    }
@media only screen and (max-width:500px) {
    /* For mobile phones: */
    .nav, .main, .right {
        min-width: 100%;
        padding: 3px;
    }
    .header .share-button { font-size: small; padding: 3px; width: 55px;
    }
    .header .donate-button { font-size: small; padding: 3px; width: 55px; 
    }
    }

@media only screen and (max-width:800px) {
    /* For tablets: */
    .nav {
        width: 20%;
        padding: 7px;
    }
    .main {
        width: 80%;
        padding: 7px;
    }
    .right {
        width: 100%;
        padding: 7px;
    }
    }

    @media only screen and (min-width:800px) {
    /* For small computer screens: */
    .nav{
        width: 20%;
    }
    .main {
        width: 55%;
        padding: 20px;
    }
    .right {
        width: 25%;
        padding: 20px;
    }
    }

    @media only screen and (min-width:1200px) {
    /* For bigger computers: */
    .nav{
        width: 15%;
    }
    .main {
        width: 60%;
        padding: 20px;
    }
    .right {
        width: 25%;
        padding: 20px;
    }
    }