nav{
    display: flex;
    position:fixed;
    justify-content:space-between;
    top:0;
    left:0;
    align-items: center;
    width: 100%;
    height: 100px;
    background-color: white;
    -webkit-box-shadow: 1px 4px 21px -9px #000000; 
    box-shadow: 1px 4px 21px -9px #000000;
    z-index: 10;
}

nav img{
    margin-left: 20px;
    margin-right: 30px;
    margin-top: 10px;
}

nav h1{
    font-size: 35px;
    font-family:Verdana, Geneva, Tahoma, sans-serif ;
}
nav a {
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    color: #3f3f3fff;
    margin: 0 30px 0 30px;
  }

nav a:hover{
    color: red;
}


nav ul{
    list-style: none;
    display:flex;
    justify-content: space-around;
    margin-right: 100px;
}

  
#main-bg{
    background-image:  url("https://cdn.pixabay.com/photo/2017/09/05/10/19/business-2717063_1280.jpg");
    background-size: cover;
    opacity: 0.5;
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;

}

#main{
    position: relative;
    background-size: cover;
    display: flex;
    padding-top: 120px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100vh;
    padding-bottom: 20px;

    -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72); 
    box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72);
}

#main-text h1{
    color: red;
    font-size: 80px;
    outline: rgba(0,0,0,0.68);
    margin-bottom: 25px;
}


#main-text h2{
    font-size: 40px;
}

.card-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
/* 
.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 65px;
    margin-right: 65px;
    border-width: 5px;
    border-color: black;
    /* border-style: solid; 

    background-color: rgba(78, 160, 228, 0.815);
    text-align: center;
    height: 180px;
    width: 30vw;
    max-width: 400px;

    border-radius: 10px;

    -webkit-box-shadow: 5px 5px 14px 1px rgba(0,0,0,0.68); 
    box-shadow: 5px 5px 14px 1px rgba(0,0,0,0.68);
}

.card h1{
    font-size: 20px;
}

.card span{
    font-size: 50px;
} */

.dugme{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 60px;
    background-color: white;
    border-radius: 10px;
    font-size: 20px;

    text-decoration: none;
    color: #000000;

    -webkit-box-shadow: 5px 5px 15px 2px rgba(0,0,0,0.72); 
    box-shadow: 5px 5px 15px 2px rgba(0,0,0,0.72);
}

.dugme:hover{
    cursor: pointer;
    transform: scale(1.05);
}

#o-nama-container{
    /* border-top:  0.1px solid rgba(0, 0, 0, 0.459); */
    background-image: url("bgw.jpg");
    background-size: cover;
    padding-top: 150px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;

    -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72); 
    box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72);
}

.card-container span{
    font-size: 60px;
    background-color: white;
    border: solid 1px black;
    border-radius: 50px;
    padding: 30px;
    z-index: 5;
}

.card-container{
    margin-top: 25px;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.card-container p{
    font-size: 22px;
}

.card{
    margin-top: -30px;
    border: solid 0.1px black;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    padding-top: 30px;
    margin-bottom: 60px;
    min-width: 500px;

    background-color: white;
    border-radius: 20px;

    -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72); 
    box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72);

}

.prva-lista li{
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 2rem;
}

.druga-lista li{
    margin-bottom: 0;
}

#reference-container{
    margin: auto;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: baseline;
}

#reference ul{
    text-align: left;
}

#reference li{
    margin-bottom: 10px;
}
#reference h1 {
    font-size: 40px;

    text-align: center;
    padding-bottom: 30px;
}

#reference{

    z-index: -1000;
    /* margin-top: 5px; */
    background-image:  url("bg3.png");
    background-size: cover;

    padding-top: 120px;    
    padding-bottom: 120px;

    -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72); 
    box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.72);
} 

#kontakt{
    position: relative;
    min-height: 200px;
    padding: 20px;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#kontakt-bg{
    background-image:  url("kontakt.jpg");
    background-size: cover;
    opacity: 0.7;
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;

}

.kontakt-div{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.kontakt-div span{

    font-size: 60px;
    /* background-color: white; */
    border: none;
    margin-right: 15px;
    z-index: 5;
}


#kontakt-forma{
    padding:20px;
    padding-top: 0px;
    display:flex;
    flex-direction: column;
    align-items: center;
}

input, textarea{
    border: solid 2px black;
    font-size: 20px;
    margin: 5px;
    padding: 5px;
    border-radius: 10px;
    width: 100%;
}


input:-moz-ui-invalid, textarea:-moz-ui-invalid {

    border: solid 2px red;
}
  
body{
    font-family: sans-serif;
    margin: 0;
    background-color:white;
    min-height: 100%;
}

a{
    text-decoration: none;
}



@media screen and (max-width: 800px) {
    
    nav{
        justify-content: center;
    }

    nav h1{
        font-size: 30px;
    }

    nav ul{
        display: none;
    }

    #main-text h1{
        font-size: 40px;
    }


    #main-text h2{
        font-size: 18px;
    }

    #main-text h3{
        font-size: 16px;
    }

    .dugme{
        font-size: 20px;
        width: 300px;
    }


    .card p{
        font-size: 15px;
    }

    .card{
        font-size: 12px;
        min-width: 0;
        max-width: 500px;
    }

    #o-nama-container{
        padding-top: 30px;
    }

    .card-container{
        padding-left: 20px;
        padding-right: 20px;
    }

    .prva-lista{
        padding-left: 10px;
    }

    .prva-lista li{
        font-size: 15px;
        line-height: 1.6rem;
    }

    #reference-container{
        flex-direction: column;
    }

    #reference-container h2{
        padding-left: 30px;
    }

    textarea {
        height: 8em;
    }

    form .dugme{
        width: 250px;
    }

    input, textarea{
        width: 250px;
    }

    #kontakt .card{
        padding: 10px;
        padding-top: 30px;
        max-width: 340px;
    }

    #kontakt h1{
        text-align: center;
    }

    #kontakt .card span{
        margin: 0;
        padding-left: 20px;
    }


}