/* GENERAL */
body {
  background: rgb(255, 255, 255);
  margin: 0;
  font-size: calc(16px+1vw);
  font-family: "Montserrat", sans-serif;
  user-select: none;
}

a {
  text-decoration: none;
  color: #367bce;
  font-weight: 600;
}

ul {
  list-style-type: none;
}

.standout {
  color: #367bce;
  font-weight: 600;
}

/*Languages*/

.ES,
.EN {
  display: none;
}

#lang-btn,
#about-btn {
  text-align: center;
  font-size: 1rem;
  color: #6e6e6e;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

#about-btn span {
  color: #000;
}

#lang-btn img,
#about-btn img {
  width: 40px;
}

#lang-btn span.ES {
  color: #990a0a;
}

#lang-btn span.EN {
  color: #00308c;
}

#alert-container {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #01a9db;
  color: white;
  border-radius: 5px;
  z-index: 9999;
  font-size: 0.8rem;
  box-shadow: 1px 1px 5px #6d6d6d;
  max-width: 60%;
}

.alert {
  margin: 10px 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/**************************************************************  header    */

#header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

#header div {
  padding: 2%;
  min-width: 100px;
}

#logo img {
  height: 80px;
  width: auto;
}

.copy-btn {
  cursor: pointer;
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #01a9db;
  border-radius: 5px;
  color: #01a9db;
  background-color: transparent;
  font-size: 0.6rem;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
  margin-left: 15px;
  letter-spacing: 1px;
}

.copy-btn:hover {
  background-color: #01a9db;
  color: white;
}

/* project */
.project {
  display: none;
}

.show-project {
  display: block;
}

.project-link {
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
}

#detail .link-icon {
  width: 20px;
  width: 20px;
  margin: 0;
  padding: 3px;
  border-radius: 15px;
  margin-right: 5px;
  background-color: #367bce;
}

.project-link a {
  text-decoration: none;
  color: #367bce;
  display: flex;
  align-items: center;
}
/**************************************************************  Voice    */
#voice-controls {
  position: fixed;
  display: flex;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  justify-content: space-between;
  width: 50px;
  height: 50px;
}

#help-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #01a9db;
}

#help-btn img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 3px auto;
}

#listen-btn .mic-on,
#listen-btn .no-mic {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
}

#listen-btn {
  right: 20px;
  background-color: #058509;
  border-radius: 50%;
  border: none;
  width: 50px;
  height: 50px;
  box-shadow: 0px 0px 10px #000;
}
#listen-btn:hover {
  box-shadow: 1px 1px 15px #000;
}

#command-box {
  position: fixed;
  left: 80px;
  bottom: 80px;
  padding: 10px 20px;
  background-color: #01a9db;
  color: #fff;
  border-radius: 20px 20px 20px 5px;
  z-index: 9998;
}

#command-box-title {
  font-size: 1.1rem;
  font-weight: 600;
}

#command-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 250px;
  max-height: 200px;
  margin: 5px 0;
  font-size: 14px;
  overflow-y: auto;
}

#command-box p {
  margin: 0;
}

.close-command-list {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
}

.close-command-list img {
  width: 30px;
  height: 30px;
}

.listening {
  background-color: #f30808 !important;
}

.not-listening {
  background-color: #058509;
}

#listen-btn .mic-on {
  display: none;
}

#listen-btn .no-mic {
  display: block;
}

/**************************************************************  Legal    */

#legal-popup {
  position: fixed;
  z-index: 10001;
  bottom: 0;
  left: 0;
  background: #000000e0;
  color: white;
  padding: 2%;
  display: none;
  width: 100%;
}

#legal-popup .legal-links div {
  background: #367bce;
  color: white;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
}

#close-popup-btn,
.close-legal-btn {
  text-align: center;
  font-size: 1.5rem;
  cursor: pointer;
  border: 2px solid #367bce;
  border-radius: 25px;
  padding: 15px;
}

#legal-notice h1,
#privacy-policy h1,
#legal-notice h2,
#privacy-policy h2 {
  color: #367bce;
}

