/* prefixed by https://autoprefixer.github.io (PostCSS: v7.0.26, autoprefixer: v9.7.3) */

/*----  General styles ---*/
@import url('https://fonts.googleapis.com/css?family=Quantico:Ruda:200,300,400,500,600,700&display=swap');

body {
    font-family: "Ruda", sans-serif;
}

.main {
    background-color: grey;
    margin: 0;
    border: 2px black solid;
}

.footer {
    font-family: "Ruda", sans-serif;
    background-color: #fcfcfc;
    border-top: rgb(226, 226, 226) 0.1px solid;
}

.uppercase {
    text-transform: uppercase; 
}

a, a:hover{
    text-decoration: none;
    color: #004390;
}


/*--- Hero Image + logo ---*/

#hero-title {
    color: whitesmoke;
    width: 250px;
    height: 100px;
    border-radius: 100px;
    font-family: "Quantico", sans-serif;
    font-weight: 400;
    -ms-flex-item-align: auto;
        -ms-grid-row-align: auto;
        align-self: auto;

    padding-top: 25px;
    padding-left: 22.5px;
    
    background-color: rgba(32, 23, 102, 0.7);
    
    top: 30px;
    left: 50px;

    position: absolute;
}

#hero-image {
    height: 460px;
    width: 100%;
    background: url("../images/hero_image.jpg") no-repeat center center;
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    
  /*--- The animation code is taken from Love Running tutorial from this course ---*/
    -webkit-animation: hero-zoom;
            animation: hero-zoom;
    -webkit-animation-duration: 5s;
            animation-duration: 5s;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
}

#hero-outer{
  height: 460px;
  width: 100%;
  overflow: hidden;
  position: relative;
 
}

/*--- Hero image animation; the code is taken from Love Running tutorial from this course ---*/
@-webkit-keyframes hero-zoom {
  from{
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  to{
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
}

@keyframes hero-zoom {
  from{
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  to{
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
}


/*-- Hero image for desktop view --*/
@media screen and (min-width: 1300px) {   
    #hero-image{
    	background: url("../images/hero_image_big.jpg") no-repeat;
        height: 600px;
        width: 100%;
    }
}


/*-- Hero image animation for mobile view --*/
@media screen and (max-width: 565px) {   
    #hero-image{
    	background: url("../images/hero_image_2.jpg") no-repeat;
        max-height: 180px;
    } 
    #hero-outer{
        max-height: 180px;
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    #hero-title {
        color: whitesmoke;
        width: 120px;
        height: 50px;
        border-radius: 30px;
        font-family: "Quantico", sans-serif;
        font-weight: 400;
        
        padding-top: 14px;
        padding-left: 12px;
        
        top: 15px;
        left: 25px;
    }

    .logo {
        font-size: 18px;
    }
}

header h1 a, 
header a:hover {
    text-decoration: none;
    color: whitesmoke;
}


/*--- NAVbar ---*/

#navbar-main {
  color: white;
  
  padding-top: 40px;
  padding-left: 10px;
  
  bottom: 80px;
  right: 50px;

  position: absolute;
  background: none;
}

#navbar {
  color: white;
  
  padding-top: 40px;
  padding-left: 10px;

  bottom: 80px;
  right: 50px;

  position: absolute;
  background: none;
}

.menuitem {
    font-size: 25px;
    text-align: center;
    display: block;
}

/*-- Menu icons size increase on hover --*/
.menuitem:hover i {
    font-size: 30px;
}

/*-- Mobile view: Menu icons size increase on hover --*/
@media screen and (max-width: 565px)  {
    .menuitem {
        font-size: 10px;
        font-weight: 600;
    }
    
    .menuitem:hover i {
    font-size: 13px;
    }

    #navbar, #navbar-main {
    display: inline-block;

    bottom: 150px;
    right: 0px;
    
    position: absolute;
    background: none;
    }
}


/*-- Headings, titles, section titles --*/

.about-title, 
.gallery-title,
.projects-title {
    text-align: center;
    color: rgba(32, 32, 102, 0.9);
    padding-top: 20px;
}

.gallery-title,
.projects-title,
.contact-title {
    letter-spacing: 8px;
    padding-top: 30px;
    padding-bottom: 15px;
    text-align: center;
    color: rgba(32, 32, 102, 0.9);
}


/*--- About section ---*/

.about {
    padding-left: 10px;
    padding-top: 20px;
}

.about p {
    padding-left: 10px;
}

.about-bg {
    background-color:  #f5f5f5;
}

.about-title {
    text-align: center;
    color: rgba(32, 32, 102, 0.9);
}

