/* 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 {
    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);
}
.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;
}

/* Image styling */
.most_important {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-bottom:40px;
    /* border: 1px solid var(--black);
    box-shadow: 1px 1px 2px var(--black); */
}

/* Start of: Night Light Toggle Mode Switch */

/* Credits: https://codepen.io/Umer_Farooq/pen/eYJgKGN */

body.dark {background-color: #292c35; color:var(--light)} 
body.dark .container{background-color: var(--night);color:var(--light)}
body.dark h1, body.dark .support a {color: #fff;}

.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);
}

.ball{
    top:100px;
}



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

.back-to-top {
    margin-top:100px;
    position:absolute;
    left: 50%;
  
    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;
}
.sixtysixbooks {
    position:absolute;
    left:50%;
    padding-top:50px;
    
    transform: translateX(-50%);
    text-align: center;
    font-family: 'Limelight', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color:var(--white);
}
.sixtysixbooks:hover {
    color:var(--red);
    letter-spacing: 3px;
}

/* 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;
}

h3 {
    font-size: 1.4em;
    margin-top: 20px;
    color:var(--green);
}

/* Header background */
.header_bg,
.header_middle_bg {
    background-image: url("../images/leaves.png");
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    text-align: center;
    box-shadow: inset 0 0 0 1000px rgba(125, 209, 153, 0.5);
}

/* Before and after */
.beforeandafter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px;
    padding: 10px;
}


.tandt {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.6em;
    color: var(--red);
}

.new_covenant {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.6em;
    color: var(--orangegold);
}

/* Other classes */
.theLORD {
    font-family: 'Limelight', sans-serif;
    font-weight: 400;
    color: var(--black);
    letter-spacing: 4px;
}

.divinity {
    color: var(--red);
}

.authority {
    color: var(--orangegold);
}

#and {
    color: var(--yellow);
}

#power {
    color: var(--gold);
}

.tandt {
    color: var(--red);
    font-weight: 600;
    letter-spacing: 2px;
}

.tandt:hover {
    color: var(--gold);
    text-decoration: none;
}

.new_covenant {
    color: var(--orangegold);
    font-weight: 600;
    letter-spacing: 2px;
}

.new_covenant:hover {
    color: var(--gold);
}

.verse {
    margin: 10px 0;
    font-size: 1.1em;
}

.book-section {
    margin-bottom: 20px;
}

/* 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;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

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

    .content {
        padding: 10px;
    }

    .tandt,
    .new_covenant {
        font-size: 1.5em;
        margin: 5px 0;
    }

    .beforeandafter {
        flex-direction: column;
        align-items: center;
    }

    .header_middle_bg .tandt,
    .header_middle_bg .new_covenant {
        font-size: 1.4em;
        margin: 5px 0;
    }

    .theLORD {
        display: none;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .most_important {
        max-width: 90%;
    }
    .most_important{
        display:none;
    }
    .back-to-top{
        position:absolute;
        bottom:1%;
        left:50%;
        transform: translate(-50%);
    }
}