body {
    margin: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("media/immortal.jpg");
    background-size: cover;
    background-position: 50% 35%;
    filter: blur(7px) brightness(0.55);
    transform: scale(1.05);
    z-index: -1;
}

.page-wrap {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    max-width: 1000px;
    width: 80%;
    margin: 0 auto;
}

@font-face {
    font-family: "metal";
    src: url("media/SanguineFrost.ttf") format("truetype");
}

@font-face {
    font-family: "metal2";
    src: url("media/MetalGothic.ttf") format("truetype");
}

h1 {
    color: #000000;
    font-family: "metal";
    margin: 10px 15px 13px 13px;
}

h2 {
    font-size: 33px;
}

h3 {
    font-size: 34px;
}

h4 {
    font-size: 32px;
    margin: 20px 0px 5px 0px;
}

h2, h3 {
    margin: 10px 0;
}

h2, h3, h4 {
    color: #000000;
    font-family: "metal2";
    text-decoration: underline;
}

p {
    color: #000000;
    font-family: "metal2";
    font-size: 24px;
    margin: 15px auto;
    padding-top: 15px;
}

.dora {
    width: 300px;
    height: auto;
    border-radius: 10px;
}

.bio {
    color: #000000;
    font-family: "metal2";
    font-size: 32px;
    margin: 10px auto;
}

.list, .photo-list {
    color: #000000;
    font-family: "arial";
    margin: 12px 0;
    font-size: 24px;
    letter-spacing: 0.5px;
    list-style-type: disc;
    padding-left: 20px;

    li:hover {
        text-decoration: overline underline;
        text-decoration-color: #ff6600;
        transition: transform 0.1s;
        transform: scale(1.05);
    }
}

.album-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 0 10px black;
}

.photo-grid {
    column-count: 3;
    column-gap: 30px;
    padding: 20px;
}

.photo {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
    break-inside: avoid;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.photo img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: 0.2s;
}

.photo img:hover {
    transform: scale(1.05);
}

.photo p {
    margin-top: 10px;
    color: white;
    font-size: 18px;
}

.clip-grid {
    column-count: 2;          /* number of columns */
    column-gap: 30px;         /* spacing between columns */
    padding: 20px;
}

.clip-grid video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: #000;
}

.clip-grid video:hover {
    transform: scale(1.02);
    transition: 0.2s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

@media (max-width: 800px) {
    .clip-grid {
        column-count: 2;
    }
    .photo-grid {
        column-count: 3;
    }
}

@media (max-width: 500px) {
    .clip-grid, .photo-grid {
        column-count: 1;
    }
}

.top-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
}

.gordon {
    width: 100px;
    height: auto;
    margin-top: 20px;
    margin-left: 30px;
    margin-right: 70px;
    object-fit: cover;
    z-index: 1;
}

.glados {
    position: absolute;
    left: 62%;
    top: 100px;
    width: 180px;
    margin-top: 80px;
    pointer-events: none;
    z-index: 0;
}

.gordon, .glados {
    scale: 1.1;
}

.top-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 40px;
    padding: 15px 0;
    margin-bottom: 25px;

    font-size: 20px;
    font-weight: 700;

    background-color: #ff6600;
    position: relative;
    z-index: 10;
}

.top-nav a, .top-nav p {
    color: #000000;
    text-decoration: none;
    font-family: arial;
    transition: 0.2s ease;
}

.top-nav a:hover {
    opacity: 0.6;
}

.error {
    font-size: 50px;
    margin-bottom: 30px;
}

.steamsad {
    margin-top: 40px;
    height: 300px;
    width: auto;
}

.otherpages, .game-link, .clear {
    font-family: "arial";
    font-size: 20px;
    margin: 20px;
}

.shlorgames {
    font-family: "metal2";
    font-size: 50px;
    margin-top: 20px;
    margin-bottom: -10px;
}

canvas {
    border: solid;
    margin: auto;
    display: block;
}

.gamecanvas {
    height: 90vh;   /* tall */
    width: auto;    /* keep proportions */
}

b {
    color: rgb(112, 0, 0);
    u {
        text-decoration-color: #000000;
    }
}

.top-game {
    z-index: 1;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.top-game:hover {
    transition: 0.2s;
    transform: scale(1.03);
}

.otherpages {
    margin-left: 10px;
}

.otherpages, .game-link, .clear {
    padding: 10px 20px;
    margin-top: 5px;

    font-size: 16px;
    border: 2px solid #ac4500;
    border-radius: 6px;
    cursor: pointer;
    background-color: #ff6600;
    color: black;
    transition: 0.2s;
}

.otherpages:hover, .game-link:hover, .clear {
    background-color: #ff7418;
    transform: scale(1.08);
}

.otherpageshyperlink {
    text-decoration: none;
    color: #000000;
}

.game-link {
    text-decoration: none;
    color: #000000;
    padding: 20px;
    font-size: 30px;
    text-align: center;
    font-weight: 700;
}

.links {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 45px;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 5px;
    background-color: #ffffff;
    width: 80%;
    margin: 0 auto;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: 0px;
}

.decorations {
    position: relative;
    width: 100%;
    height: 0;
}

@keyframes floaty {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

#fire {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.deco {
    position: absolute;
    width: 80px;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    animation: floaty 5s ease-in-out infinite;
}

.deco1 {
    top: -300px;
    left: 28%;
}

.deco2 {
    top: -280px;
    right: 29%;

}

.deco3 {
    top: -400px;
    right: 34%;
}

.deco4 {
    top: -450px;
    left: 32%;
}

.deco5 {
    top: -170px;
    left: 35%;
}

.deco6 {
    top: -200px;
    right: 35%;
}

.deco7 {
    top: -490px;
    right: 28%;
}

.deco1 { animation-delay: 0s; }
.deco2 { animation-delay: 0.4s; }
.deco3 { animation-delay: 0.9s; }
.deco4 { animation-delay: 1.3s; }
.deco5 { animation-delay: 1.8s; }
.deco6 { animation-delay: 2.2s; }
.deco7 { animation-delay: 2.7s; }