/* Base Colors */
:root {
    --purple-bg: #381B3D;
    --orange-accent: #D35400;
    --yellow-accent: #FFDE5A;
    --text-light: #FFFFFF;
    --text-dark: #2A2A2A;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif; /* Use a more fitting font if available */
    background-color: var(--purple-bg);
    color: var(--text-light);
    padding:5%;
    margin-bottom: 500px;
}

main {
    background-color: var(--purple-bg);
    border: 5px solid black;
    box-shadow:
        0 0 0 5px var(--purple-bg), /* Yellow border */
        0 0 0 10px orange; /* Orange border */
    padding: 10px; /* Adjust if needed to ensure content isn't too close to the borders */
}


h1, h2, h3 {
    font-weight: bold;
    color: var(--yellow-accent);
}

table{
    border:1px solid black;
    padding:2px;
}

td, th {
    padding: 10px;
    margin-bottom: 2px;
    text-align: left;
    vertical-align: top;
}
tr{
    text-align: left;
    border: 1px solid var(--yellow-accent);
}

a:not(:has(img)) {
    color: var(--yellow-accent);
    text-decoration: none;
    /* very decent underline, dotted */
    border-bottom: 1px dotted var(--yellow-accent);
    transition: color 0.3s;
}

/* add this ↗ to every link */
a:not(:has(img))::after {
    content: " ↗";
}

a:hover {
    color: var(--orange-accent);
}

.button {
    background-color: var(--yellow-accent);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: var(--text-dark);
    transition: background-color 0.3s;
    /* an nft pointer for the cursor */
    cursor: pointer;
    
}

.button:hover {
    background-color: var(--orange-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--purple-bg);
}

/* Additional styles for your components can be added below */

/* Base Styles for details and summary */
details {
    border: 1px solid var(--orange-accent);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s;
    overflow: hidden;

}

summary {
    padding: 10px 15px;
    color: white !important;
    list-style: none; /* Removes the default arrow icon */
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker { /* Hide default arrow in Chrome & Safari */
    display: none;
}

details[open] summary {
    background-color: var(--orange-accent);
    color:var(--purple-bg) !important;
}

details[open] summary h1{
    color:var(--purple-bg) !important;
}

/* Custom arrow icon for summary */
summary::before {
    content: '▶';
    margin-right: 10px;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details > div {
    border-top: 1px solid var(--orange-accent);
    padding: 10px 15px;
    background-color: var(--text-light);
    color: var(--text-dark);
}

#lizard, #cranium, #mangaart{
    /* give them a nice shadow, around the contour */
    /* take the transparency into account */
    filter: drop-shadow(0 0 0.8rem black);
}

/* Position the images fixed */

#lizard{
    /* bottom left, make it mid-size */
    position: fixed;
    bottom: 0;
    left: 0;
    height: 270px;
    max-height: 22vh;
    z-index:-15;
}

#cranium{
    /* bottom right, make it small */
    position: fixed;
    bottom: 0;
    right: 0;
    height: 250px;
    max-height: 20vh;
    /* mirror horizontally */
    transform: scaleX(-1);
    z-index:-15;
}

#mangaart{
    /* top right, make it small */
    position: fixed;
    bottom: 0;
    /* middle of the screen */
    left: 50%;
    transform: translateX(-50%);
    height: 250px;
    max-height: 20vh;
    z-index:-15;
}

/* special effects */
/* I want to add diagonal stripes in the background that go from mid right to mid left */
/* three yellow and three orange with some pixels in between */

body::before {
    content: "";
    position: fixed;
    z-index:-20;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport units to ensure it spans the entire width */
    height: 100vh; /* Use viewport units to ensure it spans the entire height */
    background-image:
        linear-gradient(
            -45deg,
            transparent,
            transparent 16%,
            var(--yellow-accent) 16%,
            var(--yellow-accent) 20%,
            transparent 20%,
            transparent 36%,
            var(--orange-accent) 36%,
            var(--orange-accent) 40%,
            transparent 40%,
            transparent 56%,
            var(--yellow-accent) 56%,
            var(--yellow-accent) 60%,
            transparent 60%,
            transparent 76%,
            var(--orange-accent) 76%,
            var(--orange-accent) 80%,
            transparent 80%,
            transparent 96%,
            var(--yellow-accent) 96%,
            var(--yellow-accent) 100%
        );
    background-size: 100% 100%;
    pointer-events: none; /* Ensures the pseudo element doesn't interfere with interactions */
}

.invisible{
    display: none;
}

#book-links{
    background-color: transparent;
}

.linkFromList{
    background-color: transparent;
    margin:5px;
    display: inline-flex;
    border:none;
}

#coverImg{
    width: 650px;
    max-width: 95%;
    margin: 5px;
}

hr{
    border: 1px solid var(--yellow-accent);
    /* margin top and bottom 5px */
    margin: 15px 0px 5px 0px;
}