/*
*	Kauã Melo - 2021
*	www.kauamelo.com
*/

/* Loading the font */
@font-face {
  font-family: IBMPlexMono_Regular;
  src: url("../fonts/IBM_Plex_Mono/IBMPlexMono-Regular.ttf");
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* ------- NAME PRONUNCIATION  --------- */

span#pronunciation_sentence_span {
  display: none;
}

#pronunciation_div {
  position: fixed;

  /* Occupying the whole screen */
  top: 0;
  left: 0;
  /* width: 100%;
  height: 100%; */
  width: 10px;
  height: 10px;

  background-color: black;
  z-index: 10;

  /* To centralize the images inside the div vertically */
  display: flex;
  justify-content: center;
  align-items: center;

  /* It's hidden initially. We show it through javascript. */
  visibility: hidden;

  /* To animate the border when hovering over the X */
  -webkit-transition: left 0.6s ease-in-out, top 0.6s ease-in-out,
    height 0.6s ease-in-out, width 0.6s ease-in-out;
  -moz-transition: left 0.6s ease-in-out, top 0.6s ease-in-out,
    height 0.6s ease-in-out, width 0.6s ease-in-out;
  -ms-transition: left 0.6s ease-in-out, top 0.6s ease-in-out,
    height 0.6s ease-in-out, width 0.6s ease-in-out;
  -o-transition: left 0.6s ease-in-out, top 0.6s ease-in-out,
    height 0.6s ease-in-out, width 0.6s ease-in-out;
  transition: left 0.6s ease-in-out, top 0.6s ease-in-out,
    height 0.6s ease-in-out, width 0.6s ease-in-out;
}

#pronunciation_img {
  position: relative;
  width: 100%;
}

#cow_img {
  position: fixed;

  left: 10px;
  opacity: 0;
}

#one_img {
  position: fixed;

  right: 10%;
  opacity: 0;
}

#closing_sign {
  position: fixed;

  top: 5px;
  right: 5px;
  width: 25px;

  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 35px;

  padding: 7px;

  /* To animate the border when hovering over the X */
  -webkit-transition: border 0.2s ease-in-out;
  -moz-transition: border 0.2s ease-in-out;
  -ms-transition: border 0.2s ease-in-out;
  -o-transition: border 0.2s ease-in-out;
  transition: border 0.2s ease-in-out;
}

#closing_sign:hover {
  cursor: pointer;

  border: 1px solid white;
}

#swiping_GIF {
  position: fixed;

  /* width: 100%; */
  width: 400px;
  max-width: 100%;

  bottom: 0;

  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -ms-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}
/* ----------------------------------- */

/* ------------ GIF STUFF ------------ */
#gif {
  margin: 0;
  z-index: -1;
}

/* The libgif-js library creates a canvas to put the GIF in.
	 It automatically sets its dimensions. Here we make sure we
	 make the GIF resize to fit the container. Without this we get
	 a weird result :/ */
canvas {
  /* Make the img/gif adjust its size to its container's dimensions */
  max-width: 100%;
  max-height: 100%;

  /* removes the space below the image */
  display: block;
}

/* ----------------------------------- */

#button_for_iOS {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;

  background-color: white;
  border: 1px solid black;
  box-shadow: 3px 3px 0px rgb(0, 0, 0);
}

#body_container {
  width: 100%;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#central_container {
  width: 720px;

  /* Making the text move a bit to the top so the hammock can
	   go over it a bit. */
  margin-top: -40px;

  /* Don't allow text to get out of the div */
  word-wrap: break-word;

  /* transform: rotateZ(30deg); */
  -webkit-transition: transform 2s ease-in-out;
  -moz-transition: transform 2s ease-in-out;
  -ms-transition: transform 2s ease-in-out;
  -o-transition: transform 2s ease-in-out;
  transition: transform 2s ease-in-out;
}

/* -------------- TEXT -------------- */
div#description {
  opacity: 0;
  visibility: hidden;

  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -ms-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}

p {
  font-family: "IBMPlexMono_Regular", monospace;
  color: rgb(80, 80, 80);
  color: black;
  line-height: 1.5;
  font-size: 1rem;
}

p#social_media_accounts {
  margin-top: 25px;

  /* So we have the 'dots' in red as well */
  color: rgb(239, 0, 80);
}

a,
p#email {
  color: rgb(239, 0, 80);

  text-decoration: none;
}

a.underline:hover {
  text-decoration: underline;
}

a#pronunciation_trigger:hover {
  cursor: pointer;
}
/* ---------------------------------- */

/* ----------- GALLERY ---------------*/
#gallery {
  margin-top: 80px;
  margin-bottom: 80px;

  /* border: 2px solid black; */
}

#gallery_grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: 20px;
  gap: 30px 21px;
}

.project_cell {
  /* border: 1px solid purple; */
}

.project_thumbnail_container {
  /* border: 1px solid red; */

  -webkit-transition: box-shadow 0.1s ease-in;
  -moz-transition: box-shadow 0.1s ease-in;
  -ms-transition: box-shadow 0.1s ease-in;
  -o-transition: box-shadow 0.1s ease-in;
  transition: box-shadow 0.1s ease-in;
}

a.projectLink:hover > div.project_thumbnail_container {
  box-shadow: 0px 0px 10px rgb(100, 100, 100);
}

a.projectLink:hover div.project_title > p {
  color: black;
}

.addBorder {
  border: 1px solid rgb(220, 220, 220);
}

.project_thumbnail {
  width: 100%;

  /* This removes the white space below the image/video */
  display: block;
}

.project_title {
  /* background-color: lightgreen; */
  padding-top: 5px;
}

.project_title p {
  margin: 0;
  padding: 0;

  color: rgb(160, 160, 160);

  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

/* ---------------------------------- */

/* ------------- FOOTER ------------- */
footer {
  width: 100%;
}

footer p {
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: black;
}

footer a:hover {
  text-decoration: none;
}
/* ---------------------------------- */

/* ----------------------------------------------------------------- */

/******* When the screen reaches the width of the
  central container. But this is still not a phone *******/
@media screen and (max-width: 720px) {
  #central_container {
    width: 95%;
  }
}

/*******    Small screens    *******/
@media screen and (max-width: 500px) {
  #central_container {
    width: 88%;
  }

  #gif {
    /*display: _relative;*/
    width: 100%;
  }

  #gallery_grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  a.projectLink:hover > div.project_thumbnail_container {
    box-shadow: none;
  }
}

/* --------------- POP UP BOX --------------- */
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 10px;
  border: 2px solid black;
  box-shadow: 6px 6px 0px rgb(0, 0, 0);
  width: 80%; /* Could be more or less, depending on screen size */
}

.modal-content img {
  display: block;
  width: 80px;
  margin-left: auto;
  margin-right: auto;
}

/* The Close Button */
.close {
  color: #aaa;
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;

  margin-top: -10px;
  margin-right: -10px;

  border: 1px solid white;
  padding-left: 8px;
  padding-right: 8px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;

  border: 1px solid black;
  padding-left: 8px;
  padding-right: 8px;
}
