@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

body {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.6;
    color: #222;
    margin: 0;
    padding: 0 20px 20px;
}
.container{
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
    text-align:center;
}
main{max-width:900px;margin:0 auto}
.center{text-align:center}
img{max-width:100%;height:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:8px;border:1px solid #ddd}
p {
    margin-top: 0;
    margin-bottom: 0.8rem;
    text-wrap: pretty;
}
.answer-box {
    position: relative;

    margin: 1rem 0 3rem;
    padding: 1rem;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-left: 5px solid #16a34a;
    border-radius: 16px;

    box-shadow: 0 20px 35px rgba(0,0,0,.06);

    text-align: left;

}

.answer-box::before {
    content: "Answer";

    position: absolute;
    top: 0;
    left: 16px;
    transform: translateY(-50%);

    padding: 4px 10px;

    background: #16a34a;
    color: white;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.content {
    line-height: 1.75; 
    letter-spacing: 0.01em; 
}

.content a:not(.co) {
    color: #0072ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.content a:not(.co):hover {
    color: #004d7a;
    text-decoration-color: #004d7a;
}
.content img {
    cursor: zoom-in;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
summary {
  cursor: pointer;
  display: block;
}
#topBtn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 9999;

    width: 75px;
    height: 75px;

    border: none;
    border-radius: 50%;

    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    font-size: 32px;
    font-weight: bold;

    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 8px 25px rgba(0,114,255,.5),
        0 0 20px rgba(0,198,255,.4);

    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(.8);

    transition: all .35s ease;
}

#topBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#topBtn:hover {
    transform: scale(1.15);
    box-shadow:
        0 12px 35px rgba(0,114,255,.7),
        0 0 35px rgba(0,198,255,.8);
}

#topBtn:active {
    transform: scale(.95);
}
.question-box {
    position: relative;

    margin: 1rem 0 3rem;
    padding: 1rem;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-left: 5px solid #2b63fd;
    border-radius: 16px;

    box-shadow: 0 20px 35px rgba(0,0,0,.06);

    text-align: left;
}

