@font-face {
    font-family: "Quicksand";
    src: url(/fonts/Quicksand-Light.ttf);
}

@font-face {
    font-family: "BebasNeue";
    src: url(/fonts/BebasNeue-Regular.ttf);
}

.logo {
    width: 15%;
    text-align: center;
    font-family: "Quicksand-Light", "Quicksand", sans-serif;
    font-size: 1.7rem;
    font-weight: lighter;
    margin-left: 2rem;
    color: #fff;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

header {
    width: 100%;
    height:fit-content;
    background-color: #0f0f0f;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: fixed;
    top: 0;
    z-index: 999;
}

ul {
    list-style: none;
}

.startImg {
    margin-left: 20px;
    margin-top: -40px;
}



.rightSect {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin: auto;
    padding: 100px 40px 50px 40px
}

.rightSect h1 {
    text-shadow: #dfd8b965 1px 0 10px;
}

.contactMain h1, .glryMain h1 {
        text-shadow: #dfd8b965 1px 0 10px;
}

.galleryBtn {
    width: 200px;
    background-color: #DEDEDE;
    color: #000;
    font-weight: bold;
    margin-top: 40px;
}

.galleryBtn:hover, .galleryBtn:focus {
    background-color: #0f0f0f;
    color: #DEDEDE;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

a {
    display: inline-block;
    position: relative;
    color: #fff;
    outline: none;
    font-size: 1.2rem;
    padding: 10px;
  }
  
 .nav-link:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }
  
  a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }

.footerlink {
    font-size: 1rem;
}

.footerlink:hover, .footerlink:focus {
    letter-spacing: 0.05rem;
    color: #a6d4e4;
}

li {
    list-style: none;
}

 /*TUTORIAL*/
.navbar {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.nav-link {
    transition: 0.7s ease;
}

.nav-link:hover {
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}
 /*TUTORIAL*/


 .hamburger {
    background-color: transparent;
    border: 0;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
}

.hamburger:focus {
    outline: none;
}

a {
    position: relative;
    color: #fff;
    text-decoration: none;    
    outline: none;
    font-size: 1.2rem;
    padding: 10px;
  }

  button:focus {
    outline: none;
  }

 .nav-link::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .nav-link:hover::before, .nav-link:focus::before {
    transform: scaleX(1);
  }

  .des a {
      font-size: 16px;
  }

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "Quicksand-Light", "Quicksand", sans-serif;
}

html {
    background-image: url(/images/portbak.png);
    height: 100%;
    background-attachment: fixed;
}

h1 {
    color: #fff;
    text-align: center;
    margin: -70px 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-family: "BebasNeue-Regular", "BebasNeue", sans-serif;
    font-size: 3rem;
    font-weight: 500;
}

.contact {
    padding-top: 70px;
}

.menu-link {
    transition: 0.7s ease;
}

.animated {
    position: relative;
  }
  
.animated-info {
    display: inline-block;
    vertical-align: top;
    margin-top: 0px;
    min-width: 320px;
    position: relative;
    text-align: left;
  }
  
  .animated-item {
    color: #fddd74;
  }
  
  .animated-item {
    font-size: 18px;
    line-height: inherit;
    display: block;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    animation: BottomTotop 6s linear infinite 0s;
  }
  .animated-item:nth-child(2n+2) {
    animation-delay: 2s;
  }
  .animated-item:nth-child(3n+3) {
    animation-delay: 4s;
  }

  
@keyframes BottomTotop {
    0% {
      opacity: 0;
    }
    5% {
      opacity: 0;
      transform: translateY(5px);
    }
    10% {
      opacity: 1;
      transform: translateY(0px);
    }
    25% {
      opacity: 1;
      transform: translateY(0px);
    }
    30% {
      opacity: 0;
      transform: translateY(5px);
    }
    80% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }


* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "Quicksand-Light", "Quicksand", sans-serif;
}

html {
  /*  background-image: url(/images/portbak.png); bildspel istället */
    background-color: #252525;
    height: 100%;
    background-attachment: fixed;
}

    .pages {
        float: right;
        display: grid;
        height: 60px;
        grid-template-columns: 100px;
        grid-template-rows: repeat(2, 1fr);
    }
    
    #item1 {
        grid-row: 1 / 2;
    }
    #item2 {
        grid-row: 2 / 2;
    }
#project-img:hover {
    opacity: 30%;
}

#project-img {
    transition: all 0.5s ease-out;
    color:#000;
    }
    
    .hovered{
    background:#000 !important;
    color:#fff !important;
    }


    .gallery{
        position:relative;
        margin-bottom: 1rem;
    }
    
    .gallery img{
        width: 20%;
        margin-right: 8px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
    
    /* galleri */
    .gallery-section {
        width: 100%;
        padding: 60px 0;
    }

    .inner-width {
        width: 100%;
        max-width: 1200px;
        margin: auto;
        padding: 0 20px;
    }

    .gallery-section .gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-section .image {
        flex: 25%;
        overflow: hidden;
        cursor: pointer;
    }

    .gallery-section .image img {
        width: 100%;
        height: 100%;
        transition: 0.4s;
    }

    .gallery-section .image:hover img, .gallery-section .image:focus img {
        transform: scale(1.2) rotate(5deg);
    }

    @media screen and (max-width:960px) {
        .gallery-section .image {
            flex: 33.33%;
        }
    }

    @media screen and (max-width:768px) {
        .gallery-section .image {
            flex: 50%;
        }
    }
    @media screen and (max-width:480px) {
        .gallery-section .image {
            flex: 100%;
        }
    }
    /*galleri slut*/


    footer {
        background-color: #000000b1;
        text-align: center;
        padding:6px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        margin-top: auto;
        grid-row-start: 2;
        grid-row-end: 3;
        color: #fff;
        max-height: 50px;
        display:grid;
        width: auto;
        margin-bottom: -10px;
    }



/*#startinfo {
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    font-size: 80%;
    margin: 0 auto;
}*/

#info {
    margin-top: 15px;
}


