* {
    box-sizing: border-box;
}

body {
    background: #cc979f;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

article, aside, details, figcaption, figure, main, footer, header, nav, section, summary {
    display: block;
}

.container {
    position: relative;
    margin: 0;
    padding: 0;
    max-height: 100%;
    max-width: 100%;
    min-height: inherit;
    justify-content: center;
    vertical-align: middle;
}

.row {
  margin: 0 10%;
  justify-content: center;  
}

.page-wrapper {
  margin: 0;
}

nav.navbar {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    padding: 10px;
}


nav.navbar a.nav-link {
    text-decoration: none;
    text-align: center;
    color: #fff;
}

nav.navbar li a:hover {
    color: pink;
}

nav.navbar li a:active {
    color: pink;
}

nav.navbar a.navbar-brand {
    margin: 0;
    padding: 0 5px;
}

nav.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='pink' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

nav.custom-toggler .navbar-toggler:focus {
  box-shadow: 0 0 0 0.12rem pink;
} 

section#video-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

video#home-video {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div#home-content {
    text-align: center;
    position: absolute;
    bottom: 40%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    width: 100%;
    padding: 40px 15px;
}

aside a#home-button {
    display: inline-block;
    width: 200px;
    max-width: 100%;
    font-size: 18px;
    padding: 10px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    border-radius: 20px;
    text-decoration: none;
    vertical-align: middle;
    transition: all 0.5s;    
}

a#home-button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

a#home-button:hover {
    background: pink;
    color: black;
}

a#home-button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

a#home-button:hover span {
    padding-right: 20px;
}

a#home-button:hover span:after {
    opacity: 1;
    right: 5px;
}

/*Header*/

header {
  vertical-align: middle;
  position: relative;
}
header img {
  width: 100%;
  max-width: 100%;
  max-height: 450px;
  object-fit: cover;
  padding: 0;
}

header h1 {
  color: #cc979f;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/*Categories page*/
main {
    margin: 5% 0;  
}

img {
  display: block;
  margin: auto;
}

figure.categories {
    position: relative;
    padding: 2%;
    margin: 0;
}

figcaption.categories {
    color: white;
    padding: 2px;
    font-size: 200%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

figure.categories h2 {
    font-style: italic;
    font-size: 150%;
    margin: 0;
}

figure.categories img {
    display: block;
    vertical-align: middle;
    filter: grayscale(0.5);
    max-width: 100%;
    width: 1000px;
    height: 100%;
    max-height: 400px;
    margin: auto;
    background-image: linear-gradient(90deg, #fee8f4 50%, transparent 50%), linear-gradient(90deg, #fee8f4 50%, transparent 50%), linear-gradient(0deg, #fee8f4 50%, transparent 50%), linear-gradient(0deg, #fee8f4 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 15px 4px, 15px 4px, 4px 15px, 4px 15px;
    background-position: left top, right bottom, left bottom, right top;
    padding: 5px;
    object-fit: cover;
}

figure.categories:hover img {
    animation: border-dance 1s infinite linear;  
}

@keyframes border-dance {
    0% {
      background-position: left top, right bottom, left bottom, right top;
    }
    100% {
      background-position: left 15px top, right 15px bottom , left bottom 15px , right   top 15px;
    }
  }
}

figure.categories {
    background:#FFF;
}

figure.categories:hover img {
     opacity:0.8;
}

figure.categories:hover h2{
    transform: scale(1.3);
}

/*Child categories*/
.child-category {
	column-width: 400px;
	column-gap: 15px;
  width: 90%;
	max-width: 100%;
	margin: 5% auto;
  padding: 0 5%;
}

.child-category figure {
	background: #fee8f4;
	border: 2px solid #fcfcfc;
	box-shadow: 0 1px 2px rgba(34, 25, 25, 0.4);
	margin: 0 2px 15px;
	padding: 15px;
	padding-bottom: 10px;
	transition: opacity .4s ease-in-out;
  display: inline-block;
  column-break-inside: avoid;
}

.child-category img {
	width: 100%;
  height: auto;
	border-bottom: 1px solid #ccc;
	padding-bottom: 15px;
	margin-bottom: 5px;
}

.child-category figure figcaption {
  text-align: center;
  font-size: .9rem;
	color: #444;
  line-height: 1.5;
}

.child-category:hover figure:not(:hover) {
	opacity: 0.4;
}

/* Footer */

footer {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  margin: 0;
  color: white;
  opacity:0.9;
  text-align: center;
}

footer p {
  padding: 30px 10px 10px 10px;
  line-height:1.6;
  margin-bottom: 0;
  font-size: 120%;
}

.social ul {
  display: flex;
  justify-content: center;
  vertical-align: middle;
  margin: 0 20%;
  padding: 10px 20px 30px;
  list-style: none;
  transform: skew(-25deg);
}

.social ul li {
  border-right: 5px solid white;
  color: white;
  font-weight: bolder;
  font-size: calc(20px + .8vw);
}

.social ul li:last-child {
  border-right: none;
}

.social ul li:hover {
  opacity: 0.7;
}
.social ul li a {
  display: inline-block;
  padding: 0 1rem;
  color: inherit;
  text-decoration: none;
  transform: skew(25deg);
}

/* Landing page content */
.landing-page-wrapper h1 {
    text-align: center;
    color: #151415;
    width: 800px;
    max-width: 66%;
    margin: auto;
    padding-bottom: 3%;
}

.landing-page-wrapper h2 {
  font-size: 150%;
  text-indent: 2rem;
}

.landing-page-wrapper p {
  font-size: calc(16px + .3vw);
  text-indent: 2rem;
}

.landing-page-wrapper img {
	width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-page-content-wrapper {
  background: #fee8f4;
  border-radius: 50px;
  padding: 3%;
  text-align: justify;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.landing-page-content:nth-child(even) {
  flex-direction: row-reverse;
}

.landing-page-content-wrapper div {
  padding: 2%;
}


.landing-page-content div:nth-child(odd) {
  border-bottom: 1px white solid;
}

.landing-page-content div:nth-child(even) {
  border-top: 1px white solid;
}

/* About page*/
img#avatar {
  position: sticky;
  top: 5%;
  max-width: 100%;
  height: auto;
}

#divider {
  height: 1.5rem;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  margin-bottom: 16px;
}

/* Media */

@media only screen and (min-width: 768px) {
    div#home-content {
        bottom: 10%;
        right: 10%;
        width: 40%;
        border-radius: 20px;
    }
    
    .social ul li a {
      padding: 0 2.5rem;
    }
}
    

@media only screen and (min-width: 992px) {

    .landing-page-content div:nth-child(odd) {
      border-bottom: none;
    }

    .landing-page-content div:nth-child(even) {
      border-top: none;
    
    }
    .landing-page-content:nth-child(odd) div:first-child {
      border-right: 1px white solid;
      border-bottom: 2px white solid;
    }
    
    .landing-page-content:nth-child(odd) div:last-child {
      border-left: 1px white solid;
      border-bottom: 2px white solid;
    }
    
    .landing-page-content:nth-child(even) div:first-child {
      border-left: 1px white solid;
      border-bottom: 2px white solid;
    }
    
    .landing-page-content:nth-child(even) div:last-child {
      border-right: 1px white solid;
      border-bottom: 2px white solid;
    }
}