.question-box::before {
    content: "Question";

    position: absolute;
    top: 0;
    left: 16px;
    transform: translateY(-50%);

    padding: 4px 10px;

    background: #1465fc;
    color: white;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.title {
    display: inline-block;

    padding: 14px 28px;
    margin-bottom: 1.5rem;

    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 10px;

    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
@media (max-width:600px) {
    body {
        padding:1px;
    }

    #topBtn {
        width:50px;
        height:50px;
        font-size:22px;
        right:15px;
        bottom:15px;
    }

    table {
         display: block;
        width: 100%;
        overflow-x: auto;
    }
}
.co {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  background-color: #f1f1f1;
  color: black;
  border-radius: 4px;
  margin: 5px;
  
  text-align: center;
  white-space: pre-line;
}

.co:hover {
  background-color: #5b95ff;
}
.link-with-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.link-with-image:hover {
    color: #667eea;
    text-decoration: underline;
}

.link-with-image img {
    width: 30px;
    height: 28px;
}
.hvr-bounce-to-bottom {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hvr-bounce-to-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
}

.hvr-bounce-to-bottom:hover {
  transform: scale(1.15);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.hvr-bounce-to-bottom:hover::after {
  opacity: 1;
  bottom: -14px;
}
.hdr {
    position: relative;

    margin: .4rem 0 .7rem;
    padding: clamp(1rem, 4vw, 2rem);

    background: linear-gradient(180deg,#f9fafb,#f9fafb);

    border: 3px solid #e5e7eb;
    border-radius: 16px;

    box-shadow:
        0 8px 26px rgba(0,0,0,.06);
}
.credit-link {
    display: inline-flex;
    align-items: center;

    position: relative;

    height: 32px;
    padding: 0 13px 0 38px;
    margin-left: 20px;

    background: #fff !important;
    border: 1px solid #ddd;
    border-radius: 15px;

    color: #111 !important;
    font-size: 15px !important;
    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 2px 5px rgba(0, 0, 0, .15);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.credit-link::before {
    content: "";

    position: absolute;

    left: -18px;
    top: 50%;

    width: 44px;
    height: 44px;

    transform: translateY(-50%);

    background: #ff0000;
    border-radius: 50%;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.credit-link::after {
    content: "";

    position: absolute;

    left: 7px;
    top: 50%;

    width: 0;
    height: 0;

    transform: translate(-50%, -50%);

    border-left: 15px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.credit-link:hover {
    transform: translateX(13px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}


.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}
.footer {
    padding: .5rem;
    text-align: center;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: .85rem;
}

.footer a {
    color: inherit;
}

.footer a:hover {
    color: #0077cc;
}
.center-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.center-table th,
.center-table td {
    text-align: center;
    vertical-align: middle;
}
.chapters-table td:last-child a {
    display: inline-block;
    min-width: 18px;
    padding: 4px 9px;
    margin: 1px 2px;
    text-decoration: none;
    text-align: center;
    font: 600 0.9rem sans-serif;
    color: #0b57d0;
    background: linear-gradient(#ffffff, #eef5ff);
    border: 1px solid #9ec5ff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
    transition: all .2s ease;
}

.chapters-table td:last-child a:hover {
    color: #fff;
    background: linear-gradient(135deg, #4dabff, #0066ff);
    border-color: #0066ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,102,255,.35);
}

.chapters-table td:last-child a:active {
    transform: translateY(0);
}

.chapters-table td:last-child {
    white-space: normal;
}
.chapters-table th,
.chapters-table td {
    text-align: center;
    vertical-align: middle;
}
.bg {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.quote-box {
  border: 2px solid #ccc;
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.quote-box blockquote {
  margin: 10px 0;
  padding-left: 15px;
  border-left: 4px solid #888;
  text-align: left;
  font-style: italic;
}
.media-box {
    width: fit-content;            
    margin: 1.75rem 0;         
    max-width: 100%;
    
    background-color: #ffffff; 
    border: 1px solid #7e7e7e; 
    border-radius: 12px;      
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;          
}

.media-box img {
    cursor: zoom-in;
    display: block;
    width: 100%;
    height: auto;
    border: none !important;  
    box-shadow: none !important;
    border-radius: 0 !important;
}

.media-box figcaption {
    padding: 10px 14px;
    font-size: 1rem;
    color: #374151;
    background-color: #f8fafc; 
    border-top: 1px solid #5e6064; 
    text-align: left;
}

.media-box figcaption a {
    color: #0072ff;
    text-decoration: underline;
}
#imageLightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.85);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#imageLightbox.show {
    opacity: 1;
    visibility: visible;
}

#imageLightbox img {
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

    cursor: zoom-out;
}

#imageLightbox .close {
    position: absolute;
    top: 20px;
    right: 25px;

    color: white;
    font-size: 36px;
    line-height: 1;

    cursor: pointer;
    user-select: none;
}

/*DARK MODE*/

body.dark {
    background: #0f172a;
    color: #e5e7eb;
}

body.dark .container,
body.dark .answer-box,
body.dark .question-box,
body.dark .media-box {
    background: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

body.dark .hdr,
body.dark .title {
    background: #1f2937;
    border: 4px solid #4b5563;
    color: #f9fafb;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark p,
body.dark .content {
    color: #e5e7eb;
}

body.dark .content a:not(.co) {
    color: #60a5fa;
}

body.dark .content a:not(.co):hover {
    color: #93c5fd;
}

body.dark .answer-box,
body.dark .question-box {
    background: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

body.dark .answer-box {
    border-left-color: #147538;
}

body.dark .question-box {
    border-left-color: #214c91;
}

body.dark .answer-box::before {
    background: #147538;
}

body.dark .question-box::before {
    background: #214c91;
}
body.dark .quote-box {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark .quote-box blockquote {
    border-left-color: #adcff8;
    color: #d1d5db;
}

body.dark th,
body.dark td {
    border-color: #374151;
}

body.dark table {
    color: #e5e7eb;
}

body.dark .co {
    background: #1f2937;
    color: white;
}

body.dark .co:hover {
    background: #2563eb;
}

body.dark .media-box figcaption {
    background: #1f2937;
    color: #d1d5db;
    border-color: #374151;
}

body.dark .footer {
    border-color: #374151;
    color: #9ca3af;
}

body.dark .chapters-table td:last-child a {
    background: #1e293b;
    border-color: #3b82f6;
    color: #93c5fd;
}

body.dark .chapters-table td:last-child a:hover {
    background: #2563eb;
    color: white;
}

body.dark .bg {
    background: linear-gradient(135deg,#2563eb,#1e40af);
}
body.dark .link-with-image {
    color: #e5e7eb;
}

body.dark .link-with-image:hover {
    color: #60a5fa;
}

body.dark .link-with-image img {
    filter: brightness(0.85);
}

body.dark #topBtn {
    background: linear-gradient(135deg, #38bdf8, #2563eb);

    box-shadow:
        0 8px 25px rgba(37,99,235,.5),
        0 0 20px rgba(56,189,248,.4);
}

body.dark #topBtn:hover {
    box-shadow:
        0 12px 35px rgba(37,99,235,.7),
        0 0 35px rgba(56,189,248,.8);
}

/*DARK MODE Button*/
.dark-button {
    position: absolute;
    top: 0;
    right: 0;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    background: linear-gradient(145deg, #464a50, #1b1c1e);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    cursor: pointer;

    border: none;
    outline: none;

    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4);

    transition:
        background 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.dark-button:hover {
    background: linear-gradient(145deg, #343638, #222426);

    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.35);

    transform: translateY(-1px);
}

.dark-button:active {
    transform: translateY(1px) scale(0.96);

    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.35),
        inset 0 2px 3px rgba(0, 0, 0, 0.35);
}

.dark-button.flip {
    animation: flipMode 0.6s ease;
}

@keyframes flipMode {
    0% {
        transform: perspective(400px) rotateY(0deg);
    }

    50% {
        transform: perspective(400px) rotateY(180deg);
    }

    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

