.loginform {
  position: relative;
  background: rgba(240, 255, 255, 0.4);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding:20px;
  overflow:hidden;
  color: #215121;
  width: 80%;
  min-height:200px;
  max-width:400px;
  margin-top:10px;
  margin-bottom:10px;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width input fields */
.loginform input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Set a style for all buttons */
.loginform button {
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

.loginform button:hover {
  opacity: 0.8;
}

.menu1 {
  position: relative;
  text-align: center;
  animation: opac 0.5s;
}

.menu1 img:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

.fig {
float: right;
width: 40%;
margin-left: 10px;
}

.fig img{
width: 100%;
}

@keyframes opac{
  from{opacity:0} to{opacity:1}
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@media screen and (max-width: 600px) {
.fig {
float: left;
width: 90%;
margin-bottom: 10px;
}
    
}