html,
body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    --techBorderColor: #770000;
    --techBackgroundColor: #111111;
}

/* Background image container */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}

/* Overlay for blur/desaturation */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px) saturate(0.2);
    z-index: 1;
}

.layout {
    position: relative;
    display: grid;
    grid-template-columns: 15% auto 15%;
    min-height: 100vh;
    z-index: 1;
}

.side {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    height: 100%;
    position: sticky;
    top: 0;
    align-self: start;
    z-index: 1;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 2rem;
    color: black;
    text-align: center;
    z-index: 2;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.content h2 {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    white-space: pre-line;
}

.content p {
    font-size: 1.2rem;
}

.menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.menu a {
    margin: 0 1rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.menu a:hover {
    color: #ffd700;
}

.quote-area {
    position: absolute;
    top: 2.5rem;
    left: 0;
    right: 0;
    min-height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

h2.drain {
    margin: 0;
    text-shadow: #f5e50d 1px 0 10px;
    font-size: 30px;
    line-height: 1.25;
}

.index-main {
    display: flex;
    flex-direction: column;
    margin-top: 13.5rem;
    margin-left: -7%;
    width: calc(100% + 7%);
    align-self: stretch;
}

.index-sections {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: calc(15rem - 50px);
    width: 100%;
}

.data-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: calc(60% + 50px);
    flex: 0 0 calc(60% + 50px);
    text-align: left;
}

.tech-blog {
    flex: 1;
    min-width: 160px;
    max-width: 280px;
    margin-top: 4rem;
    transform: translate(10px, 14px);
    padding: 14px 16px;
    background-color: var(--techBackgroundColor);
    border: 5px solid var(--techBorderColor);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.tech-blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tech-blog-list li {
    display: flex;
    flex-direction: column;
}

.tech-blog-list li:not(:last-child)::after {
    content: "";
    display: block;
    width: 45%;
    height: 1px;
    background: white;
    margin: 0.45rem auto 0.1rem;
}

.tech-blog-item {
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, 0.22);
    border: 2px solid gray;
    color: #ffffff;
    text-align: left;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 0.55rem;
    font-family: inherit;
    line-height: 1.3;
    box-sizing: border-box;
}

.tech-blog-item:hover,
.tech-blog-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.tech-blog-empty {
    color: rgba(255, 220, 220, 0.55);
    padding: 0.5rem;
}

.tech-entry-panel {
    position: relative;
    display: none;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem 1.75rem;
    background-color: var(--techBackgroundColor);
    border: 8px double var(--techBorderColor);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    max-height: 50vh;
    overflow-y: auto;
}

.tech-entry-panel.is-open {
    display: block;
}

.tech-entry-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #f3cfcf;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
}

.tech-entry-close:hover {
    color: #ffffff;
}

.tech-entry-title {
    margin: 0 1.5rem 0.4rem 0;
    font-size: 1.25rem;
    color: #ffd4d4;
}

.tech-entry-date {
    margin: 0 0 1rem;
    color: #002299;
    font-size: 0.9rem;
}

.tech-entry-body {
    font-size: 1.05rem;
    line-height: 1.65;
}

.tech-entry-body p {
    margin: 0 0 1rem;
}

.tech-entry-body a {
    color: #ffd27a;
    word-break: break-word;
}

.tech-entry-body a:hover {
    color: #ffe9b0;
}

.data-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.65);
    border: 5px solid white;
    border-radius: 29px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.data-text-panel {
    flex: 0 0 240px;
    text-align: left;
    display: flex;
    align-items: center;
}

.data-text-panel h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-style: italic;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    overflow: hidden;
}

#music-update-date,
#movie-update-date {
    color: red;
}

.data-items-panel {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.items-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
}

#fav-movies-container,
#top-artists-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

#fav-movies-container div,
#top-artists-container div {
    text-align: center;
    flex-shrink: 0;
}

#fav-movies-container img,
#top-artists-container img {
    width: 90px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#top-artists-container img {
    height: 90px;
    object-fit: cover;
}

#fav-movies-container div div,
#top-artists-container div div {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    white-space: normal;
    word-wrap: break-word;
    max-width: 90px;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    align-self: center;
    width: 100%;
}

.button-border {
    border: 8px solid #ffae70;
    outline: 4px solid;
    border-radius: 100px;
}

.button-base {
    position: relative;
    border-radius: 100px;
    background-color: #47214d;
    outline: 2px solid black;
}

.button-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(90%);
    pointer-events: none;
    z-index: 10;
}

.button {
    border-radius: 100px;
    font-family: "Press Start 2P", cursive;
    font-size: 32px;
    outline: 2px solid black;
    border: 4px solid;
    border-left-color: #D1A4DF;
    border-top-color: #AF60C8;
    border-bottom-color: #380B46;
    border-right-color: #63137B;
    background-color: #8E1CB1;
    cursor: pointer;
    color: #ffee83;
    padding: 40px 40px;
    transform: translateY(-20%);
}

.button:hover {
    transform: translateY(-10%);
}

.button:active {
    transform: translateY(0);
}