@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Slab&family=Shadows+Into+Light');

body {
    margin: 0;
    background-size: 24px 24px;
    background-image: linear-gradient(to right, #777 1px, transparent 1px), linear-gradient(to bottom, #777 1px, transparent 1px);
    background-color: #111;
    font-family: 'Roboto', sans-serif;
}

::selection {
    color: #f4f4f4;
    background: #024db1;
  }

.bg-near-white {
    background-color: #f4f4f4;
}

.near-black {
    color: #111;
}

.wrapper {
    padding: 16px;
    display: grid;
    grid-template:
		". header about"
		". main about"
		". footer ."
		/ 100px 1fr 232px;
    gap: 32px;
}

.header {
	grid-area: header;
    width: 400px;
    justify-self: center;
}

.main {
	grid-area: main;
    width: 400px;
    justify-self: center;
}

.about {
	grid-area: about;
    height: fit-content;
}

.about h4, nav {
    padding-left: 16px;
    padding-right: 16px;
}


.about-bg {
    background-color: #ffd001;
    height: 128px;
    margin-bottom: 80px;
}

.profile {
    position: relative;
    left: 44px;
    right: 44px;
    top: 64px;
    bottom: 0;
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 128px;
    border: 8px solid #f4f4f4;
}

.footer {
	grid-area: footer;
    text-align: center;
    color: #024db1;
    border: 1px solid #024db1;
    font-size: 1.2em;
    font-weight: 800;
    background-color: white;
}

.title {
    transform: rotate(-12deg);
    font-size: 3.8em;
    font-weight: 800;
    line-height: 1em;
}

mark {
    background-color: #024db1;
    color: #f4f4f4;
    
}

.border {
    border: 2px solid #111;
}

.card {
    position: relative;
    padding: 16px;
    margin-bottom: 32px;
    background-color: #f4f4f4;
}

.card:hover {
    bottom: 3px;
}

.card-shadow {
    box-shadow: 8px 8px #111;
}

img {
    border-radius: 2px;
}

.polaroid {
    border-radius: 2px;
    border: 8px solid #f4f4f4;
    border-bottom: 40px solid #f4f4f4;
}

.polaroid-text {
    font-family: 'Shadows Into Light', cursive;
}

.img-med {
    height: 128px;
    width: 128px;
}

.img-big {
    height: 256px;
    width: 256px;
}

p {
    font-family: 'Roboto Slab', serif;
}

.text-red {
    color: #c42b2d;
    font-weight: bold;
}

nav ul {
    list-style: none;
}

nav li {
    padding: 2px;
}

nav i {
    font-size: 24px;
    vertical-align: middle;
}

nav a {
    color: #024db1;
    text-decoration: none;
    transition: all .3s ease;
    position: relative;
    font-size: 1.4em;
}

nav a:hover::before {
    transform-origin: bottom left;
    transform: scaleX(1);
}

nav a::before {
    content: "";
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    height: 3px;
    background-color: #f649a7;
    transform-origin: bottom right;
    transform: scaleX(0);
    transition: transform .5s ease;
    overflow: hidden;
}

nav a:active, a:hover {
    outline-width: 0;
}