/* Reset */

* {
    padding: 0;
    margin: 0;
}

/* Textes */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap');

h1, h2, h3, h4, p {
    font-family: 'Nunito', sans-serif;
}

h1 {
    color: white;
    font-size: 30px;
}

h2 {
    color: #1d1f22;
    font-size: 35px;
}

h3 {
    color: #1d1f22;
    font-size: 25px; 
}

h4 {
    color: #1d1f22;
    font-size: 25px;
}

/* Classes réutilisées */

.card {
    background-color: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.col {
    flex-direction: column;
}

.center {
    align-items: center;
}

.container {
    width: 50%;
    display: flex;
    justify-content: space-between;
    margin: auto;
}

/* Header */

header {
    background: #131a26;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.logo {
    width: 30%;
}

.logo > a > img {
    width: 90%;
    filter: brightness(0) invert(1);

}

.title {
    width: 30%;
    text-align: right;
}

.title > p {
    color: white;
}

/* General status */

.general-status {
    margin-top: -40px;
    width: 100%;
}

.blob {
    background: black;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    transform: scale(1);
}

.blob.xl {
    margin: 20px;
    height: 2rem;
    width: 2rem;
}

.blob.xs {
    margin: 10px;
    height: 1rem;
    width: 1rem;
}

.blob.green {
    background: rgba(59, 214, 113, 1);
    box-shadow: 0 0 0 0 rgba(59, 214, 113, 1);
    animation: pulse-green 2s infinite;
}
  
@keyframes pulse-green {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(59, 214, 113, 0.7);
    }
    
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(59, 214, 113, 0);
    }
    
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(59, 214, 113, 0);
    }
}

.blob.orange {
    background: rgba(255, 146, 72, 1);
    box-shadow: 0 0 0 0 rgba(255, 146, 72, 1);
    animation: pulse-orange 2s infinite;
}
  
@keyframes pulse-orange {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(255, 146, 72, 0.7);
    }
    
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(255, 146, 72, 0);
    }
    
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(255, 146, 72, 0);
    }
}

/* Contenu */

.category {
    margin-top: 3rem;
}

.category > h3 {
    padding-bottom: 1.5rem;
}

.category .card:last-child {
    margin-bottom: 0;
}

.service-name {
    width: 30%;
}

.service-info {
    display: flex;
    gap: 1rem;
    width: 60%;
    justify-content: center;
}

.service-info > p {
    color: #8492a6;
}

.service-status {
    display: flex;
    align-items: center;
    width: 10%;
    justify-content: end;
}

.card.service {
    padding: 1.5rem;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.card.service.online {
    border-bottom: solid 4px rgba(59, 214, 113, 1);
}

.card.service.offline {
    border-bottom: solid 4px rgba(255, 146, 72, 0.7);
}

.service-status > .online {
    color: rgba(59, 214, 113, 1);
    font-weight: bold;
}

.service-status > .offline {
    color: rgba(255, 146, 72, 0.7);
    font-weight: bold;
}

footer {
    background-color: #131a26;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin-top: 4rem;
}

footer > p {
    color: #8492a6;
    padding: 1.5rem;
}

footer > p > a {
    color: #8492a6;
    transition: 0.3s;
}

footer > p > a:hover {
    color: white;
}

.nolink {
    color: #8492a6;
    text-decoration: none;
}

.nolink:hover {
    color: #8492a6;
}

/* Responsive Tablette & mobile */

/* @media only screen and (max-width: 450px) {
    .service-status > .blob {
        display: none;
    }
} */

@media only screen and (max-width: 1250px) {
    .container {
        width: 95%;
    }
    header > .container {
        flex-direction: column;
        align-items: center;
    }
    .title {
        width: 100%;
        text-align: center;
    }
    .logo {
        width: 80%;
        text-align: center;
    }
    .card {
        flex-wrap: wrap;
        justify-content: center;
    }
    .service-name {
        width: 70% !important;
        order: 1;
    }
    .service-status {
        width: 20% !important;
        order: 2;
    }
    .service-info {
        width: 100% !important;
        justify-content: space-between;
        order: 3;
        text-align: center;
    }
    .blob.xl {
        width: 30px;
        height: 30px;
    }

    h1 {
        font-size: 25px;
    }
    h2 {
        font-size: 25px;
    }
    h3 {
        font-size: 20px;
    }
    h4 {
        font-size: 20px;
    }
}

/* @media only screen and (max-width: 1600px) {
    .service-name {
        width: 30%;
    }
    .service-info {
        width: 50%;
    }
    .service-status {
        width: 20%;
    }
} */