/* Define CSS Variables for Colors */
:root {
    --primary-color: #73462c;  /* Dark Brown */
    --secondary-color: #af7853; /* Medium Brown */
    --accent-color: #f8f1e7;    /* Light Gold */
}
@font-face {
    font-family: 'Lilita One';
    src: url('LilitaOne.woff2') format('woff2'),
        url('LilitaOne.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--accent-color);
    color: var(--primary-color);
     /* padding-bottom: 10px; Prevent content from being overlapped by footer */
}
ol, ul {
    list-style: none;
}
a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
a:hover {
  text-decoration:underline;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
h1 {
    color: #ffeedc;
    font-weight: bold;
    padding: 2px;
    background: var(--primary-color);
    width: 100%;
    text-align: center;
    border-radius: 2px;
    margin-bottom: 5px;
}
/* For Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
#villageID{
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
    margin-bottom: 10px;
    width: 300px;
    max-width: 90%;
    text-align: center;
}
.center{
    text-align: center;
}
/* Container */
.container {
    width: 90%;
    max-width: 1024px;
    margin: 0 auto;
}
.main-content{
    /* background: var(--accent-color); */
    padding: 0 5px 5px;
}
/* Header */
.header {
    background-color: var(--primary-color);
    padding: 5px 0;
    margin-bottom: 10px;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo at start, navigation at end */
}

/* Logo */
.header-logo img {
    height: 60px;
}

/* Header Menu (Before Language Section) */
.header-menu {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 20px;
}

.header-menu a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
}

.header-menu a:hover {
    text-decoration: underline;
}

/* Navigation */
.navigation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation-current {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--accent-color);
    padding: 10px;
    border-radius: 5px;
}

.navigation-flag {
    width: 24px;
    height: 24px;
}

.navigation-items {
    display: none;
    position: absolute;
    top: 80%;
    right: 0;
    background-color: var(--accent-color);
    list-style: none;
    padding: 10px;
    border-radius: 0 0 5px 5px;
}

.navigation:hover .navigation-items {
    display: block;
}

.navigation-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 0;
    border-top: 1px solid var(--primary-color);
}

.navigation-item a:hover {
    text-decoration: underline;
}

/* start page header */
.page-header {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 2px;
    padding: 5px;
}
.page-header-description{
    align-content: space-evenly;
    text-align: center;
}
.page-title {
    margin-bottom: 5px;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
    color: #ffeedc;
}
.page-header-inner {
    display: flex;
    background: var(--accent-color);
    padding: 10px;
    border-radius: 7px;
    border: 1px solid var(--secondary-color);
}
 .page-header-inner img {
    max-width: 40%;
    margin-right: 10px;
 }
 button#share-btn {
    padding: 6px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(180deg, #4b83d5 0%, #0a3b91 50%, #4b83d5 100%);
    border: 2px solid #0a3b91;
    text-shadow: 2px 2px 0 #0a3b91;
    color: #fff;
    text-transform: capitalize;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}
.blog-post-header{
    display: flex;
    background: var(--accent-color);
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid var(--secondary-color);
    margin: 10px;
}
.blog-post-header img{
    max-width: 40%;
    margin-right: 10px;
}
.blog-post-header .page-header-description{
    text-align: start;
    align-content: normal;
    padding: 5px 0;
}
.blog-post-header p{
    margin-top: 15px;
}

.toc-wrapper {
    padding: 10px 0;
    margin: 10px 0;
    font-weight: bold;
    font-size: 18px;
    overflow: auto;
    justify-items: center;
}
.toc {
    display: flex;
    column-gap: 10px;
}
.toc-link {
    padding: 7px 10px;
    background: var(--primary-color);
    border: 1px solid var(--secondary-color);
    color: #ffeedc;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
}
/* end page header */
/* spins block */
.fs-wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    margin: 10px 0;
    justify-content: space-around;
}
.fs-heading{
    color: #ffeedc;
    font-weight: bold;
    padding: 2px;
    background: var(--primary-color);
    width: 100%;
    text-align: center;
    border-radius: 2px;
    border: 1px solid var(--secondary-color);
    margin: 5px auto;
}
.fs-block {
    display: flex;
    padding: 10px;
    text-align: center;
    background: #fff;
    border: solid 1px var(--primary-color);
    border-radius: 7px;
    position: relative;
    width: 100%;
    max-width: 470px;
    align-items: center;
    justify-content: space-between;
}

.fs-info {
    flex: 3;
}

.fs-block img {
    flex: 1;
    max-width: 60px;
}

.fs-collect {
    flex: 2;
}

.fs-bonus {
    font-family: 'Lilita One', cursive !important; 
    font-size: 26px;
    color: #21d6e8;
    text-shadow: -2px -2px 0 #60361d, 2px -2px 0 #60361d, -2px 2px 0 #60361d, 2px 2px 0 #60361d, -2px 0 0 #60361d, 2px 0 0 #60361d, 0 -2px 0 #60361d, 0 2px 0 #60361d;
}
.fs-spincount{
    font-family: 'Lilita One', cursive !important;
    font-size: 32px;
    font-weight: bold;
}

