#app-2018-12-agenda2030 {
  max-width: 980px;
  font-family: 'Yleweb', sans-serif;
}

.agenda-title {
  font-size: 24px;
}

.agenda-wrapper::after {
  content: "";
  clear: both;
  display: table;
}

.agenda-icon {
  display: block;
  width: calc((100% - 10px) / 2);
  float: left;
  position: relative;
  background: #9f9f9f;
  color: #fff !important;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 16px;
  line-height: 1;
  margin: 0 10px 10px 0;
  box-sizing: border-box;
}

.agenda-icon img {
  display: block;
}

.agenda-background {
  opacity: 0.2;
  transition: opacity .2s;
}

.agenda-icon:hover .agenda-background {
  opacity: 0.4;
}

.agenda-foreground {
  position: absolute;
  top: 0;
  padding: 12px;
}

.agenda-number {
  display: block;
  font-size: 40px;
  margin-bottom: 4px;
}

.agenda-name {
  font-size: 15px;
  word-break: break-word;
}

@media screen and (max-width: 449px) {
  .agenda-icon:nth-child(even) {
    margin-right: 0;
  }
}

@media screen and (min-width: 450px) and (max-width: 619px) {
  .agenda-icon {
    width: calc((100% - 20px) / 3);
  }
  .agenda-icon:nth-child(3n+3) {
    margin-right: 0;
  }
}

@media screen and (min-width: 680px) {
  .agenda-foreground {
    padding: 14px;
  }
  .agenda-name {
    font-size: 18px;
  }
  .agenda-title {
    font-size: 32px;
  }
}

@media screen and (min-width: 620px) and (max-width: 839px) {
  .agenda-icon {
    width: calc((100% - 30px) / 4);
  }
  .agenda-icon:nth-child(4n+4) {
    margin-right: 0;
  }
}

@media screen and (min-width: 840px) {
  .agenda-icon {
    width: calc((100% - 40px) / 5);
  }
  .agenda-icon:nth-child(5n+5) {
    margin-right: 0;
  }
}