/* Bootstrap Variable Overrides */
:root {
    /* Primary Brand Colors */
    --bs-primary: #4a9d5f;
    --bs-primary-rgb: 74, 157, 95;
    --bs-secondary: #7cb342;
    --bs-secondary-rgb: 124, 179, 66;
    --bs-success: #7cb342;
    --bs-success-rgb: 124, 179, 66;
    --bs-info: #17a2b8;
    --bs-info-rgb: 23, 162, 184;
    --bs-warning: #c27c12;
    --bs-warning-rgb: 194, 124, 18;
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light: #f8f9fa;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark: #2d3436;
    --bs-dark-rgb: 45, 52, 54;
    /* Custom Theme Colors */
    --primary-color: #4a9d5f;
    --secondary-color: #7cb342;
    --accent-color: #ff6f61;
    --dark-color: #071b23;
    --light-bg: #f8f9fa;
    /* Bootstrap Button Colors */
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    /* Link Colors */
    --bs-link-color: var(--bs-primary);
    --bs-link-hover-color: var(--bs-secondary);
    /* Border Radius */
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-pill: 50rem;
    /* Font Family */
    --bs-body-font-family: 'Quicksand', sans-serif;
    --bs-font-sans-serif: 'Quicksand', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    /* Outline Primary Button Custom Variables (Green Theme) */
    --bs-btn-outline-primary-color: var(--bs-primary);
    --bs-btn-outline-primary-border-color: var(--bs-primary);
    --bs-btn-outline-primary-hover-color: #fff;
    --bs-btn-outline-primary-hover-bg: var(--bs-primary);
    --bs-btn-outline-primary-hover-border-color: var(--bs-primary);
    --bs-btn-outline-primary-focus-shadow-rgb: 74,157,95;
    --bs-btn-outline-primary-active-color: #fff;
    --bs-btn-outline-primary-active-bg: var(--bs-secondary);
    --bs-btn-outline-primary-active-border-color: var(--bs-secondary);
    --bs-btn-outline-primary-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-outline-primary-disabled-color: var(--bs-primary);
    --bs-btn-outline-primary-disabled-bg: transparent;
    --bs-btn-outline-primary-disabled-border-color: var(--bs-primary);
    --bs-btn-outline-primary-gradient: none;
    /* Pagination Active Variables (Green Theme) */
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #399359;
    --bs-btn-border-color: #17a2b8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0d606d;
    --bs-btn-hover-border-color: #0acac4;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0ac4ca;
    --bs-btn-active-border-color: #0aadbe;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0dfde0;
    --bs-btn-disabled-border-color: #0dfde0;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-btn-outline-primary-color);
    --bs-btn-border-color: var(--bs-btn-outline-primary-border-color);
    --bs-btn-hover-color: var(--bs-btn-outline-primary-hover-color);
    --bs-btn-hover-bg: var(--bs-btn-outline-primary-hover-bg);
    --bs-btn-hover-border-color: var(--bs-btn-outline-primary-hover-border-color);
    --bs-btn-focus-shadow-rgb: var(--bs-btn-outline-primary-focus-shadow-rgb);
    --bs-btn-active-color: var(--bs-btn-outline-primary-active-color);
    --bs-btn-active-bg: var(--bs-btn-outline-primary-active-bg);
    --bs-btn-active-border-color: var(--bs-btn-outline-primary-active-border-color);
    --bs-btn-active-shadow: var(--bs-btn-outline-primary-active-shadow);
    --bs-btn-disabled-color: var(--bs-btn-outline-primary-disabled-color);
    --bs-btn-disabled-bg: var(--bs-btn-outline-primary-disabled-bg);
    --bs-btn-disabled-border-color: var(--bs-btn-outline-primary-disabled-border-color);
    --bs-gradient: var(--bs-btn-outline-primary-gradient);
}

.btn-link {
    --bs-btn-font-weight: 400;
    --bs-btn-color: var(--bs-primary); /* Updated to primary brand color */
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--bs-secondary); /* Updated to secondary brand color */
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--bs-secondary); /* Updated to secondary brand color */
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: 0 0 0 #000;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    text-decoration: underline;
}

.btn:hover {
    color: var(--bs-light);
    background-color: var(--bs-primary);
    border-color: var(--bs-btn-hover-border-color);
}

.btn-danger.btn:hover, .btn.btn-outline-danger:hover {
    background-color: var(--bs-danger);
}

.active > .page-link, .page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: var(--bs-pagination-active-bg);
    border-color: var(--bs-pagination-active-border-color);
}

.dropdown-item:focus, .dropdown-item:hover {
    color: var(--bs-light);
    background-color: var(--bs-primary);
}

button.nav-link {
    padding-right: .5625rem !important;
    padding-left: .5625rem !important;
}

.hero-section {
    background-color: var( --dark-color);
}

.feature-blog-background {
    background-color: var( --dark-color);
    border-radius: 5px;
}


.feature-blog-background hr {
    color: #ffffff89;
}

.feature-blog-background h3{
    color: white;
}

