* {
    box-sizing: border-box;
}

@font-face {
    font-family: "Roboto";
    src: url("Roboto.ttf");
}
  
body {
    font-family: "Roboto", sans-serif;
    margin:0;
    color: #424143
}
  
h1 {
    font-family: "Roboto", sans-serif;
    color:#b84196;
    font-weight: 900;
    font-size: 24px;
    margin:30px 0px;
    text-transform: uppercase;
}
  
h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-size: 25pt;
}
  
hr {  
    border:0.5px solid #d1d1d1;
    max-width:500px;
    margin-top: -30px;
    margin-bottom: 80px;
}

.underline {
    color: #424143;
    text-decoration: underline;
    text-decoration-color: #53c2bf;
    --initialBgColor: white;
    --slideBgColor: #53c2bf;
  
    color: var(--initialTextColor);
  
    background-image: linear-gradient(90deg,
      var(--initialBgColor) 0%,
      var(--initialBgColor) 50%,
      var(--slideBgColor) 50%,
      var(--slideBgColor) 100%);
    background-size: 200%;
    transition: background-position .3s cubic-bezier(.47, .1, 1, .63),
      color .2s linear;
    transition-delay: 0.05s, 0.15s;
}

.underline:hover {
    color: var(--slideTextColor);
    cursor: pointer;
    background-position: -100%;
    color: white;
}
  
p {
    margin: 4px 0px 16px 0px; 
    line-height: 28px;
}
  
.fa {
    color: #53c2bf;
    margin: 10px 10px 0px 0px;
}
  
.fa:hover {
    color:#b84196;
}

html, div, img {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
  
.container {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    margin:auto;
    max-width:1024px;
}
  
.btn {
    display:inline;
    list-style: none;
    align-items: center;
    border: none;
    padding:1px 3px;
    background-color: transparent;
    cursor: pointer;
    font-size: medium;
    font-family: "Roboto", sans-serif;
}
  
.btn:hover {
    color:white;
    background-color: #53c2bf;
} 
  
.btn.active {
    color: #53c2bf;
    background-color: white;
    cursor: auto;
    font-weight: 700;
    text-decoration: underline;
}

/* cover */
.headertext { 
    position:relative;
    left:30%;
    top:5%;
}
  
.headerbox {
    background-color: #53c2bf;
    position:absolute;
    left:-80px;
    top:12%;
    width: 170px;
    height: 130px;
    z-index: -1;
}

.colorbox {
      position: absolute;
      top: 5px;
      bottom: 5px;
      left: 5px;
      right: 5px;
      background-color: #53c2bf;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: .5s ease;
      text-align: center;
      color: white;
}

/* PORTFOLIO images */
.item {
    -ms-flex: 33.33%; /* IE10 */
    flex: 33.33%;
    max-width: 33.33%;
    padding: 5px;
    position: relative;
    cursor: pointer;
    display: none; /* Hide columns by default */
  
}
  
/* The "show" class is added to the filtered elements */
.show {
    -ms-flex: 33.33%; /* IE10 */
    flex: 33.33%;
    max-width: 33.33%;
    padding: 5px;
    position: relative;
    display: block;
}
  
.half {
    -ms-flex: 50%; /* IE10 */
    flex: 50%;
    max-width: 50%;
    padding: 180px 50px 50px 50px;
    position: relative;
}
  
.column {
    -ms-flex: 33.33%; /* IE10 */
    flex: 33.33%;
    max-width: 33.33%;
    padding: 50px;
    position: relative;
}
  
.immagine {
    display: block;
    width: 100%;
    height: auto;
}
.item:hover .colorbox {
    opacity: 1;
}
  
.contacts {
    -ms-flex: 50%; /* IE10 */
    flex: 50%;
    max-width: 50%;
    padding: 30px;
    margin:auto;
}

/* SLIDESHOW project pages */
.mySlides {display: none}

.slideshow-container {
    -ms-flex: 70%; /* IE10 */
    flex: 70%;
    max-width: 70%;
    position: relative;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 30px 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
  
.active, .dot:hover {
    background-color: #717171;
}
  
/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}
  
@-webkit-keyframes fade {
    from {right: .4} 
    to {opacity: 1}
}
  
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* container for project´s description */
.projectDetails {
    -ms-flex: 25%; /* IE10 */
    flex: 25%;
    max-width: 25%;
    float: right;
    margin-left: 30px;
}

@media screen and (max-width: 1024px) {
    .slideshow-container {
        -ms-flex: 100%;
        flex: 100%;
        max-width: 100%;
    }
    .projectDetails {
        -ms-flex: 100%;
        flex: 100%;
        max-width: 100%;
        text-align: center;
        margin-top: 50px;
        margin-left: 0px;
    }
}

/* Style the navigation bar */
.topnav {
    overflow: hidden;
    background-color: #f1f1f1;
    position: sticky;
    top: 0;
    z-index:1;
} 

/* Style the topnav links */
.topnav a {
    float: right;
    display: block;
    margin-top: 15px;
    text-align: center;
    font-size: 10pt;
    color: #424143;
    padding: 14px 16px;
    text-decoration: none;
}

/* Change color on hover topnav */
.topnav a:hover {
    color: #53c2bf;
    font-weight: 900;
}
    
.topnav a.active {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: #53c2bf;
}

.topnav .icon {
    display: none;
    margin-top: 0;
    padding: 0;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
    .item, .show {
      -ms-flex: 50%;
      flex: 50%;
      max-width: 50%;
    }
    .contacts {
      -ms-flex: 100%;
      flex: 100%;
      max-width: 100%;
      text-align: center;
    }
}
    
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .item, .column, .half, .show {
      -ms-flex: 100%;
      flex: 100%;
      max-width: 100%;
    }
    .column {
      padding: 20px 50px;
    }
    .headertext { 
      left: 10%;
    }
    .headerbox {
      left:-20px;
    }
}