@font-face {
    font-family: "BodaniModa";
    src: url('font/BodoniModa-VariableFont_opsz,wght.ttf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #131313;
  --secondary-color: #F9F9F9;
  --highlight-color: #bababa;
  --border-radius: 20px;
  --transition: all 0.5s linear;
  --border: 1px solid #131313;
}

::selection {
    color: white;
    background-color: var(--highlight-color);
}

html, body {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    scroll-behavior: smooth;
}

a:link {
  color: #ffffff;
}

a:visited {
  color: #ffffff;
}

a:hover {
  color: #979797;
}

a:active {
  color: #979797;
}

h1 {
    font-family: "BodaniModa";
    font-weight: 100;
    width: 100%;
    letter-spacing: 1.5px;
    font-size: 45px;
    margin-top: 150px;
}

h2 {
    font-family: "Helvetica Neue";
    font-weight: normal;
}

header {
    width: 100%;
    height: 100vh;
    background-image:linear-gradient(to bottom, transparent, var(--primary-color)),
    url('images/header-image.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    place-items:center;
    text-align: center;
    flex-direction: column;
}

header h1{
    text-align: center;
    width: 100%;
    font-size: 80px;
    letter-spacing: 6px;
    font-weight: 100;
    font-family: "BodaniModa";
    margin-top: 0;
}

header p{
    margin-top: -10px;
    letter-spacing: 1.2px;
    font-size: 20px;
    font-weight: lighter;
    
}

.main{
    text-align: center;
    padding: 20px 100px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    
}

.main div{
    width: 30%;
    height: 300px;
    margin: 100px 20px;
    padding: 25px;
    background-color: rgb(26, 26, 26);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.main div p{
    margin: 23px;
    font-weight: 100;
    line-height: 27px;
    letter-spacing: 0.7px;
}

table{
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    margin: 50px 0 20px 0;
    font-weight: 100;
    letter-spacing: 1px;
}

table td{
    height: 60px;
    border-bottom: 1px solid white;
    vertical-align: bottom;
    padding-bottom: 7px;
}

table td:last-of-type{
    text-align: end;
    font-weight: 100;
}

footer{
    text-align: center;
    margin: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

footer img{
    display: block;
    max-width: 50px;
    
}

footer div{
    display: flex;
    width: 40%;
    height: 200px;
    align-content: center;
    justify-content: center;
}

footer p{
    margin: 50px;
    font-size: 21px;
    font-weight: 100;
    line-height: 30px;
    letter-spacing: 1px;
}

footer p:last-of-type{
    width: 100%;
    margin-bottom: 20px;
}

#kontakt{
    margin: 150px 0 100px 0;
}
    

@media only screen and (max-width: 1400px) {
    
    .main{
        padding: 20px 30px;;
    }
    
    .main div{
        width: 29%;
        margin: 100px 20px;
        padding: 25px 10px;
    }
}


@media only screen and (max-width: 1023px) {
  .main{
      flex-direction: column;
      flex-direction: column;
      align-content: center;
      justify-content: center;
      padding: 20px;
    }
    
    .main div{
        align-self: center;
        width: 100%;
        margin: 20px;
    }
    
    footer div{
        width: 50%;
        height: 200px;
    }
}

@media only screen and (max-width: 600px) {
    
    .main{
      padding: 15px;
    }
    
    .main h1{
        align-self: center;
        
    }
    
    .main div{
        align-self: center;
        width: 100%;
        margin: 50px 10px;
    }
    
    table{
        width: 100%;
        align-self: center;
        font-size: 12px;
    }
    
    footer{
        flex-direction: column;
        align-content: center;
        justify-content: center;
    }
    
    footer h1{
        align-self: center;
    }
    
    footer div{
        width: 90%;
        align-self: center;
    }
}

@media only screen and (max-width: 400px){
    
    h1{
        font-size: 35px;
    }
    
    header h1{
        align-self: center;
        width: 95%;
        font-size: 65px;
    }
    
    footer{
        margin: 0;
    }
    
    footer div p{
        font-size: 15px;
        margin: 0;
    }
    
    
}
