.main-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   
  }
  .main-heading h1{
     
      text-align: center;
      padding-top: 85px;
      color: rgb(247, 242, 242);
      font-size: 35px;
  }
  
  .main-heading p {
   
    text-align: center;
    color: white;
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .main-heading button {
    text-align: center;
    background-color: red;
    color:white;
    font-size: 20px;
    padding: 10px 5px;
    width: 300px;
    border-radius: 5rem;
    cursor: pointer;
    font-weight: bold;
    margin: 10px 0;
    box-shadow: 2px 3px 2px rgb(161, 160, 160);
    margin: 15px;
}
  
    .main-heading button:hover{
      background-color: blue;
      transition: 1s;
      box-shadow: none;
    }

  .course {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
    url(../images/Farmak0.jpg) no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    overflow: hidden;
    display: block;
    margin: auto;  
  }

  .course .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
   
    flex-direction: row;
   
  }

  .course .row .form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
   
    flex-direction: row;
    width: 500px;
    
   
  }
  
  .course .row .form-container input,
  textarea {
    height: 4rem;
    width: 500px;
    background: #fff;
    border: none;
    border-radius: 5rem;
    padding: 2rem 1rem;
    margin: 0.5rem 0;
    color: black;
    font-size: 1.9rem;
    transition: 0.2s linear;
    border: 3px solid black;
  
  }
  
  .course .dotaz-student{
    display: none;
  }

  .course .email-student{
    display: none;
  }

  .course .row .form-container textarea {
    height: 20rem;
    border-radius: 1rem;
    resize: none;
  }
  
  .course .row .form-container input[type="submit"] {
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-size: 2.1rem;
    transition: 1.1s;
    border: 3px solid black;
    margin-bottom: 30px;
    padding-top: 0px;
    font-weight: bold;
    box-shadow: 2px 3px 2px rgb(161, 160, 160);
  }

  .course .row .form-container label {
    height: 45px;
    width: 500px;
    display: block;
    margin: auto;
    background: white;
    border-radius: 5rem;
    color: gray;
    cursor: pointer;
    font-size: 1.5rem;
    border: 3px solid black;
    padding-top: 7px;
    padding-left: 10px;

  }

  .course .row .form-container #choose-file {
   display: none;
  }
  
  .course .row .form-container input[type="submit"]:hover {
    background: red;
    border: 0.2rem solid var(--red);
    box-shadow: none;
    
  }
   
    .course .box-container {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      max-width:1300px ;
      margin: auto;
     
    }
    
    .course .box-container .box {
      min-height: 20rem;
      width: 120rem;
      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 {
      max-height: 450px;
      max-width: 450px;
      line-height: 6rem;
      
      border-radius: 5px;    
      margin: 0.5rem auto;

      
    }
    
    .course .box-container .box h3 {
      font-size: 2.3rem;
      color: var(--blue);
      transition: 0.2s;
      text-transform: none;
      padding-top: 10px;
      padding-bottom: 10px;
    }
    
    .course .box-container .box p {
      font-size: 15px;
      padding: 0.7rem 2rem;
      color: black;
      margin-bottom: 10px;
      text-align: center;
    }

    

    .course .box-container .box button {
        width: 450px;
        background: var(--red);
        color: #fff;
        cursor: pointer;
        font-size: 2.2rem;
        transition: 1.1s;
        border: 3px solid black;
        margin-bottom: 25px;
        margin-top: 10px;
        padding-top: 0px;
        border-radius: 5rem;
        font-weight: bold;
        box-shadow: 2px 3px 2px rgb(161, 160, 160);
      }
    
    
    .course .box-container .box:hover h3 {
      color: var(--red);
      
    }

    .course .box-container .box button:hover{
        transition: 1s;
        background: var(--blue);
        box-shadow: none;
    }
  
    .course .form .hide{
      display: none;
    }
    
  
    @media (max-width: 580px) {
      

      .main-heading button{
        font-size: 15px;
        
      }
  

      .course .row .form-container input,
      textarea {
        display: flex;
        justify-items: center;
        align-items: center;
        width: 100%;
      }

      .course .row .form .hide{
        display: none;
      }
    
      .course .row .form-container .email-student{
        display: none;
      }

      .course .row .form-container label {
        width: 100%;
        padding-top: 11px;
      }

      .course .row .form-container input[type="submit"]{
        width: 240px;
        margin-top: 15px;
      }
      .course .row .form-container{
        width: 100%;
      }

      }          
          
  
      @media (max-width: 500px) { 
        .course .box-container .box button{
          width: 80%;
        }
        .main-heading h1{
          font-size: 25px;
          padding-left: 3px;
          padding-right: 3px;
        }
        .main-heading p{
          font-size: 16px;
          padding-left: 3px;
          padding-right: 3px;
          
        }

        .course .box-container .box img{
          width: 250px;
        }
        .course .box-container .box p{
          font-size: 12px;
        }
  }
  
  @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;
    }
    .main-heading button{
      width: 240px;
      font-size: 15px;
    }
    .course .hide{
        display: none;
      }
  }

  @media (max-width: 299px){
    .course .box-container .box button{
        font-size: 1.9rem;
    }
  }