/* Global settings for sitewide styling. */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;1,400&subset=cyrillic&display=swap');

body{
    font-family: 'EB Garamond', Monospace;
    font-size: 1.2em;
    min-height: 100vh;
    color: white;
    margin: 0px 5px 0px 0px;
    padding: 0;
}


/*=======================================================
Standard elements color, behavior, and design.
=======================================================*/

a:link {
    color: rgba(000, 128, 255, 1.0);
}

a:visited {
    color: rgba(000, 200, 20, 1);
}

a:hover {
    color: white; /* Example hover color */
    text-decoration: underline; /* Example hover effect */
}


h1 {
    color: rgba(55, 0, 88, 1);
    font-size: 3em;
    text-align: center;
    text-shadow:
	0 0 10px rgba(255, 255, 255, 1),
	0 0 30px rgba(255, 255, 255, 1),
	0 0 60px rgba(255, 255, 255, 0.8),
	0 0 100px rgba(255, 255, 255, 0.5);
}

h2 {
    color: rgba(255, 255, 255, 1);
    border-radius: 0.5em;
    font-size: 2.0em;
    text-align: center;
    padding: 5px;
}

h3 {
    color: rgba(255, 255, 255, 1);
    background: rgba(050,050,155,0.4);
    border-radius: 0.5em;
    font-size: 1.5em;
    text-align: center;
    padding: 5px;
}

h4 {
    color: rgba(255, 255, 255, 1);
    background: rgba(100,100,255,0.2);
    font-size: 1.0em;
    text-align: center;
    border-radius: 0.5em;
}

blockquote {
    color: rgba(255, 255, 255, 1);
    text-align: justify;
    font-size: 0.98em;
    font-style: italic;
    padding-left: 0.5em;
    padding-right: 0.5em;
    border-left: 0.2em solid rgba(100, 0, 200, 1);
    background: rgba(100, 0, 200, 0.2);
    border-radius: 0.5em;
}

li {
    color: rgba(255,255,255,1);
}

p {
    text-align: justify;
    max-width: 100ch;
    margin: 1em auto;
    text-indent: 1.5em;
}

hr {
    width: 66%;
}

p.n {
    /* For notes.*/
    font-style: italic;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    background-color: rgba(55, 00, 88, .8);
    padding: 10px;
    color: white;
    text-align: center;
}

/* List formatting */

dt, dd {
    color: white;
}

dt {
    position: relative;
    font-weight: bold;
}

figure {
    margin: 1em auto;
    text-align: center;
}

figcaption {
    color: rgba(200, 200, 200, 0.9);
    font-style: italic;
    font-size: 0.85em;
    margin-top: 0.4em;
}

/*=======================================================
Scrollbar Style
=======================================================*/

/* width */
::-webkit-scrollbar {
    width: 10px;
    background: black;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(55, 00, 88, .5);
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 00, 88, .8);
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.7);
    transition: background 0.3s ease;
}


/*=======================================================
Custom stuff for playing around
=======================================================*/

.censor {
    filter: blur(6px);
    transition: filter 0.3s ease;
    display: inline; /* since it's mid-sentence */
}

.censor:hover {
    filter: blur(0);
}

/* For date / location footer at the end of a post. */
p.dateline {
    text-align: right;
    text-indent: 0;
    font-style: italic;
    color: rgba(200, 200, 200, 0.9);
}

/* ================ NEW! blinker ================  */

button .new_badge {
    display: inline-block;
}

button .new_badge::before {
    content: "New!";
    animation: blinker 1.0s linear infinite;
    color : rgb(50, 100, 200);
    transform: rotate(-45deg);
    display: inline-block;
    position: absolute;
    right: 5px;
    top: 30%;
}

dt .new_badge::before {
    content: "New!";
    animation: blinker 1.0s linear infinite;
    color : rgb(50, 100, 200);
    transform: rotate(-45deg);
    display: inline-block;
    position: absolute;
    right: 5px;
    top: 30%;
}

@keyframes blinker {
    50% {
	opacity: 0;
    }
}

/* =====================================================
Current media formatter : currently listening, etc.
===================================================== */

.media-header {
    background: rgba(0, 0, 0, 0.8);
    border-left: 0.2em solid rgba(100, 0, 200, 1);
    border-radius: 0 0.25em 0.25em 0;
    padding: 0.5em 1em;
    margin-bottom: 1.5em;
    max-width: fit-content;
    margin-left: auto;
}

.media-header p {
    color: rgba(200, 200, 200, 0.9);
    font-style: italic;
    font-size: 0.85em;
    margin: 0.2em 0;
    text-align: left;
    text-indent: 0;
}

/* =======================================================
Ghost Title header container and formatting
======================================================= */

.title-container {
    position: relative; /* Needed for absolute positioning */
    text-align: center;
}

.ghost-title {
    position: absolute; /* Place it below the main title */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -75%); /* Fine-tune centering */
    font-size: 3em;
    color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.textbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(55, 00, 88, .8);
    border-radius: 0.25em;
    padding-left: 1.0em;
    padding-right: 1.0em;
    padding-bottom: 1.0em;
    position: relative;
    z-index: 2;
}

.textbox {
    width: 100%;
    box-sizing: border-box;
    margin: 1em auto;
    padding: 0.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.25em;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.7);
    border: 1px solid black;
}

.textbox-container img {
    display: block;
    margin: 0 auto;
    max-width: 70%;
    max-height: 500px;
    text-align: center;
    border: 1px solid rgba(100, 100, 100, 0.5);
    border-radius: 0.5em;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.7);
}

.textbox-container img.no-border {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 500px;
    text-align: center;
    border: none;
    border-radius: none;
    box-shadow: none;
}

.textbox p {
    color: white;
}

/* ============================================================
Blog nav footer style.
 This can't be in blog_post.css since that's only included for
direct links.
============================================================ */

/* .blog-footer { */
/*     display: flex; */
/*     align-items: center; */
/*     justify-content: center; */
/*     gap: 1rem; */
/* } */

.blog-footer img {
    border: none !important;
    border-radius: 0 !important;
    height: 32px;
    width: auto;
}

.blog-footer {
    display: grid;
    align-items: center;
    grid-template-columns: 48px 48px 48px;
    justify-content: center;
    gap: 1rem;
}

#next-button {
    grid-column: 3;
}

#random-button {
    grid-column: 2;
}

#previous-button {
    grid-column: 1;
}
