@font-face {
    font-family: Metamorphous;
    src: url('/assets/images/Metamorphous-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

body {
    font-family: Georgia, serif;
    font-size: 1.2em; /*2.3vh;*/
    background-color: #2c2c2c;
    color: #fffee9;
    /* margin: 0;
    padding: 0; */
    /* display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center; */
    /* height: 100vh; */
    /* overflow-y: auto; */
    overflow: hidden;
}

.scrollable {
    overflow: unset;
}

.top-container {
    margin-left: 50px;
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}
#topnavmenu {
    text-align: center;
    /* width: 500px; */
    height: 50px;
    min-width: 200px;
    background: rgba(34, 34, 34, 0.9);
    position: fixed;
    top: 0px;
    left: -500px;
    transition: left 0.3s;
    z-index: 1001;
    color: white;
    /* box-sizing: border-box; */
}
.toggle-in-menu {
    padding: 2px 6px;
    margin: 2px;
    z-index: 1003;
    cursor: pointer;
    font-size: 24px;
    color: white;
    user-select: none;
}
#nav-toggle {
    display: none;
}
#nav-toggle-label {
    text-align: center;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 40px;
    height: 46px;
    z-index: 1002;
    background: rgba(0,0,0,0.4);
    color: #fff;
    /* padding: 2px 5px; */
    padding-top: 2px;
    padding-bottom: 2px;
    cursor: pointer;
    /* border-radius: 4px; */
    font-size: 34px;
    user-select: none;
    transition: width 0.3s, opacity 0.3s; /* Added width and height transitions */
}
.hidden {
    opacity: 0.05;
    /* pointer-events: none; */
    padding-left: 5px;
    padding-right: 5px;
}
.showing {
    opacity: 1;
    padding-left: 5px;
    padding-right: 5px;
}
#navmenu {
    font-family: Metamorphous, "Times New Roman", Times, serif;
    font-size: 1em;
    width: 250px;
    height: 90%;
    overflow-y: auto;
    background: rgba(34, 34, 34, 0.85);
    position: fixed;
    top: 50px;
    left: -250px;
    transition: left 0.3s;
    z-index: 1001;
    user-select: none;
}
#navmenu ul {
    list-style-type: none;
    padding: 0;
}
#navmenu li {
    padding: 8px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}
#navmenu li:hover, .toggle-in-menu:hover {
    background-color: #555;
}
#navmenu a, #topnavmenu a {
    color: white;
    text-decoration: none;
    display: block;
}
#navmenu .not-nav {
    display: none;
}


.marginDotTwo {
    margin: 0.2em;
}

.marginDotTwoH {
    margin: 0.1em 0.2em;
}

.group-container {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}

.RFloatImg {
    float: right;
    clear: right;
    margin: 10px 10px 10px 20px;
    max-width: 30%;
    max-height: 100%;
    opacity: 1;
}

.HeadingImg {
    float: right;
    clear: right;
    max-width: 40%;
    margin: 20px 0px 20px 20px;
    opacity: 1;
}

.image-container {
    max-width: 30%;
    position: relative;
    text-align: center;
    float: right;
    clear: right;
    margin: 10px 10px 10px 20px;
}

.image-container.outside {
    max-width: 40%;
    margin: 20px 0px 20px 20px;
}

.image-container img.imgFit {
    width: 100%;
    height: auto;
}

.caption {
    font-size: 0.7em;
    font-style: italic;
    margin-top: 5px;
}

.overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
}

.overlay.left {
    right: unset;
    left: 5px;
}

.image-container:hover .overlay, .image-container:focus-within .overlay,
.image-container:active .overlay {
    display: block;
}

.highlevel a {
    font-weight: 400;
    color: #fffd79;
    /* text-shadow: 1px 1px 2px black, -1px 1px 2px black; */
    text-decoration: underline dotted #adac4b;
}

.highlevel::after {
    content: "";
    display: table;
    clear: both;
}

.highlevel.group-container div:not(:last-child)::after {
    content: "\25AA";
    display: inline-block;
    margin: 0 0.1em 0 0.4em;
}

/* .highlevel a:not(:last-child)::after {
    content: "\25AA";
    display: inline-block;
    margin: 0 0.2em;
} */

.fixed-container {
    position: fixed;
    top: 48px; /*56px;*/
    bottom: 44px; /*54px;*/
    left: 10px;
    right: 10px;
    margin: 0 auto;
    max-width: 900px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 8px 8px 10px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.fixed-container.shorter {
    top: 77px; /*85px;*/
}

#ParentOfOutput {
    max-width: 720px;
    margin: 0 auto;
}

