@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;

    background: rgb(40,116,17);
    background: linear-gradient(349deg, rgba(40,116,17,1) 0%, rgba(84,162,61,1) 61%);
    background-repeat: no-repeat;
    background-size: 100% 60vh;
}

#logo {
    text-align: center;
    margin: 10px auto;
    padding-top: 20px;
    display: block;
    width: 60%;
}

.panel {
    margin: 0 auto;
    margin-bottom: 10px;
    background: white;
    width: 40%;
    height: auto;
    margin-top: 130px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6);
}

.f-input {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    margin-bottom: 20px;relative
    width: 40%;
    outline: none;
    transition: .2s border-color;
}

.f-input:focus {
    border: 1px solid rgba(84,162,61,1);
}


.f-button {
    background: rgba(40,116,17,1);
    border: 1px solid rgba(40,116,17,1);
    border-radius: 10px;
    color: white;
    padding: 10px;
    margin: 20px;
    width: 40%;
    cursor: pointer;
    transition: .3s background;
    transform: .3s color;
}

.f-button:hover {
    background: rgba(84,162,61,0.6);
    color: rgba(40,116,17,1);
}

.paragraph {padding: 10px; }

a {
    color: rgba(40,116,17,1);
    transition: .2s color;
}

a:hover {
    color: rgba(84,162,61,1);
}

.loginform {
    width: 100%;
    height: 100%;
}
.loginform form {
    text-align: center;
}

.loginform form h1 {
    margin: 30px;
}

.assignment {
    padding: 30px;
    overflow-x: auto;
}

.assignment h1 {
    margin: 10px;
    margin-bottom: 40px;
}

.assignment p {
    text-align: center;

}

.assignment table {
    border: 0;
    width: 100%;
    margin: 20px 0px;
    border-collapse: collapse;
}

.assignment table tbody td,
.assignment table tbody th  {
    border: 1px solid #ddd;
    padding: 8px;
}

.assignment table tbody tr {transition: .2s background;}
.assignment table tbody tr:nth-child(even){background-color: #f2f2f2;}

.assignment table tbody tr:hover {background-color: #ddd;}

.assignment table tbody th {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: rgba(84,162,61,1);
  color: white;
}

#menu {
    margin: 10px;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;

}

#menu ul li {
    float: left;
    color: white;
    padding: 10px;
}


#menu ul li a {

    display: block;
    color: white;
    text-align: center;
    padding: 25px 20px;
    border-radius: 10px;
    transition: .3s background;
    transition: .3s color;
    text-decoration: none;
}

#menu ul li:last-child {
    float: right;
}

#menu ul li a:hover {
    color: rgba(40,116,17,1);
    background: rgba(255, 255, 255, 0.1);
}

#resp-menu {
  cursor: pointer;
  float: right;
  margin: 20px;
  display: none;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: white;
  margin: 6px 0;
  transition: 0.4s;
}

/* Rotate first bar */
.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
  transform: rotate(-45deg) translate(-9px, 6px) ;
}

/* Fade out the second bar */
.change .bar2 {
  opacity: 0;
}

/* Rotate last bar */
.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
  transform: rotate(45deg) translate(-8px, -8px) ;
}

.nameform {
  padding: 30px;
  text-align: center;
}333

.nameform p {
  margin-bottom: 20px;
}

.nameform .f-input {
  margin: 10px;
}

@media screen and (max-width: 1400px) {
  .panel {
    width: 60%;
  }
}

/* Mobil nézet */
@media screen and (max-width: 800px) {
  .panel {
    width: 95%;
  }

  #menu { margin: 0; }
  #menu ul { display: none; position: absolute; top: 80px; background-color: rgba(84,162,61,1); }
  #menu ul li { float: left; margin: 0 auto; text-align: center; margin: 0; padding: 0;}
  #menu ul li { width: 100%; }
  #menu ul li a { margin: 10px; }
  #menu ul li:last-child { float: left; }
  #resp-menu { display: inline-block; }

}

@media screen and (min-width: 800px) {
  #resp-menu { display: none; }
  #menu ul { display: inline-block; position: relative; top: 0px;}
}

@media print {
  .panel {
    width: 100%;
    box-shadow: none;
  }

  * {margin: 0; padding: 0;}

  #menu { display: none; }
  #resp-menu { display: none; }

  table th {
    background-color: black;
    color: white;
  }
}
