article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
  display: block;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
button,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img,
fieldset {
  border: 0;
}
address,
caption,
cite,
code,
dfn,
em,
strong,
th {
  font-style: normal;
  font-weight: normal;
}
ol,
ul {
  list-style: none;
}
th,
caption {
  text-align: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
  word-wrap: break-word;
}
q:before,
q:after {
  content: '';
}
a:hover,
a:active {
  outline: 0;
}
img {
  border: 0;
  max-width: 100%;
  vertical-align: middle;
  -ms-interpolation-mode: bicubic;
}
input {
  vertical-align: middle;
}
input,
button,
textarea {
  font-size: 12px;
  outline: none;
  resize: none;
}
input,
button {
  *overflow: visible;
  line-height: normal;
}
input::-moz-focus-inner,
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}
input[type="search"] {
  box-sizing: content-box;
  -webkit-appearance: textfield;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
textarea {
  overflow: auto;
  vertical-align: top;
}
html {
  font-family: 'Ubuntu', Arial, sans-serif;
}
body {
  background: #eee;
}
h1 {
  margin-bottom: 20px;
  padding: 30px 0;
  text-align: center;
  font-size: 32px;
  text-transform: uppercase;
  background-color: #000;
  color: #fff;
}
.main {
  width: 960px;
  margin: 0 auto;
}
.main .category {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.main .category a {
  position: relative;
  margin: 0 20px 30px;
  width: 200px;
  height: 100px;
  flex: 1 0 auto;
  line-height: 100px;
  color: #000;
  border: 1px solid #000;
  border-radius: 2px;
  font-size: 22px;
  box-sizing: border-box;
  list-style-type: none;
  text-decoration: none;
  text-transform: capitalize;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
}
.main .category a:hover {
  background: #ddd;
  color: #333;
  font-weight: 800;
  border-radius: 5px;
  transform: scale(1.1);
}
.main .category a:hover::before {
  display: none;
}
.main .category a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 10px solid #000;
  border-right: 10px solid transparent;
}
#footer {
  text-align: center;
}
#footer a,
#footer a:visited{
  color: #333;
}
#footer a:hover{
  color: #3a86f0;
}
@media screen and (max-device-width: 720px) {
  h1 {
    font-size: 4em;
  }
  .main {
    width: 80%;
  }
  .main .category a {
    margin: 30px 0;
    width: 100%;
    height: 200px;
    line-height: 200px;
    font-size: 4em;
    text-indent: 1.5em;
    border-radius: 0;
  }
  .main .category a:hover {
    font-size: 5em;
    border-radius: 100px;
  }
  .main .category a:hover::before {
    top: 70px;
    left: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
  }
  .main .category a::before {
    width: 50px;
    height: 100%;
    background: #000;
  }
  #footer {
    margin: 30px auto;
    font-size: 3em;
  }
}
@font-face {
  font-family: 'JosefinSans';
  font-style: normal;
  font-weight: normal;
  src: url("./fonts/JosefinSans-Regular.ttf") format('truetype');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: normal;
  src: url("./fonts/Ubuntu-Regular.woff") format('woff');
}