.trivia, #OutputHereOld {
    /* width: 90%; */
    /* max-width: 900px; */
    /* height: 72vh; */
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    /* box-shadow: 8px 8px 10px 10px rgba(0, 0, 0, 0.25);
    margin: 8vh auto 0.5vh auto; */
    padding: 10px; /*20px*/
    /* border-radius: 16px; */
    text-align: center;

    /* position: relative; */
    overflow-x: hidden;

    background-image: url('/assets/images/parchment-3099249_1600.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#OutputHere {
    /* overflow: unset; */
    min-height: 80vh;
    border-radius: 16px;
    /* box-shadow: 8px 8px 10px 10px rgba(0, 0, 0, 0.25); */

    height: 100%;
    scroll-behavior: smooth;
    padding: 10px; /*20px*/
    text-align: center;

    /* background-image: url('/assets/images/parchment-3099249_1600.jpg');
    background-attachment: fixed;
    background-size: auto;
    background-repeat: no-repeat;
    background-position: top center; */
    background-color: #1F1F1F;
}

.trivia.leftaligned, #OutputHere.leftaligned {
    text-align: left;
}

.trivia.shorter, #OutputHere.shorter {
    height: 68vh; /*70vh*/
    margin: 1vh auto 0.5vh auto;
}

.top-inputs {
    z-index: 900;
    position: fixed;
    top: 48px; /*46px;*/
    left: 0;
    right: 0;
    margin: 0 auto;
    /* width: 90%; */
    max-width: 900px;
    text-align: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

#question, .question {
    font-size: 0.9em;
}

#question, .question, .question.group-container, .highlevel, #feedback, #context {
    background-color: rgba(0, 0, 0, 1); /* was 0.74 for semi-transparent black */
    padding: 5px;
    border-radius: 8px; /* Optional: rounded corners for the background */
}

#context {
    cursor: pointer;
    margin: 15px auto;
    padding: 10px;
}

h1, h2, h3, summary, p {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

h1, h2, h3, summary {
    font-family: Metamorphous, "Times New Roman", Times, serif;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
}

h1 {
    color: #d6ff00; /*#f4ff54;*/
    font-size: 1.4em;
    text-shadow: 1px 1px 5px black, -1px 1px 5px black;
}

h2, h3, summary {
    color: #93feff; /* #fffc60;*/
    font-size: 1.15em;
    text-shadow: 1px 1px 4px black, -1px 1px 4px black;
}

h3 {
    color: #ffaf33; /*#dbff86;*/
    font-size: 1.0em;
}

#OutputHere > :first-child {
    margin-top: 0;
}

#OutputHere svg {
    width: 100%;
    height: auto;
}

#title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

#hook {
    text-align: center;
    margin-top: 0.25em;
}

/* p {
    color: #fcffd6;
} */

.question ul, .question li {
    margin: 0.4em 0;
}

.foreign {
    font-family: "Times New Roman", Times, serif;
    color: #eaeaea;
}

.snumber {
    margin: 0 0.1em;
    font-size: 0.8em;
}

.snumber a, a {
    text-decoration: dotted underline;
    color: #dbff79;
}

.snumber a:hover, a:hover {
    text-decoration: underline;
    color: #bbff00;
}

.verseUsage {
    font-weight: bold;
    font-style: italic;
    text-decoration: underline dashed;
}

.option {
    display: block;
    margin: 1vh auto;
    padding: 1.5vh;
    color: #eaeaea;
    background-color: rgba(0, 0, 0, 0.6); /* #4a4a4a;*/
    border: 1px solid #f5fab3;
    border-radius: 24px; /* Rounded corners */
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.option:hover, .option:focus {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fcff52;
    border: 1px solid #fcff52;
    /*font-weight: 900;*/
    box-shadow: 2px 2px 5px 5px rgba(0, 0, 0, 0.75);
}

#verse, #verse a {
    /*align-self: flex-end;*/
    margin-top: auto;
    /*margin-top: 20px;*/
    font-style: italic;
    font-weight: 600;
    font-size: 1em; /* font-size: 1.05em; */
    color: #fffd79;
    text-shadow: 1px 1px 2px black, -1px 1px 2px black;
    /* text-decoration: none; */
    text-decoration: dotted underline;
}

.question a {
    font-style: italic;
    font-weight: 600;
    font-size: 1em; /* font-size: 1.05em; */
    color: #fffd79;
    text-shadow: unset;
    text-decoration: dotted underline;
}

#verse a:hover {
    font-weight: 900;
}

.question a:hover {
    text-decoration: underline;
}