.fs-collect button {
    font-weight: 900;
    font-family: Lilita One,sans-serif;
    padding: 5px 10px;
    font-size: 24px;
    /* min-width: 120px; */
    line-height: 1.2;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(177deg, rgba(165, 232, 41, 1) 0%, rgba(108, 200, 10, 1) 50%, rgba(69, 168, 6, 1) 100%);
    border: 2px solid #385200;
    text-shadow: 2px 2px 0 #9be851;
    color: #2b580f;
}

.fs-collect button.active {
    background: linear-gradient(177deg, rgb(248, 241, 231) 0%, rgb(247, 231, 209) 50%, rgb(248, 241, 231) 100%) !important;
    border: 2px solid var(--primary-color) !important;
    text-shadow: 2px 2px 0 #f0e2e2 !important;
    color: var(--primary-color) !important;
}
.fs-collect button.active:hover {
    box-shadow: 0 5px 0px rgb(115, 70, 44);
    transform: translateY(-4px);
  }

.fs-collect button:hover {
    box-shadow: 0 5px 0px rgb(37 77 10);
    transform: translateY(-4px);
}

/* button */
.collect-button {
    padding: 5px 10px;
    font-size: 22px;
    font-weight: 700;
    /* min-width: 120px; */
    line-height: 1.2;
    text-align: center;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgb(165, 232, 41);
    background: linear-gradient(177deg, rgba(165, 232, 41, 1) 0%, rgba(108, 200, 10, 1) 50%, rgba(69, 168, 6, 1) 100%);
    border: 2px solid #385200;
    text-shadow: 2px 2px 0 #9be851;
    color: #2b580f;
    font-weight: 900;
}
.collected-button {
    background: linear-gradient(177deg, rgb(245 219 215) 0%, rgb(245 237 234) 50%, rgb(246 215 212) 100%);
    border: 2px solid #b32211;
    color: #b32211;
    text-shadow: unset;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 5px 0 20px 0;
    color: white;
    text-align: center;
}

.footer-copy .footer-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-menu a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

/* Sticky Footer Navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    display: none;
    justify-content: space-between; /* Distribute items evenly */
    align-items: center; /* Align items in the center */
    padding: 5px 0; /* Add padding for better spacing */
    z-index: 100;
    border-top: 2px solid var(--accent-color);
}

.footer-nav a {
    flex: 1; /* Ensure each item takes equal width */
    text-decoration: none;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.footer-nav a .text {
    text-align: center;
    padding: 1px 4px;
    margin-top: -10px;
    border-radius: 4px;
    background-color: #0000004a; /* No background by default */
}

/* Active state applies background color only to the text */
.footer-nav a.active .text {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-nav a img {
    width: 36px;
    height: 36px;
    z-index: 2;
}
/* Popup container */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    color: var(--primary-color);
}

/* Overlay */
.popupoverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.popup p {
    padding: 18px;
    font-size: 18px;
}

/* Buttons */
.popup button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    text-transform: uppercase;
    font-size: 16px;
}

.install-btn {
    background: #28a745;
    color: white;
    font-weight: bold;
}

.close-btn {
    background: var(--secondary-color);
    color: white;
}

/* page content */
b, strong {
    font-weight: bold;
}

p {
    padding-bottom: 10px;
    text-align: justify;
}

.page-content ul li {
    margin-left: 2em;
    padding: 5px 0;
}

.page-content ul li:before {
    background-image: url(/img/star.svg);
    width: 24px;
    height: 24px;
    background-size: contain;
    display: inline-block;
    content: "";
    margin-right: 10px;
    vertical-align: middle;
}

.page-content ol li {
    position: relative;
    padding: 10px;
    background: var(--accent-color);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid  var(--secondary-color);
    background: linear-gradient(179deg,#fffee8,#ffeddb);
    font-size: 15px;
}

table {
    width: 100%;
    background:  var(--primary-color);
    border-radius: 5px;
    margin: 1em auto;
    font-size: 14px;
    border-color:  var(--secondary-color);
}
#villagelist{
    margin: 0 0 1em;
}

td {
    padding: 5px;
    background: #fff;
    border: solid 2px  var(--secondary-color);
    border-radius: 5px;
}

th {
    border: 0;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    /*background: radial-gradient(circle,var(--primary-color), var(--secondary-color));*/
    text-transform: uppercase;
}

img {
    max-width: 100%;
    height: auto;
}