.popup-content {
  padding-left: 15%;
  padding-right: 15%;
}

.close-legal-btn {
  text-align: center;
  font-size: 2rem;
  cursor: pointer;
}

#privacy-policy,
#legal-notice {
  display: none;
  color: white;
  overflow: auto;
  padding-top: 2%;
  padding-left: 15%;
  padding-right: 15%;
  position: absolute;
  z-index: 1000;
  background: black;
  left: 0;
  top: 0;
  line-height: 1.5;
  font-size: 14px;
  height: 100%;
}

#privacy-policy h2,
#legal-notice h2 {
  margin-bottom: 0;
}

#privacy-policy p,
#legal-notice p {
  margin-top: 2px;
}

.legal-links {
  display: flex;
  align-items: flex-end;
  clear: both;
  justify-content: space-between;
  font-size: 14px;
}

.legal-links div {
  cursor: pointer;
  padding-bottom: 2%;
}

.legality-btn {
  text-align: right;
}

/**************************************************************  Gallery    */

.loader {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  margin-top: -23px;
  margin-left: -23px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb300, transparent, transparent);
}

.second-loader {
  opacity: 1;
  animation: spin 1s linear infinite;

}

.third-loader {
  opacity: .5;
  animation: spin2 .5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
    width: 50px;
    height: 50px;
  }
  50% {
    transform: rotate(180deg);
    width: 45px;
    height: 55px;
  }
  100% {
    transform: rotate(360deg);
    width: 50px;
    height: 50px;
  }
}

@keyframes spin2 {
  0% {
    transform: rotate(0deg);
    width: 50px;
    height: 50px;
  }
  50% {
    transform: rotate(180deg);
    width: 55px;
    height: 45px;
  }
  100% {
    transform: rotate(360deg);
    width: 50px;
    height: 50px;
  }
}

#gallery {
  width: 100%;
  left: 0px;
  margin: 0;
  padding: 0;
  position: absolute;
  /* Grid */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* end Grid*/
}

#gallery img {
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#blurry-bg {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: 50;
  opacity: 0.5;
  background-color: rgb(228, 228, 228);
  display: none;
}

.project-btn-wrapper {
  position: relative;
  min-height: 150px;
}

.not-visible {
  visibility: hidden;
}

.project-preview {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(37, 41, 46, 0.8);
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-preview span {
  font-size: 2rem;
}

.project-btn-wrapper:hover .project-preview {
  opacity: 1;
}

.opacity-100 {
  opacity: 1;
}

/**************************************************************  Detail    */
#detail {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  background-color: #fff;
  overflow-y: scroll;
  height: 100%;
  width: 45%;
  display: none;
  box-shadow: 1px 1px 5px #000;
}

.detail-wrapper {
  padding: 20px;
}

.detail-image-container {
  position: relative;
  min-height: 150px;
}

#detail img {
  width: 100%;
  margin: 2% 0 2% 0%;
}

#detail .close {
  position: absolute;
  top: 23px;
  right: 15px;
  cursor: pointer;
  padding: 5px;
  width: 40px;
}

.about-title,
.project-title {
  font-size: 30px;
  margin-top: 10px;
  width: 85%;
}

.about-content,
.project-info {
  color: #000;
  line-height: 1.6;
}
/* ------------------------------------------------------------ Animations */

/* Logo */
#logo img {
  transition: transform 1s ease;
}

#logo img:hover {
  transform: scale(0.9);
}
/* Blur */

.blur {
  filter: blur(5px);
  animation: blur 1s none;
}

@keyframes blur {
  0% {
    -webkit-filter: blur(0px);
  }
  100% {
    -webkit-filter: blur(5px);
  }
}

/* Greyscale */

.desaturate {
  filter: grayscale(0.7);
  animation: desaturate 2s none;
}

@keyframes desaturate {
  0% {
    -webkit-filter: grayscale(0);
  }
  100% {
    -webkit-filter: grayscale(0.7);
  }
}

#lang-btn div {
  transition: transform 1s ease;
}