h1 a, h2 a, h3 a {
    color: #fffd79;
    /* text-decoration: none; */
    text-decoration: dotted underline;
    font-style: italic;
}

h1 a:hover, h2 a:hover, h3 a:hover {
    color: #f8ffd1; /*#dbff79;*/
    /* text-decoration: underline; */
    text-decoration: dashed underline;
}

#feedback {
    font-weight: 900;
    color: rgba(0, 0, 0, 0);
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    margin: 15px auto;
    padding: 10px;
}

#timer {
    font-size: 1.25em;
    /*margin-top: 25px;*/
    /*padding: 10px;*/
    /*background-color: #4a4a4a;*/
    border-radius: 5px; /* Rounded corners */
    color: #ffb84e;
    text-shadow: 1px 1px 2px black, -1px 1px 2px black;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-text {
    display: inline-block; /* Important to ensure the transform property is applied correctly */
    animation: pulse 1s infinite; /* 1 second duration, repeating infinitely */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 11s ease-in-out forwards;
}

.video-container {
    margin: 6vh auto 0 auto;
    text-align: center;
}

.video-container iframe {
    box-shadow: 4px 4px 6px 6px rgba(0, 0, 0, 0.5);
    padding: 0;
    margin: 0;
    border-radius: 12px;
    /*width: 90vw;
    max-width: 324px;
    height: 90vh;
    max-height: 576px;*/
}


.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: calc(1vw + 0.5vh);
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.backgroundzoomout {
    background-size: 224vh;  /* Start zoomed in 104% */
    background-repeat: no-repeat;
    background-position: 50% 50%;  /* Centered */
    opacity: 0.3;
    animation: zoomOut 6s forwards, pan 60s infinite alternate ease-in-out;  /* Adjust duration as needed */
}

@keyframes zoomOut {
    to {
        background-size: 210vh;  /* End zoomed out 100%*/
        opacity: 1;
    }
}

@keyframes pan {
    0% { background-position: 50% 50%; }
    25% { background-position: 60% 55%; background-size: 224vh; }
    50% { background-position: 75% 70%; background-size: 448vh; }
    75% { background-position: 60% 55%; background-size: 210vh; }
    100% { background-position: 40% 40%; background-size: 448vh; }
}

.fade1 {
    text-shadow: 1px 1px 5px black, -1px 1px 5px black;
}

.fade2 {
    color: rgba(224, 255, 227, 1);
    text-shadow: 1px 1px 10px black, -1px 1px 10px black;
}

.fade2:hover {
    color: rgba(170, 255, 177, 1);
}

.fadeFromLeft {
    opacity: 0;
    padding: 1vh 5vw;
    transform: translateX(-15vw);
    animation: fadeIn 0.5s ease-in forwards;
}

.fadeFromRight {
    opacity: 0;
    padding: 1vh 5vw;
    transform: translateX(15vw);
    animation: fadeIn 0.5s ease-in forwards;
}

.text-left {
    transform: translate(5vw, -5vh);
}

.text-left .fade1, .text-left .fade2 {
    text-align: left;
    opacity: 0;
    transform: translateX(-15vw);
    animation: fadeIn 0.5s ease-in forwards;
}

.text-left .fade2 {
    animation-delay: 0.2s;  /* Added delay */
}

.text-up {
    transform: translate(5vw, 10vh);
}

.text-up .fade1, .text-up .fade2 {
    text-align: left;
    opacity: 0;
    transform: translate(15vw, 15vh);
    animation: fadeIn 0.5s ease-in forwards;
}

.text-up .fade2 {
    animation-delay: 0.2s;  /* Added delay */
}

.text-down {
    transform: translate(-10vw, 0vh);
}

.text-down .fade1, .text-down .fade2 {
    text-align: left;
    opacity: 0;
    transform: translate(-15vw, -15vh);
    animation: fadeIn 0.5s ease-in forwards;
}

.text-down .fade2 {
    animation-delay: 0.2s;  /* Added delay */
}

@keyframes fadeInTo {
    to {
        opacity: 1;
        transform: translate(0);
    }
}

.top-panel {
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100%; */
    height: calc(1vw + 1vh); /*2vh;*/
    max-height: 2.5vh;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2vh 1vw 1vh 1vw;
    box-shadow: 2px 4px 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 0px;
    z-index: 1000;  /* Ensures the panel stays on top */
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-family: Metamorphous, "Times New Roman", Times, serif, Calibri, Arial, sans-serif;
    font-size: calc(1.3vw + 0.2vh); /*calc(0.8vw + 0.55vh);*/ /* 2.5vw; */
    text-shadow: 1px 1px 12px rgba(0, 0, 0, 0.5);

    opacity: 0;
    transform: translateY(-15vh);
    animation: fadeInTo 0.5s ease-in forwards;
}

