:root{
    --backgound-color: #020204;
    --text-color: #e9f1f0;
    --color-2nd: #133e50;
    --color-3rd: #B77358;
    --color-4th: #3FA4AE;
    --color-5th: #83abb0;
}

html{
    background: center url(/images/background.jpg);
    background-size: cover;
    background-color: #020204;
    background-attachment: fixed;
    height: 100vh;
    width: 100vw;
    font-family: 'Courier New', Courier, monospace;
}

.crtwrap::after {
    background: rgba(18,16,16,.1);
    opacity: 0;
    animation: flickering .15s infinite !important;
}

.crtwrap::after, .crtwrap::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    min-height: 250%;
    position: fixed;
    z-index: 2000;
    pointer-events: none;
    overflow: hidden;
}
.crtwrap::before {
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.125) 50%),linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: auto, auto;
    background-size: 100% 4px,4px 100%;
}

nav{
    background-color: var(--color-4th);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 5px ridge var(--color-2nd);
    border-radius: 50px;
}

nav ul{
    padding: 7px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style-type: none;
    justify-content: center;
    height: 100%;
    gap: 10px;
}

nav ul a{
    width: 10vw;
    text-decoration: none;
    height: 100%;
    background-color: var(--color-2nd);
    border-style: ridge;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: x-large;
}

nav ul a:hover{
    background-color: var(--color-4th);
}

a:visited{
    text-decoration: none;
    color: inherit;
}

a{
    color: inherit;
}

body{
    color: var(--text-color);
    width: 60vw;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

header{
    height: 50px;
}

main{
    display: grid;
    height:100%;
    grid-template-columns: 1fr 2fr 1fr;
}

aside{
    display: flex;
    flex-direction: column;
    height: 80vh;
    gap: 20px;
    margin: 5px;
}

.main-column{
    margin: 5px;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
}

.box{
    display: flex;
    flex-direction: column;
}

.box-title{
    border: 5px var(--color-4th);
    border-style: ridge ridge dotted;
    border-bottom-width: 2px;
    border-radius: 1em 1em 0% 0%;
    padding: 4px 5px;
    background-color: var(--color-2nd);
    animation-name: blink-border-color;
    animation-duration: 200ms;
    animation-iteration-count: infinite;    
}

.box-body{
    border: 5px var(--color-4th);
    padding: 4px 5px;
    background-color: var(--color-2nd);
    border-style: none ridge ridge;
    flex-grow: 1;
    animation-name: blink-border-color;
    animation-duration: 200ms;
    animation-iteration-count: infinite;
}


.box-standalone{
    border: 5px ridge var(--color-4th);
    background-color: var(--color-2nd);
}

.ps_logo{
    position: fixed;
    width: auto;
    height: 100vh;
    left: 0px;
    z-index: 9999;
}

.img_fill{
    width: 100%;
    display: block;
}

.epsi{
    height: fit-content;
}

.webrings{
    height: 30vh;
}

.img_88x31{
    height: 20vh;
}

.update_log{
    flex: auto;
}

.project{
    border: 2px var(--color-4th);
    border-style: dotted;
    border-radius: 10px;
    padding: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 70% 1fr;
    text-decoration: none;
}

.project:hover{
    background-color: var(--color-4th);
}

.project h4{
    margin-top: 0;
    margin-bottom: 2px;
    grid-column: 1;
}

.project div{
    grid-column: 1;
}

.project img{
    grid-column: 2;
    grid-row: 1 / 3;
}

@keyframes blink-border-color{
    0% {
        border-color: var(--color-4th);
    }
    50% {
        border-color: var(--color-5th);
    }
    100% {
        border-color: var(--color-4th);
    }    
}