body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    font-family: 'Courier New', Courier, monospace;
}

h1 {
    font-size: 8vw;
    margin: 3vmin;
    text-align: center;
}

h2 {
    font-size: 8vmin;
    margin: 2vmin;
    text-align: center;
}

h3 {
    font-size: 2vw;
    margin: 1vmin;
    text-align: center;
}

p {
    font-size: 2vmin;
    font-weight: bold;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh
}

#projects {
    display: grid;
    gap: 2.5vmin;
    padding: 5vmin;
}

#projects a {
    display: flex;
    flex-direction: column;
    border-radius: 5vmin;
    border: 1vmin solid black;
    overflow: hidden;
    text-decoration: none;
    color: black;
    aspect-ratio: 1;
    transition: transform 0.25s ease-in;
}

#projects a:hover {
    transform: scale(1.075) rotate(-2.5deg);
    transition: transform 0.4s ease-out;
}

#projects a div {
    height: 65%;
    background-size: cover;
    background-position: center;
}

#projects a p {
    height: 35%;
    background-color: white;
    border-top: 1vmin solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1vmin;
    text-align: center;

    margin: 0
}

#contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form {
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form *, form *::placeholder, form *:focus {
    display: block;
    border-radius: 5vmin;
    border: 1vmin solid black;
    color: black;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 3vmin;
    line-height: 5vmin;
    padding: 2vmin;
    margin: 2vmin 0;
    outline: none;
}

form *::placeholder {
    color: rgba(0,0,0,0.5);
    font-style: italic;
    text-align: center;
}

#name, #email {
    width: 75%
}

#message {
    width: 100%;
    height: 15vh;
}

#send {
    width: 40%;
    background-color: black;
    color: white;
    font-size: 4vmin;
}

@media (max-aspect-ratio: 2/3) {
    h1 {
        font-size: 10vw;
    }
    h3 {
        font-size: 4vw
    }
    #projects {
        grid-template-columns: repeat(1, 1fr);
    }
    #projects a p {
        font-size: 6vw;
    }
    #name, #email, #message {
        margin: 3vmin 0;
        width: 100%;
    }
    #send {
        font-size: 6vmin;
    }
}

@media (min-aspect-ratio: 2/3) and (max-aspect-ratio: 1/1) {
    h3 {
        font-size: 3vw
    }
    #projects {
        grid-template-columns: repeat(2, 1fr);
    }
    #projects a p {
        font-size: 3vw;
    }
}

@media (min-aspect-ratio: 1/1) {
    #projects {
        grid-template-columns: repeat(3, 1fr);
    }
    #projects a p {
        font-size: 1.75vw;
    }
}