@import url('vars.css');

@font-face {
    font-family: 'Pixel Comic Sans';
    src: url('../fonts/Comic Sans MS Pixel.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pixel Code';
    src: url('../fonts/PixelCode.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #242d2c;
    color: #eae0c2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #242d2c;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pixel-spinner {
    white-space: pre;
    display: inline-block;
    font-family: 'Pixel Code', monospace;
    font-size: var(--ascii-size);
    color: #eae0c2;
    text-align: center;
}

.dots::after {
    content: '.';
    animation: dots 3s steps(3, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

.head {
    width: 100%;
}

.main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 18vh;
}

.ascii-art {
    font-family: 'Pixel Code', sans-serif;
    font-size: var(--ascii-size);
    line-height: 1.2;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.chest {
    font-family: 'Pixel Code', sans-serif;
    font-size: var(--ascii-size);
    white-space: pre;
    display: inline-block;
    width: 25vw;
}

.ascii-art div {
    white-space: pre;
}

.desc {
    font-family: var(--text-font-family), sans-serif;
    background-color: #1a2221;
    border-radius: 15px;
    padding: 15px;
    font-size: var(--text-font-size);
    text-align: center;
    width: 50vw;
}

.icon {
    width: var(--icon-size);
    height: var(--icon-size);
}

@media (max-width: 600px) {
    :root {
        --text-font-size: 16px;
        --icon-size: 20px;
        --ascii-size: 12px;
    }

    .main {
        padding-bottom: 12vh;
    }

    .desc {
        width: 75vw;
    }
}

@media (max-width: 400px) {
    :root {
        --text-font-size: 12px;
        --icon-size: 20px;
        --ascii-size: 8px;
    }

    .main {
        padding-bottom: 8vh;
    }

    .projects {
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        min-height: 15vh;
    }

    .desc {
        width: 75vw;
    }
}