  .course {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
    url(../images/Farmak8.jpg) no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;

    z-index: 0;
    overflow: hidden;
    
  
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
    
    .course .icons {
      padding: 0.5rem 0;
      text-align: center;
      
    }
      
    .course .icons a{
      padding-left: 10px;
     
    }
    
    .course .icons img{
      max-width: 54px;
      border-radius: 50%;
      padding-left: 8px;
    }
    
    .course .icons img:hover 
    {transition: transform 0.5s;
    transform: scale(1.1);}
    
    
    .course .box-container {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      max-width:1300px ;
      margin: auto;
     
    }
    
    .course .box-container .box {
      min-height: 30rem;
      width: 1350rem;
      
      height: auto;
      background: #fff;
      text-align: center;
      border-radius: 1rem;
      box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.5);
      margin: 2rem;
      cursor: pointer;
      
    }
    
    .course .box-container .box img {
      height: auto;
      width: 350px;
      display: block;
      margin: 10px auto;
      object-fit: cover;
      border-radius: 5px;
      padding: 10px;
    }
    
    .course .box-container .box h3 {
      font-size: 20px;
      color: var(--blue);
      transition: 0.2s;
      text-transform: none;
      padding: 10px;
      margin-top: 100px;
    }

    .course .box-container .box button {

      background-color: white;
      width: 300px;
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.5);
      display: block;
      height: 50px;
    font-size: 17px;
      display: block;
      margin: 20px auto;

    }
    
    .course .box-container .box p {
      font-size: 15px;
      padding: 0.7rem 2rem;
      color: black;
      padding-bottom: 15px;
      padding-left: 25px;
      padding-right: 25px;
      text-align: left; 
      margin-bottom: 35px;
    }

    .course .box-container .box iframe{
        text-align: center;
        margin-top: 10px;
        margin-bottom: 15px;
        border-radius: 10px;
    } 
    

    
    .course .box-container .box:hover h3 {
      color: var(--red);
    }
  
    @media (max-width: 1300px) { 

      .course .box-container .box {
        width: 90%;
      }
    }  
  
    @media (max-width: 600px) {
      
      .course .box-container{
        margin-top: 75px;

      }
  
      .course .title  {
        margin-bottom: 0;
      }
  
   
        .course .icons img:hover 
        {transition: transform 0.5s;
        transform: scale(1);}
  
       
        .course .box-container .box img {
        
          width: 250px;
          display: block;
          margin: 0 auto;
        }

        .course .box-container .box p{
          font-size: 12px;
        }

            .course .box-container .box iframe{
                width: 90%;
                
            } 
      }          
      
  
      @media (max-width: 500px) { 
        .course .form input[type="submit"]{
          width: 80%;
        }

        .course .box-container .box button{
          font-size: 15px;
          width: 250px;
        }
       
  }

  @media (max-width: 340px) { 
    .course .box-container .box iframe{
        height: 90%;
    } 
  }
  
  @media (min-width: 500px){
  
  #backToTop {
    display: none; /* Skryté ve výchozím stavu */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 199;
    border: none;
    outline: none;
    background-color: blue;
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 20px;
  }
  
  #backToTop:hover {
    background-color: #555;
  }}
  
  @media (max-width: 500px){
    #backToTop{
      opacity: 0;
    }
  }

  .modal {
    display: none; /* Skryté ve výchozím stavu */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Styl pro obrázek uvnitř modálního okna */
  .modal img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    margin-top: 15px;
  }
  
  /* Styl pro tlačítko zavření */
  .modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
  }