
* {
  box-sizing: border-box;
}

.grid-container {
  display: grid;
  grid-template-areas:
  'pic1'
  'pic2'
  'pic3'
  'pic4';
}	
  
body{
  background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/38816/image-from-rawpixel-id-2044837-jpeg.jpg");
}

input, textarea{
  border: none;
  border: 1px solid rgba(0,0,0,1);
  border-radius: 2px;
  background: snow;
  padding-left: 5px;
  outline: none;
}

input[type=text]:focus, textarea:focus{
  border: 1px solid orangered;
}

input[type=text], select {
    width: 100%;
    padding: 12px 15px;
    margin-top: 1px;
    margin-bottom: 1px;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

input[type="radio"] {
    margin:  1px 1px
 }

 
input[type="email"]{
  width: 100%;
  padding: 12px 15px;
  margin-top: 1px;
  margin-bottom: 1px;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  
  }
    
  
fieldset{
  border: none;
}

#data-buttons{
  margin-top: 40px;
}

#h1-sort{
  display: block;
  margin: 30 px;
  color: white;
  text-shadow: 0 0 2px black;
  font-size: 30px;
  text-align: center;
}

#function-buttons{
  margin-bottom: 50px;
}

fieldset legend { 
position:relative;
right:16px;
}


#submit-b{
  display: block;
  float: right;
  padding: 5px 20px;
  border: none;
  background: orangered;
  color: white;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 2px solid rgb(243, 237, 214);
  margin-bottom: 10px;
}

#save-b{
  display: none;
  float: right;
  padding: 5px 20px;
  border: none;
  background: orangered;
  color: white;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 2px solid rgb(243, 237, 214);
  margin-bottom: 10px;
}

button:hover, #submit-b:hover, #save-b:hover{
  background: inherit;
  color: orangered;
  border-bottom: 2px solid orangered;
}

.descendant-even:hover{
  background: inherit;
  color: rgb(50, 174, 142);
  border-bottom: 2px solid rgb(50, 174, 142);
}

.descendant-odd:hover{
  background: inherit;
  color: rgb(223, 173, 74);
  border-bottom: 2px solid rgb(223, 173, 74);
}

.ascendant-odd{
  display: block;
  float: left;
  padding: 5px 20px;
  border: none;
  background: orangered;
  color: white;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 2px solid inherit;
}

.ascendant-even{
  display: block;
  float: left;
  padding: 5px 20px;
  border: none;
  background: rgb(255, 196, 182);
  color: white;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 2px solid inherit;
}

.descendant-odd{
  display: block;
  float: left;
  padding: 5px 20px;
  border: none;
  background: rgb(223, 173, 74);
  color: white;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 2px solid inherit;
}

.descendant-even{
  display: block;
  float: left;
  padding: 5px 20px;
  border: none;
  background: rgb(50, 174, 142);
  color: white;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 2px solid inherit;
}


button{
  display: block;
  float: left;
  padding: 5px 20px;
  border: none;
  background: orangered;
  color: white;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 2px solid rgb(243, 237, 214);
}  

select {
    border-radius: 4px;
    background-color:snow; 
  }

span{
  width: 100%;
  height: 17px;
  display: block;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 12px;
  border: none;
  outline: none;
  margin-top: 5px;
  margin-bottom: 5px;
}

.sort-span{
  display: inline;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 10px;;
}

.span-clock{
  display: inline;
  width: 100%;
  height: 10px;
  font-size: 9px;
  margin-top: 0;
  margin-bottom: 0;  
}

#formcontainer{
  margin-left: auto;
  margin-right: auto;
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: rgb(255, 196, 182);
}

tr{
  background-color: white;
}

#beginn{
  background-color: rgb(255, 196, 182);
}


#clock{
height: 40px;  
font-size: 24px;
text-align: center;
color: white;
margin-left: 20px;
margin-right: 25px;
padding-top: 10px;
padding-bottom: auto;

}
.nav-item{
  list-style: none;
  font-size: large;
}

a{
  color: white;
  text-decoration: none;
}

.navbar{
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background-color: rgb(255, 196, 182);
}

