html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Calibri, Arial, "Times New Roman", sans-serif;
}

h1, h2 {
    text-align: center;
}

ul {
    list-style: none;
}

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

.nav {
    background-color: #686868;
    color: #fff;
    display: flex;
    justify-content: right;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid black;
}

@media (max-width: 50em) {
    .nav {
        justify-content: center;
    }
}

.nav-list {
    display: flex;
}

.nav-list a {
    padding: 2rem;
}

.nav-list a:hover {
    background-color: #000;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

#square {
    background-color: #690420;
    width: 50px;
    height: 50px;
}

.hidden {
    visibility: hidden;
}
#square:hover {
    animation: roll linear 2s infinite;
}
#square:hover + .hidden {
    visibility: visible;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 4rem;
    margin: 0 auto 4rem auto;
    max-width: 960px;
}

.project-tile {
    padding: 10px;
    margin: 10px;
    border: 2px solid black;
}

.project-tile:hover {
    border-color: #420069;

}

.contact-links {
    display: flex;
    justify-content: center;
}

.contact-links a {
    padding: 20px;
}

.fancy-1 {
    display: inline-block;
}
.fancy-1:hover {
    color: #690420;
    text-shadow: 1px 1px #420069;
}


.fancy-2:hover {
    font-family: Wingdings, sans-serif;
}

.contact-links a:hover {
    font-size: 2rem;
}

@keyframes roll {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}