@media only screen and (min-width:768px) {

    .nav-link::before {
        content: "";
        display: block;
        position: absolute;
        bottom: 3px;
        left: 0;
        height: 3px;
        width: 100%;
        background-color: #7555c7;
        transform-origin: right top;
        transform: scale(0, 1);
        transition: color 0.2s, transform 0.2s ease-out;
    }
    
    .nav-link:hover::before,
    .nav-link:focus::before {
        transform-origin: left top;
        transform: scale(1, 1);
    }
    
    .nav-link {
        text-decoration: none;
        margin-right: 50px;
        position: relative;
        padding: 16px 0;
        margin: 0 5px;
        letter-spacing: 1px;
        line-height: 16px;
        transition: color 0.3s, background-color 0.3s, padding 0.3s ease-in;
        color: white;
        font-size: large;
    }

    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 40px;
    }

    p {
        font-size: 25px;
    }

    
    .banner {
        width: 85%;
    }
    
    
    .unityobrazek {
        width: 90%;
    }

    .screenhra {
        width: 40%;
    }

    .img-wrapper {
        position: relative;
      }
      
      .img-responsive {
        width: 50%;
        height: auto;
      }
      
      .img-overlay {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
      }
      
      .img-overlay:before {
        content: ' ';
        display: block;
        /* adjust 'height' to position overlay content vertically */
        height: 50%;
      }
      
      .projects h2 {
        color: #00B6FE;
      }
      
      .projects .card {
        background-color: #333;
        color: #fff;
        display: flex;
        flex-direction: column;
      }
      
      .projects .card-title {
        color: #fff;
        font-size: 35px;
        font-weight: bold;
        text-align: center;
        margin: auto;
      }
      
      
      .projects .btn-primary:hover {
        background-color: #7555c7;
        border-color: #7555c7;
      }
      
      .card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .card-img-top {
        height: 100%;
        object-fit: cover;
        flex-grow: 1;
      }

      a:hover, a:visited, a:link, a:active {
        text-decoration: none;
        }
      
}

@media only screen and (max-width:767px) {
    
    .home-text {
        text-align: center;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 35px;
    }

    p {
        font-size: 25px;
    }

    
    .banner {
        width: 50%;
    }
    
    .unityobrazek {
        width: 90%;
    }

    .about {
        margin-top: 7%;
    }

    .screenhra {
        width: 100%;
    }

    .about {
        margin-top: 7%;
    }

    .projects .card {
        margin-bottom: 30px;
      }
    
    .projects .card-title {
        font-size: 35px;
      }
    
    .projects .btn-primary {
        margin-bottom: 10px;
      }

    .card {
        background: #333;
    }
}

@media only screen and (max-width:600px) {
   
    .home-text {
        text-align: center;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 35px;
    }

    p {
        font-size: 25px;
    }

    
    .banner {
        width: 80%;
    }
    
    .unityobrazek {
        width: 90%;
    }

    .about {
        margin-top: 7%;
    }

    .projects .card {
        margin-bottom: 30px;
      }
    
    .projects .card-title {
        font-size: 35px;
      }
    
    .projects .btn-primary {
        margin-bottom: 10px;
      }

    .card {
        background: #333;
    }


}

@media only screen and (max-width:428px) {

    .home-text {
        text-align: center;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 35px;
    }

    p {
        font-size: 25px;
    }

    
    .banner {
        width: 80%;
    }
    
    .unityobrazek {
        width: 90%;
    }

    .about {
        margin-top: 7%;
    }

    .about {
        margin-top: 7%;
    }

    .projects .card {
        margin-bottom: 30px;
      }
    
    .projects .card-title {
        font-size: 35px;
      }
    
    .projects .btn-primary {
        margin-bottom: 10px;
      }

    .card {
        background: #333;
    }
}