* {
  box-sizing: border-box;
}

html, body, #my-app, main {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#my-app {
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

#my-app>main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

textarea {
  min-height: 150px;
}

button {
  background-color: #40423F;
  color: #fff;
  width: 120px;
  padding: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #626561;
}

button:active {
  background-color: #40423F;
}

.text-center {
  text-align: center !important;
}

.no-margin {
  margin: 0 !important;
}

.subtitle {
  font-size: 15px;
  font-weight: bold;
  color: #40423F;
  text-align: center;
}

.subtitle:active, .subtitle:visited {
  color: #40423F;
}

.subtitle .fa:hover {
  color: #98A8B5;
}

.nav .subtitle:hover {
  text-decoration: underline;
}

.transparent {
  opacity: 0 !important;
}

.container {
  flex: 1;
  width: 75%;
  margin: 0px auto 60px auto;
}

.nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 25px 0px 50px 0px;
}

.nav i {
  margin: 0px 5px;
}

.nav-menu a, .nav-lang a {
  margin: 0 10px;
  cursor: pointer;
}

.nav-social {
  margin: 0 20px;
}

.nav-lang {}

.nav-menu {}

.nav-right {
  display: flex;
  position: absolute;
  right: 10%;
}

#sobre-mi {
  padding: 40px !important;
  border-bottom: 4px solid #40423F;
  border-top: 4px solid #40423F;
}

#sobre-mi p {
  font-size: 2.8vh;
  color: #aaa;
}

#contacto {
  margin: auto;
  max-width: 800px;
  padding: 40px 40px 0 40px;
}

.header-responsive {
  display: none;
  padding: 5% 13%;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex: 0;
  height: 300px;
  padding: 8px 0px;
  font-size: 16px;
  border-bottom: 4px solid #40423F;
}

.header h1 {
  font-size: 16vh;
  line-height: 0.9;
  margin: 0;
  font-family: Impact;
  color: #40423F;
}

#missatge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
}

#missatge.quote-project-name {
  width: 100%;
  padding: 20px;
  font-size: 2em;
  text-align: center;
}


#missatge .projecte {
  padding: 40px;
  min-width: 290px;
}

.projecte-container {
  text-align: center;
}

.projecte-content {
  display: inline-block; text-align: left;
}


.slider {
  display: flex;
  flex-direction: column;
}

.slider img {  
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}

.slider img.transparent {
  height: 0;
}

.slider-active {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.slider .numbertext {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 30px;
  z-index: 2;
}

.slider .next, .slider .prev {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  padding: 20px;
  height: 100%;
  color: #fff;
  font-size: 30px;
  user-select: none;
  -webkit-user-select: none;
}

.slider .next a, .slider .prev a {
  cursor: pointer;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider .prev {
  left: 0;
}

.slider .next {
  right: 0;
}

.slider .prev {
  position: absolute;
  height: 100%;
  left: 0;
}

.slider .next a:hover, .slider .prev a:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.slider-element {
  cursor: pointer;
  min-width: 200px;
  filter: brightness(85%);
}

.slider-element:hover {
  filter: brightness(100%);
  border: 1px solid #fff;
}

.caption-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: #222222;
  padding: 2px 16px;
  color: #ffffff;
  opacity: 0.8;
}

.my-gallery::-webkit-scrollbar { display: none; }


.my-gallery {
  width: 100%;
  float: left;
  overflow: auto;
  position: relative;
  display: flex;
  flex-direction: row;
}
.my-gallery img {
  width: 100%;
  height: auto;
}
.my-gallery figure {
  display: block;
  float: left;
}
.my-gallery figcaption {
  display: none;
}
.pswp__bg {
  background-color: rgba(0,0,0,0.95) !important;
}
.pswp__caption {
  background-color: #000 !important;
}
.items .prev, .items .next  {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.items .prev {
  margin-right: 10px;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;   
  border-right: 40px solid rgb(84,111,132); 
}
.items .next {
  margin-left: 10px;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;   
  border-left: 40px solid rgb(84,111,132); 
}
.items .prev:hover {
  border-right: 40px solid rgb(95, 139, 173); 
}
.items .next:hover {
  border-left: 40px solid rgb(95, 139, 173); 
  right: 0;
}


.items {
  display: flex;
  flex-direction: row;
  font-size: 30px;
  position: relative;
  align-items: center;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
  grid-gap: 16px;
  justify-content: center;
}
.items a {
  cursor: default;
  margin: 0 10px;
}
.item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  color: #40423F;
  background-color: #C1C2C7;
  margin: 10px;
  padding: 5px;
  border-radius: 40px;
  cursor: pointer;  
  font-size: 3vh;
  overflow: hidden;
}
.item:hover {
  color: #fff;
}
.item img {
  display: block;
  width: 100%;
  height: auto;
}

.fotografia {
  background-color:#98A8B5 !important;
}
.audiovisual {
  background-color: #FAF7F0 !important;
}
.guio {
  background-color:#F2D792 !important;
}
header .projecte {
  color: #40423F !important;
}
header .projecte:hover {
  background-color: #40423F !important;
  color: #C1C2C7 !important;
}
.fotografia.without-overlay:hover, .fotografia .overlay {
  border: 2px solid #98A8B5;
  background-color: unset !important;
  color: #98A8B5 !important;
}
.audiovisual.without-overlay:hover, .audiovisual .overlay {
  border: 2px solid #F2D792;
  background-color: unset !important;
  color: #F2D792 !important;
}
.guio.without-overlay:hover, .guio .overlay {
  border: 2px solid #F2D792;
  background-color: unset !important;
  color: #F2D792 !important;
}
.without-overlay .overlay {
  display: none;
}
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  display: flex;
  align-items: center;
}
.background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  background-position: center;
}
.item:hover .overlay {
  opacity: 1;
}

