/* Definition von Animationen.*/
@keyframes colorchanger {
  from {
    background-color: blueviolet;
  }
  to {
    background-color: aqua;
  }
}
@keyframes animatedsquare {
  0% {
    left: 0vw;
    top: 0px;
  }
  100% {
    left: 90vw;
    top: 0px;
  }
}

/*Festlegung der Namen von CSS Styles */
body {
  background-color: lightblue;
}

h1 {
  color: #000000;
  text-align: center;
}

p {
  font-family: verdana;
  font-size: 20px;
}

button {
  background-color: black;
  border: solid red;
  color: rgb(29, 168, 41);
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

button:hover {
  background-color: green;
}

img {
  border-radius: 5px 5px 5px 5px;
  width: 100%;
  max-width: 400px;
}

/* Neu definierte Classes müssen zuerst im HTML erstellt werden und dann mit einen "." vor dem Namen angewählt werden.*/
.wrapper {
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/*Hier wird das Aussehen der Karten definiert */
.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  width: 25vw;
  margin: 5px;
  transition: 0.3s;
  border-radius: 5px; /* 5px rounded corners */
  animation-name: colorchanger;
  animation-duration: 4s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  cursor: pointer;
  /* alternativ: animation: colorchanger 4s alternate infinite; */
}
.card-img {
  margin: auto;
  margin-top: 5px;
}
/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  background-color: aquamarine;
}

/* Add some padding inside the card container */
.container {
  padding: 2px 16px;
  margin: auto;
}
.card1 {
  grid-column-start: 1;
  grid-column-end: 3;
}
.circle {
  border-radius: 100%;
  box-shadow: none;
}

.bewegungsquadrat {
  width: 40px;
  height: 40px;
  background-color: red;
  position: relative;
  animation-name: animatedsquare;
  animation-duration: 10s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}