#gallery-sec {
    margin: 0 auto;
}

#container {
    position: relative;
    min-height: 100%;
}

a {
    text-decoration: none;
    color: #fff;
    outline: none
}

a:hover,
a:focus,
a:active {
    color: #fff;
}



.mySlides img {
   height: 600px;
   width: auto;
}

label{
    width: 8rem;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    
}

button { 
    background-color: #0f0f0f;
    font-size: 1rem;
    border: none;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    padding-left: 3rem;
    padding-right: 3rem;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 10px;
    border-radius: 10px;
    width: 50%;
}

button:hover, button:focus {
    background-color: #292828de;
}

input, textarea { 
    border-radius: 10px;
    background-image: linear-gradient(to bottom, #FFFFFF 5%, #DEDEDE 100%);
    background-image: -o-linear-gradient(bottom, #FFFFFF 5%, #DEDEDE 100%);
    background-image: -moz-linear-gradient(bottom, #FFFFFF 5%, #DEDEDE 100%);
    background-image: -webkit-linear-gradient(bottom, #FFFFFF 5%, #DEDEDE 100%);
    background-image: -ms-linear-gradient(bottom, #FFFFFF 5%, #DEDEDE 100%);
    border: none;
    height: 30px;
    width: 200px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
}

textarea {
    height: 100px;
}

.form-box {
    max-width: 220px;
	padding: 10px 20px;
	background: rgba(244, 247, 248, 0.158);
	margin: 10px auto;
    margin-top: 110px;
    margin-bottom: 60px;
	padding: 20px;
	background: #f4f7f8;
	border-radius: 8px;
	font-family: Georgia, "Times New Roman", Times, serif;
    text-align: center;
}

.name {
    font-size: 1.5rem;
    margin: 30px 0;
}

.adress, .phonenumber, .email {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.email {
    margin-bottom: 50px;
}

.emailSent {
text-align: center;
}

.emailSent h1, .emailSent p {
    color: #f1f1f1;
    margin: 50px 10px;
}

.backBtn {
    width: 250px;
    background-color: #fff;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.backBtn:hover, .backBtn:focus {
    color: #DEDEDE;
    font-weight: 200;
}

main {
    margin-top: 150px;
}

.indexMain {
    background-image: url(../images/ssbacksmallscr.png);
    -o-background-size:100% auto;
    -webkit-background-size:100% auto;
    -moz-background-size:100% auto;
    background-size:100% auto;
}

.contactMain {
    background-image: url(../images/sscontbacksmall.png);
    -o-background-size:100% auto;
    -webkit-background-size:100% auto;
    -moz-background-size:100% auto;
    background-size:100% auto;
    background-repeat: no-repeat;
    background-color: #000;
}


.logo {
    width: 15%;
    text-align: center;
    font-family: "Quicksand-Light", "Quicksand", sans-serif;
    font-size: 1.7rem;
    font-weight: lighter;
    margin-left: 2rem;
    color: #fff;
}

@media(min-width: 500px) {


    .form-box {
        max-width: 400px;
    }


}

@media only screen and (max-width:500px) {
    #submit, #clear {
        width: 150px;
    }
}

    

@media(min-width: 800px) {
    #startinfo {
        color: #fff;
        padding: 10px;
        max-width: 40%;
        font-size: 100%;
        margin: 0 auto;
        margin-top: 350px;
    }


    
    .logo {
        width: 15%;
        text-align: center;
        font-family: "Quicksand-Light", "Quicksand", sans-serif;
        font-size: 1.7rem;
        font-weight: lighter;
        margin-left: 2rem;
        color: #fff;
    }
    .pages {
        width: 30%;
        display: flex;
        justify-content: space-around;
        font-weight: lighter;
        color: #fff;
    }
    
    
    body {
        min-height: 100%;
        display: grid;
        grid-template-rows: 1fr auto;
    }

    #grid-container1, #grid-container2, #grid-container3 {
        display: flex;
        column-gap: 50px;
        margin: 50px 200px;
    }

    .form-box {
        max-width: 500px;
    }

    #gallery-sec {
        margin-left: 180px
    }

    #myModal {
        margin-top: 90px;
    }
}


.section_top {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-image: url();
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    animation: change 20s infinite ease-in-out;
}



@keyframes change {
0% {
    background-image: url();
}
33% {
    background-image: url();
}
67% {
    background-image: url();
}
100% {
    background-image: url();
}

}

@media screen and (max-width: 767px) {

    .menu-link {
        margin: 16px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        padding-bottom: 20px;
        gap: 0;
        flex-direction: column;
        background-color: #0f0f0f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }


}

@media (min-width: 760px) {
    .indexMain {
        background-image: url(../images/ssback.png);
        -o-background-size:100% auto;
        -webkit-background-size:100% auto;
        -moz-background-size:100% auto;
        background-size:100% auto;
    }

    .contactMain {
        background-image: url(../images/sscontback.png);
        -o-background-size:100% auto;
        -webkit-background-size:100% auto;
        -moz-background-size:100% auto;
        background-size:100% auto;
    }

    .gallerybtn {
        width: 300px;
    }

    .rightSect {
        margin-top: 200px;
    }
}

@media (min-width:500px) {
    .backBtn {
        margin-bottom: 300px;
    
    }

    .emailSent {
        margin-top: 200px;
    }
}