/* https://isitlittlefriday.com/ */
@font-face {
    font-family: "Sacramento";
    src: url("../font/Sacramento-Regular.ttf");
}

@font-face {
    font-family: "Courier";
    src: url("../font/CourierPrime-Regular.ttf");
}

body,
html {
    margin: 0;
    padding: 1rem;
    background-color: #222;
    color: #fff;
    font-size: 1rem;
    height: calc(100% - 2rem);
    position: relative;
}

#border-neon {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 90vh;
    height: 90vh;
    border: 3px solid rgba(176, 218, 255, 1);
    border-radius: 1rem;
    margin: auto;
    padding: 0 24px 0px 24px;
    box-shadow:
        0 0 5px rgba(0, 136, 255, 1),
        inset 0 0 5px rgba(0, 136, 255, 1),
        0 0 10px rgba(0, 136, 255, 1),
        inset 0 0 10px rgba(0, 136, 255, 1),
        0 0 20px rgba(0, 136, 255, 0.6),
        inset 0 0 20px rgba(0, 136, 255, 0.6);
    /* background: linear-gradient(90deg, transparent, rgba(0, 136, 255, 0.171) 2%, rgba(0, 136, 255, 0.171) 12%, transparent 13%); */
}

.fa-sharp {
    font-size: 4rem;
    color: rgba(0, 136, 255, 0.171);
    position: absolute;
    top: 5%;
    left: 3%;
}

