@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Loop&display=swap');

:root {
    --primary-font: 'Roboto', sans-serif;
    --primary-color: #222831;
}

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

/* Global styles */

li {
    list-style-type: none;
    font-family: var(--primary-font);
}

a {
    text-decoration: none;
    color: #333;
}

/* Classes */

/* Header */

.header {
    height: 70px;
    background: var(--primary-color);
}

.navbar {
    height: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar > ul {
    display: inherit;
    gap: 20px;
    font-size: 18px;
}

.navbar a {
    color: #fff;
}

.navbar > h1 {
    font-family: 'Indie Flower', cursive;
    font-size: 30px;
}

.container {
    max-width: 1200px;
    margin: 10px auto;
}

.box {
    position: relative;
    margin: 0 auto;
    width: 75%;
    height: 500px;
}

img {
    height: 100%;
    width: 100%;
}

.screen {
    position: absolute;
    left: 134px;
    top: 60px;
    display: block;
    width: 632px;
    height: 297px;
    background: #fff;
    z-index: 1;
}

.wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.typing-demo {
    width: 24ch;
    animation: typing 2s steps(22), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    font-family: monospace;
    font-size: 2em;
    color: #00ADB5;
}

.w1 {
    width: 35ch;
}

.techs {
    text-align: center;
}

.techs > h2 {
    font-family: var(--primary-font);
    margin-bottom: 30px;
}

.tech {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
}

.tech > img {
    width: 55px;
    height: 55px;
}

.contents {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 50px;
}

.content {
    text-align: center;
}

.content > h2 {
    font-family: var(--primary-font);
    margin: 30px 0;
}

.content a button {
    width: 200px;
    height: 50px;
    font-family: 'Zen Loop', cursive;
    font-size: 25px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1.5px;
    padding: 10px;
    outline: none;
}

.footer {
    height: 100px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.footer h1 a {
    color: #fff;
    font-size: 18px;
    font-family: 'Indie Flower', cursive;
}

.footer > ul {
    display: inherit;
    gap: 20px;
}

.footer img {
    width: 48px;
    height: 48px;
}

@keyframes typing {
    from {
        width: 0
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

@media only screen and (min-width: 1225px) {
    .box {
        position: relative;
        margin: 0 auto;
        width: 75%;
        height: 500px;
    }

    .box img {
        display: block;
    }
    
    img {
        height: 100%;
        width: 100%;
    }
    
    .screen {
        position: absolute;
        left: 134px;
        top: 60px;
        display: block;
        width: 632px;
        height: 297px;
        background: #fff;
        z-index: 1;
    }
    
    .wrapper {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .typing-demo {
        width: 24ch;
        animation: typing 2s steps(22), blink .5s step-end infinite alternate;
        white-space: nowrap;
        overflow: hidden;
        border-right: 3px solid;
        font-family: monospace;
        font-size: 2em;
        color: #00ADB5;
    }
    
    .w1 {
        width: 35ch;
    }
}

@media only screen and (max-width: 1225px) {
    .box img {
        display: none;
    }

    .screen {
        left: 80px;
        top: 60px;
        width: 500px;
    }
}

@media only screen and (max-width: 900px) {
    .box img {
        display: none;
    }

    .screen {
        left: 0px;
        top: 60px;
        width: 500px;
    }

    .typing-demo {
        font-size: 1.8em;
    }
}

@media only screen and (max-width: 600px) {
    .navbar {
        flex-direction: column;
    }

    .box img {
        display: none;
    }

    .box {
        height: 300px;
    }

    .screen {
        left: 0;
        top: 0;
        width: 300px;
    }

    .contents {
        flex-direction: column;
    }

    .typing-demo {
        font-size: 1em;
    }
}

@media only screen and (max-width: 350px) {
    .navbar {
        flex-direction: column;
    }

    .box img {
        display: none;
    }

    .box {
        height: 300px;
    }

    .screen {
        left: 0;
        top: 0;
        width: 200px;
    }

    .contents {
        flex-direction: column;
    }

    .typing-demo {
        font-size: 0.8em;
    }
}