:root {
    --bar-height: 100px;
    --main-color: #f2a900;
    --hello-size: 26px;
    --desc-size: 40px;
}

html, body {
    margin: 0;
}

body {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
    color: #ffffff;
    background: #0d0f11;
    min-height: 100vh;
}

.container {
    height: 100vh;
    display: grid;
    grid-template-rows: var(--bar-height) 1fr var(--bar-height);
    grid-template-columns: 1fr;
    padding: 0 20%;
}

.header {
    height: 100%;
    display: flex;
    align-items: center;
}

.body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.footer {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.dot {
    color: var(--main-color);
}

.typewriter {
    margin: 0 0 20px;
    overflow: hidden;
    font-size: var(--hello-size);
    border-right: 3px solid var(--main-color);
    white-space: nowrap;
    letter-spacing: .15em;
    animation: typing 2.5s steps(13), blink-caret .9s step-end infinite;
}

.desc {
    margin: 0;
    font-size: var(--desc-size);
    color: var(--main-color);
}

.icon {
    background-size: 100% auto;
    width: 32px;
    height: 32px;
    border-radius: 25%;
}

.icon:hover {
    opacity: 0.8
}

.github {
    background-image: url("../img/github.png");
}

.linkedin {
    background-image: url("../img/linkedin.png");
}

.mail {
    background-image: url("../img/mail.png");
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: var(--main-color);
    }
}

@media screen and (max-width: 960px) {
    :root {
        --desc-size: 30px;
    }
}

@media screen and (max-width: 720px) {
    :root {
        --hello-size: 18px;
        --desc-size: 24px;
    }
}

@media screen and (max-width: 580px) {
    :root {
        --hello-size: 14px;
        --desc-size: 20px;
    }
}