.articles {
    display: flex;
    column-gap: 10px;
    margin: 1em 0;
    justify-content: center;
}
.article {
    border: 4px solid #ffce1b;
    background: linear-gradient(179deg, #fffee8, #ffeddb);
    padding: 6px;
    margin-bottom: 10px;
    border-radius: 7px;
    max-width: 33%;
}
.box{
    border: 2px solid  var(--secondary-color);
    background: var(--accent-color);
}

.faq-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
}

.faq-wrapper {
    margin: 10px 0;
}

.faq-text {
    display: flex;
    align-items: center;
    column-gap: 14px;
    border: 1px solid  var(--secondary-color);
    border-radius: 5px;
    background: #f9f9f9;
    flex-direction: column;
    padding: 5px;
    margin: 10px 0;
}

.faq-image{
    display: flex;
    padding: 5px;
    align-items: anchor-center;
    align-self: flex-start;
}
.faq-text h3 {
    font-size: 1.2em;
    margin: 10px 20px;
}

.faq-desc p {
    font-size: 1em;
    line-height: 1.5;
}

/* expandable div */
.expandable {
    margin-bottom: 10px;
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 2px;
    padding: 2px;
}

.expand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #ffeedc;
    padding: 5px;
}
.expand-header span{
    margin: auto;
    font-size: 20px;
}

.arrow {
    transition: transform 0.3s ease;
    color: var(--accent-color);
    padding: 0 4px 0;
    margin: 0 !important;
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.1s ease; */
    color: var(--primary-color);
}
/* When expanded */
.expanded .expand-content {
    max-height: 100%; /* Adjust this based on content */
    background: linear-gradient(179deg, #f4f2f0, #f9f3ee);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
}

.expanded .arrow {
    transform: rotate(180deg);
}
.toast {
  visibility: hidden;
  min-width: 200px;
  background-color: #8cda1b;
  color: #2b580f;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: fixed;
  z-index: 1000;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
  font-weight: 700;
  text-transform: capitalize;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}
/* end page content */
/* Responsive Design */
/* Medium screens (tablets) */
@media (max-width: 1024px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }
    h5 { font-size: 16px; }
    h6 { font-size: 14px; }
    p { font-size: 15px; }
    
}
/* Small screens (mobile devices) */
@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 24px; }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }
    h4 { font-size: 16px; }
    h5 { font-size: 14px; }
    h6 { font-size: 13px; }
    p { font-size: 14px; }
    
    .header-flex {
        align-items: center;
    }
    .header-logo img {
      height: 50px;
      width: auto;
    }
    .navigation-current {
        padding: 6px;
    }
    .navigation-items {
        padding: 6px;
    }
    .main-content {
        width: 98%;
    }
    .articles {
        flex-wrap: wrap;
    }
    .footer-copy .footer-menu {
        gap: 10px;
    }

    .footer-nav {        
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
    /* Hide Header Menu on Mobile */
    .header-menu {
        display: none;
    }
    .page-header-inner {
        flex-direction: column;
        text-align: center;
    }
    .blog-post-header{
        text-align: center;
        margin: 8px;
        padding: 5px 5px;
        flex-direction: column;
    }
    .blog-post-header img{
        max-width: 70% !important;
    }
    .blog-post-header .page-header-description {
        padding: 3px 3px;
    }
    
    .blog-post-header p{
        margin-top: 5px;
    }

    .page-header img {
        width: auto;
        max-width: 80%;
        margin: auto;
        height: auto;
    }
    .page-header-inner img {
        max-width: 80%;
     }
    .toc{
        justify-content: center;
    }
    .toc-wrapper {
        font-size: 16px;
        justify-items: center;
    }
    .fs-wrapper {
        row-gap: 3px;
        background: var(--primary-color);
        padding-bottom: 5px;
    }
    .fs-heading {
        margin: 0 auto 5px;
    }
    .fs-block {
        padding: 5px;
        margin: 0 5px;
    }
    .fs-block img {
        max-width: 40px;
        height: auto;
    }
    .fs-bonus {
        font-size: 24px;
    }
    .fs-spincount{
        font-size: 30px;
    }
    .fs-collect button {
        font-size: 18px;
    }
    .page-content ul li {
        margin-left: 0;
    }
    .box{
        margin: 5px;
    }
    .article {
        max-width: unset;
    }
    .article-logo img{
        padding: 6px 6%;
    }
    .expand-header span {
        font-size: 18px;
    }
    .footer {
        padding: 5px 0 35px 0;
        position: relative;
    }

}
/* Extra small screens */
@media (max-width: 480px) {
    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 15px; }
    h5 { font-size: 13px; }
    h6 { font-size: 12px; }
    /*p { font-size: 14px; }*/
    
    .fs-bonus {
        font-size: 22px;
    }
    .fs-spincount{
        font-size: 28px;
    }
    .fs-collect button {
        padding: 4px 8px;
    }
    .blog-post-header {
        padding: 0 5px;        
        margin: 5px 2px;
        flex-direction: column;
    }

    .blog-post-header img {
        max-width: 90% !important;
    }
}