@media only screen and (min-width: 501px) {
  .sidepanel-mobile {
    display: none;
  }
}

@media only screen and (max-width: 500px) {
  .sidepanel-mobile {
    width: 0;
    height: 0;
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    background-color: #fff;
    transition: 0.5s;
    font-size: 0.95em;
  }

  .sidepanel-mobile .americabutton {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background-color: grey;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 4px 4px 0 0;
    transform: rotate(270deg);
    top: 110px;
    left: -62px;
    z-index: 9998;
    white-space: nowrap;
  }

  .sidepanel-mobile .europebutton {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background-color: grey;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 4px 4px 0 0;
    transform: rotate(270deg);
    top: 190px;
    left: -59px;
    z-index: 9998;
    white-space: nowrap;
  }

  .sidepanel-mobile .afrikabutton {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background-color: grey;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 4px 4px 0 0;
    transform: rotate(270deg);
    top: 262px;
    left: -54px;
    z-index: 9998;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 500px) {
  .sidepanel {
    display: none;
  }
}

@media only screen and (min-width: 501px) {
  .sidepanel {
    width: 0;
    position: relative;
    z-index: 9999;
    top: 130px;
    right: 0;
    background-color: #fff;
    transition: 0.5s;
    font-size: 1.2em;
  }

  .sidepanel .americabutton {
    position: absolute;
    cursor: pointer;
    background-color: grey;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 4px 4px 0 0;
    transform: rotate(90deg);
    top: -80px;
    left: 334px;
    z-index: 9998;
    white-space: nowrap;
  }

  .sidepanel .europebutton {
    position: absolute;
    cursor: pointer;
    background-color: grey;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 4px 4px 0 0;
    transform: rotate(90deg);
    top: 48px;
    left: 337px;
    z-index: 9998;
    white-space: nowrap;
  }

  .sidepanel .afrikabutton {
    position: absolute;
    cursor: pointer;
    background-color: grey;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 4px 4px 0 0;
    transform: rotate(90deg);
    top: 166px;
    left: 344px;
    z-index: 9998;
    white-space: nowrap;
  }
}

.americabutton:hover {
  background-color: black;
}

.europebutton:hover {
  background-color: black;
}

.afrikabutton:hover {
  background-color: black;
}

.sidepanel .selected {
  background-color: indianred !important;
}

.sidepanel-mobile .selected {
  background-color: indianred !important;
}