.hero-section-worms {
    background-image: url('../images/worms.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.img-drop-shadow {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 1.5px 4px rgba(0,0,0,0.18);
}

/* Bootstrap Icon Styling */
.feature-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.feature-icon-large i {
    font-size: 4rem;
    color: var(--primary-color);
}

/* Video Modal Custom Styles */
.video-modal-bg {
    background: rgba(10, 10, 20, 0.96) !important;
    z-index: 2000;
}

.video-modal-dialog {
    width: 90vw;
    max-width: 90vw;
    height: 90vh;
    max-height: 90vh;
    margin: auto;
}

.video-modal-content {
    background: #181a23;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-modal-player {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
    background: #000;
    border-radius: 0.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    display: block;
}

.wormzy-feed-btn {
    /*    border-radius: 2px 2px 6px 6px !important;*/
    width: 100%;
    bottom: 10px;
}

.video-modal-player {
    max-height: calc(100% - 20px);
}

@media (max-width: 900px) {
    .video-modal-dialog {
        width: 98vw;
        max-width: 98vw;
        height: 98vh;
        max-height: 98vh;
    }

/*    .video-modal-player {
        max-height: 60vh;
    }*/
}

.wormzy-feed-btn {
    position: absolute;
    
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    /* Remove custom background, border, font, and shadow styles to use Bootstrap's look */
}

@media (max-width: 600px) {
    .wormzy-feed-btn {
        font-size: 0.95rem;
        padding: 0.4rem 1rem;
    }
}

#game-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    color: white;
    
}

#feed-the-pets-game {
    background-color: #111 !important;
}
/* Landscape warning overlay */
#landscape-warning {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-align: center;
    pointer-events: none;
}
@media only screen and (orientation: portrait) {
  #landscape-warning {
    display: flex;
  }
  .aspect-ratio-container {
    display: none !important;
  }
}

/* Aspect ratio container for game - true fullscreen overlay */
.aspect-ratio-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #000;
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  z-index: 99998;
}
.aspect-ratio-content {
  background: #e0f7fa;
  box-shadow: 0 0 32px #0008;
  overflow: hidden;
  position: relative;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
@media (min-aspect-ratio: 16/9) {
  .aspect-ratio-content {
    width: 177.78vh; /* 16/9 */
    height: 100vh;
  }
}
#feed-the-pets-game {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
}

#feed-the-pets-game {
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#feed-the-pets-game canvas {
    max-width: 100vw;
    max-height: 100vh;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 1920 / 1080;
    background: #000;
    display: block;
}

/* Responsive text sizes for game overlay/buttons */
@media (max-width: 600px) {
  .aspect-ratio-content,
  #feed-the-pets-game {
    font-size: 1.2rem;
  }
  #landscape-warning {
    font-size: 1.4rem;
  }
}
@media (min-width: 601px) and (max-width: 1200px) {
  .aspect-ratio-content,
  #feed-the-pets-game {
    font-size: 1.6rem;
  }
  #landscape-warning {
    font-size: 1.8rem;
  }
}
@media (min-width: 1201px) {
  .aspect-ratio-content,
  #feed-the-pets-game {
    font-size: 2.2rem;
  }
  #landscape-warning {
    font-size: 2.2rem;
  }
}

/* Overlay font size compensation for FeedThePets overlays */
.feed-the-pets-overlay-title {
    font-size: 3rem;
}
.feed-the-pets-overlay-subtitle {
    font-size: 1.5rem;
}
.feed-the-pets-overlay-petname {
    font-size: 1.3rem;
}
.feed-the-pets-overlay-comingsoon {
    font-size: 1.1rem;
}
.feed-the-pets-overlay-button {
    font-size: 1.2rem;
}

@media (max-width: 1200px) {
    .feed-the-pets-overlay-title { font-size: 2.2rem; }
    .feed-the-pets-overlay-subtitle { font-size: 1.2rem; }
    .feed-the-pets-overlay-petname { font-size: 1.1rem; }
    .feed-the-pets-overlay-comingsoon { font-size: 1rem; }
    .feed-the-pets-overlay-button { font-size: 1rem; }
}
@media (max-width: 600px) {
    .feed-the-pets-overlay-title { font-size: 1.3rem; }
    .feed-the-pets-overlay-subtitle { font-size: 0.9rem; }
    .feed-the-pets-overlay-petname { font-size: 0.8rem; }
    .feed-the-pets-overlay-comingsoon { font-size: 0.7rem; }
    .feed-the-pets-overlay-button { font-size: 0.8rem; }
}

/* Overlay font size compensation for Play Again overlay */
.feed-the-pets-overlay-title {
    font-size: 2rem;
    font-family: Quicksand, Arial, sans-serif;
    font-weight: 900;
    text-shadow: 0 4px 24px #000;
}
.feed-the-pets-overlay-petmessage {
    font-size: 1.3rem;
    font-family: Quicksand, Arial, sans-serif;
}
.feed-the-pets-overlay-button {
    font-size: 1.2rem;
    font-family: Quicksand, Arial, sans-serif;
}

@media (max-width: 1200px) {
    .feed-the-pets-overlay-title { font-size: 1.4rem; }
    .feed-the-pets-overlay-petmessage { font-size: 1rem; }
    .feed-the-pets-overlay-button { font-size: 1rem; }
}
@media (max-width: 600px) {
    .feed-the-pets-overlay-title { font-size: 1rem; }
    .feed-the-pets-overlay-petmessage { font-size: 0.8rem; }
    .feed-the-pets-overlay-button { font-size: 0.8rem; }
}

.text-center{
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.quickgrid table tr, .quickgrid tbody, .quickgrid td, .quickgrid tfoot, .quickgrid th, .quickgrid thead, tr {
    border-bottom: 1px solid #ccc !important;
}

.w100 {
    width: 100% !important;
}

.secondary-panel a {
    color: rgb(33, 37, 41) !important;
    text-decoration: none !important;
}

.secondary-panel a a.btn {
    color: white;
}

footer {
    background-image: url('/images/wormzy_logo_footer.png');
    background-repeat: repeat;
    background-size: 300px 80px; /* width height, adjust as needed */
}