.top-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8%;
    height: 100%;
    background-image: url('/assets/images/logo_150.png?v=20231205');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.4;  /* Adjust opacity as needed */
}

.top-panel a {
    color: rgb(192, 255, 201);
    text-decoration: none;
    font-weight: 200;
    opacity: 0.7;
}

.top-panel a:hover {
    color: rgba(120, 255, 140, 1);
    opacity: 1;
}

.top-panel img {
    opacity: 0.5;
    margin: 0 1vw;
}

.top-panel img:hover {
    opacity: 0.8;
}

.left-section {
    padding: 0 0.5em 0 2.5em;
    font-variant: small-caps;
    font-size: 170%;
    opacity: 0.7;
}

.left-section a {
    color: #eaeaea;
    font-weight: 200;
    opacity: 1;
}

.middle-section ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.middle-section ul li {
    margin: 0 1.2vw;
    font-size: 140%;
}

.right-section {
    text-align: right;
    margin: 0 2vw 0 0;
    font-size: 130%;
    opacity: 0.5;
}

.bottom-panel {
    clear: both;
    /* position: fixed;
    bottom: 0;
    right: 0; */
    /* height: 2vh; */
    width: fit-content;
    /* max-width: 40vw; */
    /* padding: 5px 5px 10px 10px; */
    margin: 1em auto;
    padding: 5px;
    /* color: #707070; */
    background-color: rgba(0, 0, 0, 0.3);
    /* z-index: 500; */
    font-family: "Times New Roman", Times, serif, Calibri, Arial, sans-serif;
    font-size: calc(0.9vw + 0.6vh);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    /* box-shadow: 4px 4px 7px 7px rgba(0, 0, 0, 0.1); */
    text-align: center;
    /* text-align: right; */
    border-radius: 8px;
    /* opacity: 0; */
    /* transform: translateY(5vh); */
    /* animation: fadeInTo 0.5s ease-in forwards; */
}

.header {
    /* display: flex; */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    /* height: 50px; */
    max-width: 900px;
    text-align: center;
    font-family: Metamorphous, "Times New Roman", Times, serif, Arial, sans-serif;
    font-size: calc(1.5vw + 0.5vh);
    text-shadow: 1px 1px 12px rgba(0, 0, 0, 0.5);
}

.topmenu {
    display: flex;
    justify-content: space-between;
    font-family: Metamorphous, "Times New Roman", Times, serif;
    font-size: 1em;
}

.topmenu a {
    text-decoration: none;
}

.topmenu a span:hover {
    text-shadow: 0px 0px 1px rgba(250, 250, 0, 1);
}

.scrollbg {
    display: flex;
    width: 55px; /*73px;*/
    height: 44px;
    background-image: url('/assets/images/scroll.png?v=20240214');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.scrollbg.smaller {
    width: 50px;
    height: 32px;
}

.scrolltext {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    margin: auto;
    color: #d6ff00;
    text-shadow: 1px 1px 2px black, -1px 1px 2px black;
}

.scrolltext.smaller {
    font-size: 10px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 42px;
    max-width: 900px;
    text-align: center;
}

.controls {
    z-index: 700;
    /* position: fixed; */
    /* bottom: 5px; */
    left: 0;
    /* width: 100%; */
    display: flex;
    /* align-items: center;
    justify-content: center; */
    font-size: 30px;
}

.controls span, .controls img, .topmenu img {
    opacity: 0.3;
    padding: 0;
    margin: 0.2vw;
    cursor: pointer;
    user-select: none;
}

.controls span:hover, .controls img:hover, .topmenu img:hover {
    opacity: 0.8;
}

video {
    position: absolute;
    margin: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeOut 4s forwards;
    animation-delay: 4s;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

summary {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
    cursor: pointer;
}

summary:hover {
    color: #f8ffd1; /* rgb(163, 209, 0);*/
}

.top-inputs input {
    min-width: 10vw;
    width: 14vw;
    /* max-width: 24vw; */
    background-color: white;
}

.top-inputs input.widerInput {
    width: 22vw;
}
  
.shrinkThis {
    opacity: 1;
    font-size: 0.6em;
    /* animation: hideText 7s ease-in forwards; */
}

@keyframes hideText {
    to {
        font-size: 0em;
        /* letter-spacing: 0.1px; */
        /* transform: scale(0); */
        opacity: 0;
        visibility: hidden;
        /* position: absolute; */
        /* width: 0; */
        /* height: 0; */
    }
}
  