*{
    box-sizing: border-box;
}

:root{
    --fonts: Courier, ms pgothic, basiic, arial;
    --purple: rgb(190, 168, 210, 0.9);
    --border: 5px dotted white;
}

body {
    font-family: var(--fonts);
    font-size: 19px;
    word-spacing: 5px;
    line-height: 23px;
    background-color: #e0d0e9;              
    background-image: url(pastelgothpixelbg.png);
    background-repeat: repeat;              
    background-attachment: fixed;           
    background-position: top left;
    background-size: auto;
    word-wrap: break-word;
    padding-top: 30px;
    margin: 0px;
    min-height: 100vh;                      /* Ensures body always fills screen */
    text-shadow: 1px 1px 5px white;
}


a{
    color: white;
    font-weight: bold;
    transition-duration: 0.3s;
    text-shadow: 1px 1px 5px black;
}

a:hover{
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6{
    text-align: center;
    font-family: romanceA, var(--fonts);
    letter-spacing: 2px;
}

h1{
    font-size: 45px;
    line-height: 45px;
}

header{
    margin: 0px auto; /* Remove the top margin */
    padding: 8px; /* Keep some padding for spacing */
    border: none; /* Remove the separate border since it's now inside main */
    border-radius: 10px 10px 0px 0px; /* Only round the top corners */
}

main {
    background: var(--purple);
    margin: 0 auto;
    max-width: 800px;
    border-radius: 10px;
    border: var(--border);
    padding: 20px 30px; /* Added more padding on the sides (30px) */
}

p {
    margin-bottom: 15px; /* Adds more space between paragraphs */
    padding-left: 10px;   /* Optional: slight padding inside paragraphs */
    padding-right: 10px;  /* Optional: slight padding inside paragraphs */
}

details{
    padding: 0px;
    padding-right: 10px;
    margin: 20px 10px 20px 40px;
}

summary i{
    font-family: romanceA, var(--fonts);
    font-size: 20px;
}

summary{
    cursor: help;
    padding: 0px;
    display: block;
    transition-duration: 0.5s;
}

summary:hover {
    letter-spacing: 1px; /* Reduce spacing to a smaller value */
}

summary::before{
    content: url(ghostbulletpoint.gif);
    vertical-align: top;
    padding-right: 5px;
}

.date-watched{
    margin-top: 15px;
    text-align: right;
}

.spoiler{
    background: black;
    color: black;
    text-shadow: none;
}

.spoiler:hover{
    background: var(--purple);
    text-shadow: 1px 1px 5px white;
}

.character1 {
    position: absolute; /* or 'fixed' */
    top: 439; /* Adjust positioning */
    left: 210px; /* Adjust positioning */
}

.character2 {
    position: absolute; /* or 'fixed' */
    top: 439px; /* Adjust positioning */
    left: 1180px; /* Adjust positioning */
}

.tooltip {
    display: inline-block; /* Allow inline block layout */
    background-image: url(flying-eye.gif); /* Background image */
    background-size: cover; /* Ensure background covers entire link area */
    background-repeat: no-repeat; /* No repeat */
    background-position: center; /* Center the background image */
    position: fixed; /* Necessary for positioning the tooltip */
    width: 150px; /* Size of the link area */
    height: 150px; /* Height for visual sizing */
    vertical-align: middle; /* Prevents it from pushing content down */
}

.tooltip-text {
    visibility: hidden; /* Hidden by default */
    width: max-content; /* Allow the text to stay on one line */
    background-color: #BEA8D2E6; /* Background color */
    color: white; /* Text color */
    text-align: center; /* Center the text */
    border-radius: 5px; /* Rounded corners */
    padding: 5px; /* Padding around the text */
    position: absolute; /* Position it absolutely */
    z-index: 1; /* Ensure it is above other elements */
    top: calc(100% + 5px); /* Position it just below the image */
    left: calc(100% - 40px); /* Align it towards the bottom-right corner */
    opacity: 0; /* Start invisible */
    transition: opacity 0.3s; /* Smooth transition */
    border: 2px dotted white; /* Styling for the border */
}

.tooltip:hover .tooltip-text {
    visibility: visible; /* Show on hover */
    opacity: 1; /* Make it visible */
}

/* Start https://www.cursors-4u.com */ * {cursor: url(https://cur.cursors-4u.net/holidays/hol-4/hol336.cur), auto !important;} /* End https://www.cursors-4u.com */

