/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: white;
  color: black;
  font-family: Verdana;
  background: repeating-linear-gradient(45deg, orange, orange 20px, green 20px, green 40px);
  background-size: 100% 1188px;
}

td, th, .kehys {
  border: solid black 3px;
  background: #d2cece;
}
  
table {
    border-collapse: collapse;
}  

form {
  margin-top: 10px;
}

#vasen {
  float: left;
  width: 550px;
}

#oikea {
  float: left;
  margin-left: 5px;
  width: 550px;
}

.kehys {
  padding: 5px;
  max-width: 542px;
  margin-bottom: 5px;
}

input[type=submit] {
  background: #08bdf8;
}

img {
  float: left;
  margin-right: 5px;
}

@font-face {
  font-family:'digital 7';
  src: url('digital-7.ttf');
}

#aika, #pisteet {
  font-family:'digital 7';
  font-size: 23px;
}

@keyframes nousu {
  0% { transform: translate(0px, 0px); }
  20% { transform: translate(0px, -250px); }
  20.001% { transform: translate(0px, 1000px); }
  100% { transform: translate(0px, 0px); }
}

#ilmapallo {
 animation: nousu 5s infinite linear;
}

body:hover #ilmapallo {
 transform: translate(0px,-500px);
}
