@font-face {
    font-family: "Pixel NES";
    src: url("Pixel_NES.otf");
}

@font-face {
    font-family: "undertale";
    src: url("undertale.otf");
}


body{
    font-family: "RussianGothic", "MS UI Gothic", "NEC_APC3", Tahoma;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6), 
        rgba(0, 0, 0, 0.6)),
        url(bg.GIF);
    background-size: contain;
    color: #e6e6e6;
    margin: 0;
    padding: 0;
    background-attachment: fixed;
}

#wrapper{
    width: 50%;
    margin: 1.5vw auto;
    background: #252525;
    opacity: 0.9;
    border: 1px solid #333333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

header{
    background: linear-gradient(to bottom, #2c2c2c, #151515);
    color: #ffffff;
    text-align: center;
    padding: 1.5vw 1vw 1.2vw;
    border-bottom: 2px solid #6b6b6b; 
}

header h1 {
    font-family: "Pixel NES";
    font-size: 2.6em;
    margin: 0;
    letter-spacing: 1px;
    color: #f1f1f1;
}

header p {
    margin-top: 8px;
    font-size: 1.05em;
    color: #9da3a8;
    font-style: italic;
}

nav {
    background: #111;
    border-bottom: 1px solid #333;
    text-align: center;
    padding: 10px 0;
}

nav a {
    text-decoration: none;
    color: #bbb;
    margin: 0 25px;
    padding: 5px 10px;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: #007EB4;
    text-shadow: 0 0 6px #007EB4;
}

main {
    padding: 30px 40px;
}

h2 {
    font-family: "Pixel NES";
    color: #007EB4;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.intro img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 2px solid #0039b4;
    box-shadow: 0 0 10px rgba(35, 152, 206, 0.4);
    align-self: auto;
}

.intro p {
    max-width: 600px;
    color: #ccc;
    line-height: 1.6em;
}

.projects a {
    display: block;
    padding: 6px 0;
    color: #007EB4;
    text-decoration: none;
    transition: color 0.2s;
}

.projects a:hover {
    color: #fff;
}

.contact a {
    color: #007EB4;
    text-decoration: none;
}

.contact a:hover {
    color: #fff;
}

footer {
    background: #0c0c0c;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}

.banner {
    background: linear-gradient(to right, #0B1B32, #007EB4);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    letter-spacing: 0.8px;
    font-size: 0.9em;
    border-bottom: 1px solid #333;
    text-shadow: 1px 1px 0 #000;
}

a:hover {
    text-decoration: underline wavy #007EB4;
}

@media (max-width: 700px) {
    #wrapper {
        width: 95%;
        margin: 20px auto;
    }

    .intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intro img {
        margin-bottom: 10px;
    }
}

li{
    margin: 0.5vw;
}

h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.projects h3{
    font-size: 1.5em;
    font-family: 'undertale', monospace;
    font-weight: normal;
}

.projects p{
    padding-inline: 2vw;
    font-size: 1em;
}

a{
    color: #007EB4;
}

.centerdiv{
    display: table;
    margin: 0 auto;
    border-style: none;
    align-content: center;
}

.centerdiv img{
    border-radius: 5px;
    margin-left: 15px;
}

.crt {
    text-shadow: 0 0 0 currentColor, 0.5px 0.5px rgba(255, 0, 255, 0.3),
        -1px -1px rgba(0, 255, 255, 0.2);
    position: relative;
    &:before,
    &:after {
        content: "";
        transform: translateZ(0);
        pointer-events: none;
        mix-blend-mode: overlay;
        position: absolute;
        height: 100%;
        width: 100%;
        left: 0;
        top: 0;
        z-index: 1;
    }

    &:before {
        background: repeating-linear-gradient(
            var(--crt-red) 0px,
            var(--crt-green) 1px,
            var(--crt-blue) 3px
        );
    }

    &:after {
        background: repeating-linear-gradient(
            90deg,
            var(--crt-red) 1px,
            var(--crt-green) 2px,
            var(--crt-blue) 3px
    );
  }
}

:root {
    --crt-red: rgb(218, 49, 49);
    --crt-green: rgb(112, 159, 115);
    --crt-blue: rgb(40, 129, 206);
}