h1 {
    box-sizing: border-box;
    width: 50vh;
    height: 25vh;
    z-index: 2;
    margin: 0 0 0 3rem;
    padding: 1rem;
    font-family: 'Exo', sans-serif;
    letter-spacing: 2px;
    font-weight: 300;
    text-align: center;
    text-align: left;
    color: rgb(255, 202, 245);
    background: linear-gradient(90deg, #1c3248 64%, transparent 67%, transparent 89%, #1c3248 92%),
        linear-gradient(0deg, #1c3248 13%, transparent 17%, transparent 83%, #1c3248 89%);

    text-shadow: 0 0 5px rgba(255, 68, 221, 0.9), 0 0 15px rgba(255, 68, 221, 0.9), 0 0 20px rgba(255, 68, 221, 0.9), 0 0 40px rgba(255, 68, 221, 0.9),
        0 0 60px rgba(255, 68, 221, 0.4), 0 0 10px rgba(255, 68, 221, 0.7), 0 0 98px rgba(255, 68, 221, 0.4);
    border: 3px solid rgba(176, 218, 255, 1);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 5px 5px rgba(0, 136, 255, 1),
        inset 0 0px 5px rgba(0, 136, 255, 1),
        0 10px 10px rgba(0, 136, 255, 0.466),
        inset 0 0 15px rgba(0, 136, 255, 1),
        -5px 5px 10px rgba(0, 136, 255, 0.6),
        5px 5px 10px rgba(0, 136, 255, 0.6),
        inset 0 0 20px rgba(0, 136, 255, 0.6);

}

table {
    width: 80%;
    /* max-width: 550px; */
    background-color: rgba(0, 136, 255, 0.171);
    border: 3px solid rgba(176, 218, 255, 1);
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    border-bottom: none;
    box-shadow: 0 -5px 5px rgba(0, 136, 255, 1),
        inset 0 0px 5px rgba(0, 136, 255, 1),
        0 -10px 10px rgba(0, 136, 255, 0.466),
        inset 0 0 15px rgba(0, 136, 255, 1),
        -5px -5px 10px rgba(0, 136, 255, 0.6),
        5px -5px 10px rgba(0, 136, 255, 0.6),
        inset 0 0 20px rgba(0, 136, 255, 0.6);
}

thead,
tbody {
    display: block;
}

thead tr {
    width: calc(100% - 2.5rem);
    padding: 1rem;
    font-family: "Courier";
    border-bottom: solid 1px rgba(0, 136, 255, 0.171);
    border-top-right-radius: 0.3rem;
    border-top-left-radius: 0.3rem;
    background-color: rgba(0, 136, 255, 0.171);
    margin: 0.5rem;
}

thead tr td {
    text-align: right;
}

thead tr td:first-of-type {
    text-align: left;
}

tr:after {
    /* clearing float */
    content: ' ';
    display: block;
    visibility: hidden;
    clear: both;
}

tbody {
    height: 40vh;
    overflow-y: auto;
    overflow-x: hidden;
}

tr {
    display: flex;
    justify-content: space-around;
    align-items: baseline;
    margin: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: solid 1px rgba(0, 136, 255, 0.171);
}

td {
    width: 40%;
}

tr td:first-of-type {
    text-align: left;
}

tr td {
    text-align: right;
}

.servers {
    font-size: 1.5rem;
    font-family: 'Sacramento', cursive;
}

.status {
    font-family: "Courier";
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.server-url {
    font-size: 0.6rem;
    background-color: transparent;
    border: none;
    text-align: right;
    color: rgb(255, 202, 245);
    text-decoration: underline;
    box-shadow: 0 0 2px rgba(0, 136, 255, 0.6),
        0 0 5px rgba(0, 136, 255, 0.6),
        0 0 7px rgba(0, 136, 255, 0.6),
}

#corner {
    height: 2rem;
    width: 2.2rem;
    bottom: 1.5%;
    right: 3%;
    position: absolute;
    background-color: rgba(0, 136, 255, 0.171);
    border: 3px solid rgba(176, 218, 255, 1);
    border-radius: 0.3rem;
    box-shadow: 0 0 5px rgba(0, 136, 255, 1),
        inset 0 0 5px rgba(0, 136, 255, 1),
        0 0 10px rgba(0, 136, 255, 1),
        inset 0 0 10px rgba(0, 136, 255, 1),
        0 0 20px rgba(0, 136, 255, 0.6),
        inset 0 0 20px rgba(0, 136, 255, 0.6);
}

.lit-pink, .lit-green a {
    color: rgb(255, 202, 245);
    text-shadow: 0 0 5px rgba(255, 68, 221, 0.9), 0 0 15px rgba(255, 68, 221, 0.9), 0 0 20px rgba(255, 68, 221, 0.9), 0 0 40px rgba(255, 68, 221, 0.9),
        0 0 60px rgba(255, 68, 221, 0.4), 0 0 10px rgba(255, 68, 221, 0.7), 0 0 98px rgba(255, 68, 221, 0.4);
}

.lit-blue {
    color: rgb(255, 202, 245);
    text-shadow: 0 0 5px rgba(0, 136, 255, 0.9), 0 0 15px rgba(0, 136, 255, 0.9), 0 0 20px rgba(0, 136, 255, 0.9), 0 0 40px rgba(0, 136, 255, 0.9),
        0 0 60px rgba(0, 136, 255, 0.4), 0 0 10px rgba(0, 136, 255, 0.7), 0 0 98px rgba(0, 136, 255, 0.4);
}

.lit-green, .lit-green a {
    color: rgb(255, 202, 245);
    text-shadow: 0 0 5px rgba(0, 255, 21, 0.9), 0 0 15px rgba(0, 255, 21, 0.9), 0 0 20px rgba(0, 255, 21, 0.9), 0 0 40px rgba(0, 255, 21, 0.9),
        0 0 60px rgba(0, 255, 21, 0.4), 0 0 10px rgba(0, 255, 21, 0.7), 0 0 98px rgba(0, 255, 21, 0.4);

}

/* HOVERS */
/* #region */
h1:hover {
    animation-name: flickerBorderShadow;
    animation-duration: 500ms;
    animation-iteration-count: 1;
}

.servers:hover {
    animation: flickerOn 500ms ease-in 0s 1;
}

/* #endregion */

/* classe à appliquer via JS pour déclencher un effet de scintillement */
.flicker {
    animation: textFlicker 500ms ease-in 0s 1;
    text-shadow: 2px 0.5px 2px #ea36af, -1px -0.5px 2px #75fa69;
}

@keyframes flickerBorderShadow {
    0% {
        box-shadow: 0 5px 5px rgba(0, 136, 255, 0.3),
            inset 0 0px 5px rgba(0, 136, 255, 0.3),
            0 10px 10px rgba(0, 136, 255, 0.3),
            inset 0 0 15px rgba(0, 136, 255, 0.3),
            -5px 5px 10px rgba(0, 136, 255, 0.3),
            5px 5px 10px rgba(0, 136, 255, 0.3),
            inset 0 0 20px rgba(0, 136, 255, 0.3);
    }

    10% {
        box-shadow: 0 5px 5px rgba(0, 136, 255, 0.8),
            inset 0 0px 5px rgba(0, 136, 255, 0.8),
            0 10px 10px rgba(0, 136, 255, 0.8),
            inset 0 0 15px rgba(0, 136, 255, 0.8),
            -5px 5px 10px rgba(0, 136, 255, 0.8),
            5px 5px 10px rgba(0, 136, 255, 0.8),
            inset 0 0 20px rgba(0, 136, 255, 0.8);
    }

    20% {
        box-shadow: 0 5px 5px rgba(0, 136, 255, 0.2),
            inset 0 0px 5px rgba(0, 136, 255, 0.2),
            0 10px 10px rgba(0, 136, 255, 0.2),
            inset 0 0 15px rgba(0, 136, 255, 0.2),
            -5px 5px 10px rgba(0, 136, 255, 0.2),
            5px 5px 10px rgba(0, 136, 255, 0.2),
            inset 0 0 20px rgba(0, 136, 255, 0.2);
    }

    30% {
        box-shadow: 0 5px 5px rgba(0, 136, 255, 0.7),
            inset 0 0px 5px rgba(0, 136, 255, 0.7),
            0 10px 10px rgba(0, 136, 255, 0.7),
            inset 0 0 15px rgba(0, 136, 255, 0.7),
            -5px 5px 10px rgba(0, 136, 255, 0.7),
            5px 5px 10px rgba(0, 136, 255, 0.7),
            inset 0 0 20px rgba(0, 136, 255, 0.7);
    }

    75% {
        box-shadow: 0 5px 5px rgba(0, 136, 255, 0.1),
            inset 0 0px 5px rgba(0, 136, 255, 0.1),
            0 10px 10px rgba(0, 136, 255, 0.1),
            inset 0 0 15px rgba(0, 136, 255, 0.1),
            -5px 5px 10px rgba(0, 136, 255, 0.1),
            5px 5px 10px rgba(0, 136, 255, 0.1),
            inset 0 0 20px rgba(0, 136, 255, 0.1);
    }

    100% {
        box-shadow: 0 5px 5px rgba(0, 136, 255, 1),
            inset 0 0px 5px rgba(0, 136, 255, 1),
            0 10px 10px rgba(0, 136, 255, 1),
            inset 0 0 15px rgba(0, 136, 255, 1),
            -5px 5px 10px rgba(0, 136, 255, 1),
            5px 5px 10px rgba(0, 136, 255, 1),
            inset 0 0 20px rgba(0, 136, 255, 1);
    }
}

@keyframes flickerOn {
    0% {
        opacity: 0.2;
    }

    10% {
        opacity: 0.5;
    }

    20% {
        opacity: 0.1;
        text-shadow: none;
    }

    30% {
        opacity: 0.7;
    }

    75% {
        opacity: 0.1;
    }

    100% {
        opacity: 1;
    }
}


@keyframes textFlicker {
    from {
        text-shadow: 1px 0 0 #ea36af, -2px 0 0 #75fa69;
    }

    to {
        text-shadow: 2px 0.5px 2px #ea36af, -1px -0.5px 2px #75fa69;
    }
}

@media screen and (max-width: 440px) {

    #border-neon {
        height: 100%;
        padding: 0;
        background: none;

    }

    .fa-sharp {
        opacity: 0;
    }

    h1 {
        background: rgba(0, 136, 255, 0.171);
        width: calc(100% - 2rem);
        position: relative;
        top: -3px;
        border-radius: 1rem;
        border: 3px solid rgba(176, 218, 255, 1);
        box-shadow: 0 0 5px rgba(0, 136, 255, 1),
            inset 0 0 5px rgba(0, 136, 255, 1),
            0 0 10px rgba(0, 136, 255, 1),
            inset 0 0 10px rgba(0, 136, 255, 1),
            0 0 20px rgba(0, 136, 255, 0.6),
            inset 0 0 20px rgba(0, 136, 255, 0.6);
        padding: 1rem;
        margin: 0;
    }

    table {
        /* width: calc(100% + 6px); */
        width: 100%;
        height: 80%;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }

    tr {
        border-bottom: none;
    }

    thead tr {
        /* fallback */
        width: 97%;

        width: calc(100% - 2.5rem);
        padding: 1rem;
        text-align: center;
        font-family: "Courier";

        border-top-right-radius: 0.3rem;
        border-top-left-radius: 0.3rem;
        background-color: transparent;
        margin: 0.5rem;
    }

    tbody {
        height: 100%;
    }
}

@media screen and (max-width: 830px) and (min-width:440px) {
    h1 {
        margin: 0;
        /* width: 50%; */
    }

    table {
        width: 90%;
    }

    #corner {
        height: 1.8rem;
        width: 2rem;
        right: 1%;
    }
}