#lang-btn:hover div {
  transform: rotate(360deg);
}

#about-btn div {
  transition: transform 1s ease;
}

#about-btn:hover div {
  transform: rotate(-360deg);
}

#dragon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: fixed;
  top: -30px;
  left: -30px;
  cursor: pointer;
  background-color: red;
  animation: flame 5s infinite, transparency 500ms infinite, size 100ms infinite,
    dragon-width 500ms ease-in-out infinite,
    dragon-height 1s ease-in-out infinite, dragon-rotate 1s linear infinite;
  user-select: none;
  box-shadow: 0 0 10px red;
}

@keyframes dragon-width {
  0%,
  100% {
    width: 30px;
  }
  50% {
    width: 35px;
  }
}

@keyframes dragon-height {
  0%,
  100% {
    height: 30px;
  }
  50% {
    height: 35px;
  }
}

@keyframes dragon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes transparency {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes size {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}

@keyframes flame {
  0%,
  100% {
    background-color: rgb(238, 56, 0);
  }
  33% {
    background-color: orange;
  }
  66% {
    background-color: rgb(255, 166, 0);
  }
}

.fireball {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, yellow, orange, red);
  box-shadow: 0 0 10px red;
  z-index: 9999;
  animation: fireball-animation 0.5s infinite alternate;
  user-select: none;
}

@keyframes fireball-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px red;
  }
  100% {
    transform: scale(1.2);
    box-shadow: 0 0 20px red, 0 0 40px orange;
  }
}

.burn-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: fixed;
  cursor: pointer;
  background: radial-gradient(circle, yellow, orange, red);
  animation: burnmark-flame 5s infinite, burnmark-transparency 500ms infinite,
    burnmark-size 100ms infinite, burnmark-width 500ms ease-in-out infinite,
    burnmark-height 1s ease-in-out infinite, burnmark-rotate 1s linear infinite;
  user-select: none;
  box-shadow: 0 0 10px red;
  z-index: 9999;
}

@keyframes burnmark-width {
  0%,
  100% {
    width: 30px;
  }
  50% {
    width: 35px;
  }
}

@keyframes burnmark-height {
  0%,
  100% {
    height: 30px;
  }
  50% {
    height: 35px;
  }
}

@keyframes burnmark-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes burnmark-transparency {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes burnmark-size {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}

@keyframes burnmark-flame {
  0%,
  100% {
    background-color: rgb(238, 56, 0);
  }
  33% {
    background-color: orange;
  }
  66% {
    background-color: rgb(255, 166, 0);
  }
}

/* ------------------------------------------------------------ Responsiveness   */

@media only screen and (max-device-width: 600px) {
  #dragon {
    width: 50px;
    height: 50px;
  }

  #detail {
    margin-left: 0;
    width: 100%;
  }

  #gallery {
    grid-template-columns: 1fr 1fr;
  }

  #header div {
    padding: 5%;
    min-width: 50px;
  }

  #logo img {
    height: 50px;
    width: auto;
  }

  #detail .close img {
    width: 70px;
  }

  .about-title,
  .project-title {
    margin-top: 10px;
    font-size: 35px;
  }

  .project-preview span {
    font-size: 15px;
  }

  .project-btn-wrapper {
    min-height: 50px;
  }

  #lang-btn {
    text-align: center;
    font-size: 1rem;
  }

  #lang-btn div,
  #about-btn div {
    padding: 0;
  }

  #lang-btn span,
  #about-btn span {
    font-size: 0.8rem;
  }

  #legal-notice p,
  #privacy-policy p,
  .about-email,
  #policy .legal-links,
  .project-link,
  .about-content,
  .project-info {
    font-size: 1.2rem;
  }

  #legal-notice h1,
  #privacy-policy h1,
  #legal-notice h2,
  #privacy-policy h2 {
    color: #367bce;
  }

  .close-legal-btn {
    margin-bottom: 100px;
  }

  #detail .close img {
    width: 50px;
  }
  .legal-links span {
    font-size: 0.8rem;
  }
}

/* end responsive*/