.item .text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  font-size: 20px;
  text-align: center;
  z-index: 1;
}
.item:first-of-type {
  margin-left: 0;
}
.item:last-of-type {
  margin-right: 0;
}






.project-vimeo {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.project-description {
  margin-bottom: 50px;
  padding: 0px 50px;
  font-size: 17px;
  text-align: justify;
}
.project-date {
  margin-top: 10px;
  float: right;
  font-style: italic;
}

#jor-ra, #di-fel {
  position: relative;
  height: 100%;
  width: 200px;
}
#jor-ra {
  padding-top: 20px;
}
#di-fel {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
#jor-ra img, #di-fel img {
  max-width: 200px;
  width: 15vw;
  max-height: 190px;
  /*
  height: 18vw;*/
}
.quote {
  min-width: 200px;
  width: 20vw;
  max-width: 400px;
}
.quote img {
  width: 100%;
}

.send-ok, .send-error {
  font-weight: bold;
  text-align: justify;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.send-ok {
  color: green;
  background-color: #b6ffb6;
}

.send-error {
  color: red;
  background-color: #fddada;
}

.pswp button:hover {
  background-color: unset !important;
}

@media only screen and (max-width: 500px) {
  .header h1 {
    font-size: 30vw;
  }
}

@media only screen and (max-width: 600px) {
  .nav {
    flex-direction: column;
  }
  .nav-right {
    margin-top: 15px;
    position: relative;
  }
  .my-gallery {
    display: flex;
    flex-direction: row;
    font-size: 30px;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .items .next, .items .prev {
    display: none;
  }
  .item:first-of-type {
    margin-left: 10px;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    display: none;
  }
  .header-responsive {
    display: block;
  }
  .container {
    width: 95%;
  }
  .projectes {
    flex-direction: column !important;
    flex-wrap: wrap;
    align-items: center;
  }
  .projecte {
    padding: 50px 25px !important;
    font-size: 8vw !important;
  }
  .projecte {
    width: 60vw;
  }
  [class*="col-"] {
    width: 100%;
  }
}

@media only screen and (max-width: 1000px) {
  .nav-right {
    right: 0;
  }
}

@media screen and (min-width: 1200px) {
  .projecte {
    padding: 50px 40px !important;
  }
}


.alert {
  font-family: Arial, Helvetica, sans-serif;
  padding: 20px;
  background-color: #f44336;
  color: white;
  opacity: 1;
  transition: opacity 0.6s;
  margin: 15px;
  position: fixed;
  bottom: 0;
}

.alert.success {background-color: #04AA6D;}
.alert.info {background-color: #2196F3;}
.alert.warning {background-color: #ff9800;}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 9999;
}

.closebtn:hover {
  color: black;
}


/*
#container {
  width: 100%;
  margin: 0 auto;
}

.demo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
  max-width: 320px;
  margin-bottom: 24px;
  border-radius: 4px;
  border: 1px solid #eee;
  visibility: visible;
  cursor: pointer;
  overflow: hidden;
}

.demo.loading {
  visibility: hidden;
}

.demo-image {
  width: 100%;
  display: block;
  height: auto;
  min-height: 80px;
	-webkit-filter: grayscale(0) blur(0);
	filter: grayscale(0) blur(0);
	-webkit-transition: .2s ease-in-out;
	transition: .2s ease-in-out;
}

.demo:hover .demo-image {
	-webkit-filter: grayscale(90%) blur(1px);
	filter: grayscale(90%) blur(1px);
}

.demo:hover label {
  color: #000;
  text-shadow: 1px 1px 2px #fff, 0 0 1em #fff, 0 0 0.2em #fff;
}

.demo label {
  position: absolute;
  cursor: pointer;
  margin: 0;
  text-align: center;
  font-size: 3vh;
  color: #fff;
  text-shadow: 1px 1px 2px #000, 0 0 1em #000, 0 0 0.2em #000;
	-webkit-transition: .2s ease-in-out;
	transition: .2s ease-in-out;
}*/




.action-btn {
  font-size: 15px;
  cursor: pointer;
}

.action-btn,
.action-btn:link, 
.action-btn:visited,
.action-btn:active {
  color: #000;
}

.action-btn:hover {
  color: #04AA6D;
}