/* Import fonts (combined into one URL for efficiency) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Exile&family=Exo+2:ital,wght@0,100..900;1,100..900&family=Limelight&family=Lora&family=Outfit:wght@100..900&display=swap');

/* Reset and global styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Root variables */
:root {
    --white: #ffffff;
    --light: #ffffff;
    --black: #000000;
    --night: #000000;
    --darkgrey: #181818;
    --green: #037716;
    --lightgreen: #1d9130;
    --blue: #00c3ff;
    --purple: #572cce;
    --red: #ec0505;
    --orange: #d83503;
    --orangegold: #f36f04;
    --brown: #92381dd8;
    --gold: #e69704;
    --yellow: #d9ff00;
}

/* HTML and body setup */
html {
    text-align: center;
    color: var(--dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll issues */
}

body {
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 200px;
    width: 100%;
    max-width: 1200px;
    font-family: 'Lora', serif;
    line-height: 1.6;
    background-size: auto 100vh;
    background: url("../images/trees.jpg");
    background-size: cover;
    background-position: 50% 60%;
    background-attachment: fixed;
    background-color: #ffffff;
    color: var(--night);
}

/* Links */
a {
    cursor: pointer;
    color: var(--green);
    text-decoration: none;
}

a:visited {
    color: var(--orangegold);
}

a:hover {
    color: var(--gold);
    text-decoration: underline;
}

a:active {
    color: var(--blue);
}

/* Headings */
h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    /* color: #2c3e50; */
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8em;
    margin-top: 30px;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--light);
    color: var(--black);
    padding: 20px;
    border-radius: 2px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Main content */
.content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    /* Match body for consistency */
}

/* Image container */
.image_container {
    position: fixed;
    bottom: 50px;
    /* Gap above Back to Top */
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Center horizontally */
    text-align: center;
    z-index: 2;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
}

.tree_container, .tree {
   cursor:pointer;
    position:absolute;
    max-width:100px;
    max-height:111px;
    left: 2%;
    bottom:2%;
    width:100px;
    height:111px;
    border:none;
  background-color:transparent;
  background-image:none;
 box-shadow:none;
 outline:none;
}
.tree:hover {
      border:none;
  background-color:transparent;
  background-image:none;
 box-shadow:none;
 outline:none;
}

/* Image styling */
.most_important {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-bottom: 40px;
}


/* Start of: Night Light Toggle Mode Switch */
/* Credits: https://codepen.io/Umer_Farooq/pen/eYJgKGN */

body.dark {
    background-color: var(--night);
    color: var(--light)
}

body.dark .container {
    background-color: var(--night);
    color: var(--light)
}

body.dark h1,
body.dark .support a {
    color: var(--light);
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {
    color: #f1c40f;
}

.fa-sun {
    color: #f39c12;
}

.checkbox-label .ball {
    background-color: #fff;
    background-color: #037716;
    border: 1px solid white;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}


.checkbox:checked+.checkbox-label .ball {
    transform: translateX(24px);
}

/* End of: Night Light Toggle Mode Switch */
/* Back to Top */

.back-to-top {
    padding-top:100px;
    padding-bottom:25px;
    position: relative;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%) !important;
    text-align: center;
    font-family: 'Limelight', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--green);
    text-decoration: none;
    z-index: 3;
}

.back-to-top a:hover {
    color: var(--gold);
    text-decoration: underline;
}
.prophecies{
    font-family: 'Limelight', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
   color:var(--gold);
}

.prophecies:hover {
    font-family: "Exile", system-ui;
    color: var(--green);
    letter-spacing: 3px;
}

.sixtysixbooks {
    font-family: 'Limelight', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
   color:var(--gold);
}

.sixtysixbooks:hover {
    font-family: "Exile", system-ui;
    color: var(--green);
    letter-spacing: 3px;
}

.kaleidoscope{
  font-weight: 400;
  font-style: normal;
    font-size: 1.2rem;
    letter-spacing: 3px;
  color:var(--white);
}
.kaleidoscope:hover{
    font-family: "Exile", system-ui;
   color:var(--orange);

    font-size: 1.4rem;
    letter-spacing: 4px;
}

.source {
    z-index:20;
     position:absolute;
    left:50%;
    transform:translate(-50%);
     text-align:center;
     background-color:  rgba(0, 128, 0,0.2);
     border: 2px solid black;
     /* background-color: rgba(66,66,66, 0.5);*/
     border-radius: 25px;
   padding:12px;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--light);
    color: var(--black);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: var(--black);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Start of: Custom Scrollbars */
/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/* Custom Scrollbars */
* {
         scrollbar-width: thick;
         scrollbar-color: #FFD700 #1A3C34;
      }

*::-webkit-scrollbar {
    width: 20px;
    /* Reduced from 40px to minimize layout impact */
    height: 20px;
    /* Reduced from 22px */
}

*::-webkit-scrollbar-track {
    background-color: #1A3C34;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

*::-webkit-scrollbar-track:hover {
    background-color: #2E5A50;
}

*::-webkit-scrollbar-track:active {
    background-color: #0F2522;
}

*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #FFD700;
    border: 2px solid #000000;
    min-height: 40px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #FFEA00;
}

*::-webkit-scrollbar-thumb:active {
    background-color: #DAA520;
}


.commandment_image_container {
    text-align: center;
    max-width: 95%;
}

.container {
    max-width: 99%;
    max-height: auto;
    margin: 0 auto;
    background-color: var(--light);
    color: var(--black);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

img,
.commandment_images {
    max-width: 95%;
    max-height: auto;
    height: auto;
    border:1px solid var(--black);
   box-shadow:1px 1px 1px var(--black);
}

/* Audio Controls Container */
        .audio-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            background-color: rgba(30, 30, 50, 0.8);
            padding: 10px 15px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        .sound-icon {
            font-size: 28px;
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        .sound-icon:hover {
            transform: scale(1.15);
        }
        /* Toggle Switch Styles */
        .toggle-switch-label {
            font-size: 14px;
            color: #A0A0C0;
        }
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        .switch input { 
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #505070;
            transition: .4s;
            border-radius: 24px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .slider {
            background-color: #4CAF50; /* Green when active */
        }
        input:focus + .slider {
            box-shadow: 0 0 1px #4CAF50;
        }
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        .instructions {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 14px;
            color: rgba(200, 200, 220, 0.7);
            background-color: rgba(30, 30, 50, 0.7);
            padding: 8px 15px;
            border-radius: 8px;
        }
/*
.music_container {
    z-index: 100;
    cursor:pointer;
    width:100px;
    height:auto;
    position: relative;
    right: 1%;
    bottom: 1%;
    -webkit-filter: grayscale(50%) invert(100%);
    filter: grayscale(50%) invert(100%);

}

.music:hover {
    -webkit-filter: grayscale(50%) invert(100%);
    filter: grayscale(50%) invert(100%);
}

*/

/* Start of: Animations */

/* Start of: Media Queries */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .prophecy-list {
        grid-template-columns: 1fr;
    }

    .prophecy-item {
        padding: 8px;
    }
   .butterfly_container{
       display:none;
   }
}

/* Extra small devices (landscape phones, 320px and up) */
@media (min-width: 320px) {

    img,
    .commandment_images {
        width: 200px;
        height: auto;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

    img,
    .commandment_images {
        width: 300px;
        height: auto;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    img,
    .commandment_images {
        width: 400px;
        height: auto;
    }
}

/* large devices (desktops, 992px and up)l */
@media (min-width: 992px) {

    img,
    .commandment_images {
        width: 600px;
        height: auto;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    img {
        width: 1200px;
        height: auto;
    }
}