body {
    margin: 0;
    background-color: #1f1f1f;
    color: #ebebeb;
    font-family: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.pane {
    height: 100vh;
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-width {
    width: 100%;
    height: 100vh;
    display: grid;
}

.left {
    float: left;
}

.right {
    float: right;
}

.first {
    font-weight: 700;
}

.last:after {
    position: relative;
    left: -15px;
    content: "."
}

.first, .last {
    font-size: 5em;
    text-transform: lowercase;
}

.contents {
    display: block;
    padding: 0;
}

::-moz-selection { 
    background-color: #ebebeb;
    color: #1f1f1f;
}

::selection { 
    background-color: #ebebeb;
    color: #1f1f1f;
}

.icon {
    display: inline-block;
    padding: 5px;
    user-select: none;
    text-decoration: none;
    position: relative;
    bottom: 0;
    color: #ebebeb;
    transition: 400ms ease all;
}

.icon svg {
    fill: white;
    width: 42px;
    transition: 400ms ease all;
}

.card_icons svg {
    fill: white;
    width: 20px;
    padding: 0 2px;
}

.down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
}

h2 {
    font-size: 3em;
    display: block;
    text-align: center;
    width: 100%;
    margin: max(2.5%, 20px) 0 0 0;
}

/* Cards */
img {
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    vertical-align: middle;
    background-color: #0e0e0e;
}
.cards {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.cards_item {
    position: relative;
    bottom: 0;
    width: 100%;
    display: -webkit-box;
    display: flex;
    padding: 1rem;
    transition: 400ms ease all;;
}
.card {
    border-radius: 0.25rem;
    box-shadow: 0 0 10px 1px #0e0e0e;
    display: -webkit-box;
    display: flex;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    text-decoration: none;
    color: #ebebeb;
    user-select: none;
}
.card_content {
    display: -webkit-box;
    display: flex;
    -webkit-box-flex: 1;
            flex: 1 1 auto;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-direction: column;
    padding: 1rem;
}
.card_image {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    overflow: hidden;
    position: relative;
}
.card_title {
    color: #696969;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.card_text {
    -webkit-box-flex: 1;
            flex: 1 1 auto;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Tooltips */

.i {
    position: relative;
    margin: 5px 0;
}

.text {
  visibility: hidden;
  opacity: 0;
  background-color: #ebebeb;
  color: #1f1f1f;
  text-align: center;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  width: 65px;
  left: 0;
  transform: translate(-20px, 0);
  font-size: 0.8rem;
  transition: 400ms ease all;
}

.text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ebebeb transparent transparent transparent;
}

.i:hover .text {
    visibility: visible;
    opacity: 1;
}

a:focus {
    outline-color: blue;
    outline-style: solid;
}


/* Hover effects disabled on mobile */
@media (hover: hover) and (pointer: fine) {
    
    .cards_item:hover {
        bottom: 10px;
    }
    
    .icon:hover {
        bottom: 10px;
    }
    .icon:hover svg {
        fill: #5ba8a1;
    }
}

@media screen and (max-width: 992px) {
    .pane {
        width: 100%;
    }
    .first, .last {
        font-size: 3em;
    }
    .contents {
        text-align: center;
    }
}

@media (min-width: 40rem) {
    .cards_item {
      width: 50%;
    }
    .card_image::before {
      padding-top: 66.6%;
    }
}
@media (min-width: 56rem) {
    .cards_item {
      width: calc((100%/4) - 32px);
    }
}