.nav-menu{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.nav-branding{
  font-size: 2rem;
}

.nav-branding:hover {
  color: orangered;
}

.nav-link{
  display: block;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  transition: 0.7 ease;
  text-align: center;
}

.nav-link:hover{
  color: orangered;
}

.hamburger{
  display: none;
  cursor: pointer;
}

.bar{
  display: block;
  width: 35px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition:  all 0.3s ease-in-out;
  background-color: white;
}

@media(max-width:768px){
  .hamburger{
    display: block;
  }

  .hamburger.active .bar:nth-child(2){
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu{
    position:fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: rgb(255, 196, 182);
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }

  .nav-item{
    margin: 16px 0;
  }

  .nav-menu.active{
    left: 0;
  }

  .unimportend{
    display: none;
  }

  #submit-b{
    display: block;
    float: right;
    padding: 5px 20px;
    border: none;
    background: orangered;
    color: white;
    letter-spacing: 1px;
    outline: none;
    border-bottom: 2px solid rgb(243, 237, 214);
    margin-bottom: 20px;
  }
  
  #save-b{
    display: none;
    float: right;
    padding: 5px 20px;
    border: none;
    background: orangered;
    color: white;
    letter-spacing: 1px;
    outline: none;
    border-bottom: 2px solid rgb(243, 237, 214);
    margin-bottom: 20px;
  }
  
  button:hover, #submit-b:hover, #save-b:hover{
    background: inherit;
    color: orangered;
    border-bottom: 2px solid orangered;
  }
  
  .descendant-even:hover{
    background: inherit;
    color: rgb(50, 174, 142);
    border-bottom: 2px solid rgb(50, 174, 142);
  }
  
  .descendant-odd:hover{
    background: inherit;
    color: rgb(223, 173, 74);
    border-bottom: 2px solid rgb(223, 173, 74);
  }
  
  .ascendant-odd{
    display: block;
    float: left;
    padding-top: 1px;
    padding-bottom: 1px;
    border: none;
    background: orangered;
    color: white;
    letter-spacing: 1px;
    outline: none;
    border-bottom: 2px solid inherit;
    margin-bottom: 20px;
  }
  
  .ascendant-even{
    display: block;
    float: left;
    padding-top: 1px;
    padding-bottom: 1px;
    border: none;
    background: rgb(255, 196, 182);
    color: white;
    letter-spacing: 1px;
    outline: none;
    border-bottom: 2px solid inherit;
    font-size: smaller;
    margin-bottom: 20px;
  }
  
  .descendant-odd{
    display: block;
    float: left;
    padding-top: 1px;
    padding-bottom: 1px;
    border: none;
    background: rgb(223, 173, 74);
    color: white;
    letter-spacing: 1px;
    outline: none;
    border-bottom: 2px solid inherit;
    font-size: smaller;
    margin-bottom: 20px;
  }
  
  .descendant-even{
    display: block;
    float: left;
    padding-top: 1px;
    padding-bottom: 1px;
    border: none;
    background: rgb(50, 174, 142);
    color: white;
    letter-spacing: 1px;
    outline: none;
    border-bottom: 2px solid inherit;
    font-size: smaller;
    margin-bottom: 20px;
  }
  
  
  button{
    display: block;
    float: left;
    padding: 5px 20px;
    border: none;
    background: orangered;
    color: white;
    letter-spacing: 1px;
    outline: none;
    border-bottom: 2px solid rgb(243, 237, 214);
  }  

  #tab {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }

  td{
    display: block;
  }

  #h1-sort {
    text-align: left;
  }

  #beginn {
    display: none;
  }

}

@media(min-width:769px){
  * {
    box-sizing: border-box;
  }

.item1{grid-area: pic1;}

.item2{grid-area: pic2; 
       margin-left: auto; 
       margin-right: auto;
       padding: 0px;
 }

.item3{grid-area: pic3; 
       padding-bottom: 45px;
       margin-left: auto; 
       margin-right: auto;
}

.item4{grid-area: pic4;     
    	 padding-bottom: 45px;
       margin-left: 20px; 
       margin-right: 20px;
}

  input, textarea{
    border: none;
    border: 1px solid rgba(0,0,0,1);
    border-radius: 2px;
    background: snow;
    padding-left: 5px;
    outline: none;
  }
  
  input[type=text]:focus, textarea:focus{
    border: 1px solid orangered;
  }
  
  input[type=text], select {
      width: 100%;
      padding: 12px 20px;
      margin: 4px 0px;
      display: block;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
    }
  
  input[type="radio"] {
      margin:  14px 10px
   }

   input[type="email"]{
    width: 100%;
    padding: 12px 20px;
    margin: 4px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    }

    #submit-b{
      display: block;
      float: right;
      padding: 5px 20px;
      border: none;
      background: orangered;
      color: white;
      letter-spacing: 1px;
      outline: none;
      border-bottom: 2px solid rgb(243, 237, 214);
    }
    
    #save-b{
      display: none;
      float: right;
      padding: 5px 20px;
      border: none;
      background: orangered;
      color: white;
      letter-spacing: 1px;
      outline: none;
      border-bottom: 2px solid rgb(243, 237, 214);
    }
    
    button:hover, #submit-b:hover, #save-b:hover{
      background: inherit;
      color: orangered;
      border-bottom: 2px solid orangered;
    }
    
    .c-sort-even-js:hover{
      background: inherit;
      color: rgb(50, 174, 142);
      border-bottom: 2px solid rgb(50, 174, 142);
    }
    
    
    .c-sort-odd-js:hover{
      background: inherit;
      color: rgb(223, 173, 74);
      border-bottom: 2px solid rgb(223, 173, 74);
    }
    
    .c-sort-odd{
      display: block;
      float: left;
      padding: 5px 20px;
      border: none;
      background: orangered;
      color: white;
      letter-spacing: 1px;
      outline: none;
      border-bottom: 2px solid inherit;
    }
    
    .c-sort-even{
      display: block;
      float: left;
      padding: 5px 20px;
      border: none;
      background: rgb(255, 196, 182);
      color: white;
      letter-spacing: 1px;
      outline: none;
      border-bottom: 2px solid inherit;
    }
    
    .c-sort-odd-js{
      display: block;
      float: left;
      padding: 5px 20px;
      border: none;
      background: rgb(223, 173, 74);
      color: white;
      letter-spacing: 1px;
      outline: none;
      border-bottom: 2px solid inherit;
    }
    
    .c-sort-even-js{
      display: block;
      float: left;
      padding: 5px 20px;
      border: none;
      background: rgb(50, 174, 142);
      color: white;
      letter-spacing: 1px;
      outline: none;
      border-bottom: 2px solid inherit;
    }
      
    button{
      display: block;
      float: left;
      padding: 5px 20px;
      border: none;
      background: orangered;
      color: white;
      letter-spacing: 1px;
      outline: none;
      border-bottom: 2px solid rgb(243, 237, 214);
    }  
}