.about p {
    text-align: justify;
    padding-left: 25px;
    padding-right: 25px;
}


/*--- Services section ---*/

.services {
    padding: 30px;
}

.service {
    padding: 10px;
}

.service-title {
    text-align: center;
    color: rgba(32, 32, 102, 0.9);
}

.service, 
.service-image {
    margin: 5px 0;
}

.service p {
    text-align: justify;
    padding-right: 10px;
}


/*--- Services section - Images ---*/

.service-image {
    padding: 2px;
    border: rgb(172, 172, 172) 0.2px solid; 
}

.responsive {
  max-width: 100%;
  height: auto;
}


/*--- Footer ---*/

.license  {
    padding: 15px 20px 10px;
    text-align: center;
}

.license p {
    font-size: 12px;
}

.license a {
    color: rgba(32, 32, 102, 0.856);
    text-transform: uppercase;
}

.license a:hover {    
    background: #004390;
    color: white;
    padding: 5px;
    border-radius: 5px;
}

.copyright {
    font-family: "Quantico", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    padding-top: 15px;
    padding-left: 40px;
    background-color:  #f5f5f5;
}

.social {
    text-align: center;
    padding-top: 25px;
    padding-bottom: 15px;
}

.social li a i {
    height: 46px;
    width: 46px;
    border-radius: 30%;
    font-size: 40px;
    padding-top: 3px;
    text-align: center;
    color: #201766;
}

.social li a i:hover {
    background: #004390;
    color: white;
}


/*-- Projects -- */

.projects {
  background: #fcfcfc;
  border-bottom: rgb(226, 226, 226) 0.1px solid;
}

.projects h5 {
    text-align: center;
    color: #201766;
}
.project {
    margin-bottom: 5px;
    padding: 10px 0;
}

.project p {
    text-align: justify;
}

.project-image {
    padding: 2px;
    border: rgb(172, 172, 172) 0.2px solid; 
    margin: 15px 0;
}

.project-image-bg {
    background:  #f5f5f5;
}


/*--- Gallery ---*/

#gallery-subtitle {
    text-align: center;
    color:  #201766;
    margin-bottom: 15px;
}

#photo {
   clear: both;
   line-height: 0;
   -webkit-column-count: 4;
      -moz-column-count: 4;
           column-count: 4;
   -webkit-column-gap: 0;
      -moz-column-gap: 0;
           column-gap: 0;
 }

 #photo img{
   width: 100%;
   padding: 2px;
   
 }

@media screen and (max-width: 943px){
    #photo{
        -webkit-column-count: 3;
           -moz-column-count: 3;
                column-count: 3;
    }
}

@media screen and (max-width: 650px){
    #photo{
        -webkit-column-count: 2;
           -moz-column-count: 2;
                column-count: 2;
   }
}

.gallery h5 {
    text-align: center;
    color:  #201766;
}


/*--- Address + Map ---*/

.address {
    -ms-flex-line-pack: center;
        align-content: center;
    display: inline-block;
    background-color: #f5f5f5;
    padding-bottom: 30px;
}

.address h3, 
.address-title {
    text-align: center;
    color: rgba(32, 32, 102, 0.9);
    padding-top: 30px;
    padding-bottom: 15px;
}

.address p {
    text-align: center;
    margin: 0;
}

#cz {
    font-size: 20px;
}

#map {
    padding: 2px;
    border: grey 0.2px solid;
    margin: 40px 15px;
    -ms-flex-line-pack: center;
        align-content: center;
}

#map iframe {
    width: 100%;
    height: 100%;
}


/*--- Contact Form ---*/

.contact-form {
    border-radius: 5px;
    padding: 10px 30px;
    
    background: #fcfcfc;
}

.contact-title {
    padding-top: 10px;
}

.contact-form p {
    text-align: center;
}

input[type="text"], input[type="email"], select, textarea {
    width: 100%; 
    -ms-flex-line-pack: center; 
        align-content: center;
    padding: 5px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    -webkit-box-sizing: border-box; 
            box-sizing: border-box; 
    
    margin-bottom: 12px; 
    margin-left: 2px;
    resize: vertical;
    font-size: 13px;
}

input[type=submit] {
  background-color: #004390;
  padding: 10px 30px;
  margin-left: 110px;
  margin-bottom: 20px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: white;
  font-size: 18px;
}


/*--- Call to Action Buttons ---*/

.action-button {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-color:#201766;
    padding: 8px 10px;
    margin: 10px auto;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    position: relative;
}

.button-center {
    text-align: center;
}

.action-button:hover {
    color: white;
}