@font-face {
    font-family: 'Poppins', sans-serif;
    src: url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
}

html {
    min-height: 100%;
    height: 100%
}

body {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    background-color: #fff;
    overflow-x: hidden;
    display: grid;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.2rem;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 0.1fr 1fr 0.1fr;
    justify-items: center;
}

header {
    grid-column: 2 / 3;
    width: 100%;
    text-align: center;
}

header h1 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

header button {
    margin-left: 0.25rem;
    display: inline-block;
}

aside {
    grid-column: 3 / 3;
    width: 100%;
}

aside h5 {
    padding-left: 40px;
    margin: 0;
}

footer {
    grid-column: 2 / 3;
    width: 100%;
    text-align: center;
}

main {
    width: 100%;
    display: flex;
    flex-direction: row;
    grid-column: 1 / 3;
}

#endpoints {
    display: flex;
    list-style: none;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    margin: 0;
}

#endpoints li {
    padding: 0.25rem 0.5rem;
    width: 24rem;
    /*height: 5rem;*/
    margin: 0.25rem;
}

#endpoints h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

#endpoints h3 a {
    color: #000;
    text-decoration: none;
    position: relative;
}

#endpoints h3 a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #4a4a4a;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

#endpoints h3 a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#endpoints li ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    padding-left: 0.5rem;
    list-style: none;
}

#certificates {
    list-style: none;
    font-size: smaller;
}

.positive {
    background-color: #a4e6c8;
}

.positive-status {
    background-color: #2c7b72;
    color: #fff;
    font-weight: 600;
}

.negative {
    background-color: #f6afb2;
}

.negative-status {
    background-color: #d4565b;
    color: #fff;
    font-weight: 600;
}

.neutral {
    background-color: #fca130;
}

.unknown {
    background-color: #eeeae5;
    color: #888885;
}

.hidden {
    display: none !important;
}

.inline-list {
    display: flex !important;
    flex-direction: row !important;
    padding: 0 !important;
    flex-wrap: wrap;
}

.inline-status {
    width: auto !important;
    height: auto !important;
    margin: 0.2rem !important;
    padding: 0.25rem !important;
    border-radius: 0.25rem;
}

@media (max-width: 720px)  {
    body {
        display: flex;
    }

    aside h5 {
        margin-top: 2rem;
    }

    #endpoints li {
        width: 100%;
    }

    #endpoints li h3 {
        font-size: 1.3rem;
    }
}