:root {
    --green: #1b8335;
    --red: #ca3f3f;
    --blue: #2b6dcf;
    --yellow: #cfa027;
    --background-color: #fcfcfc;
}


@font-face {
    font-family: "IBM Plex Mono";
    src: url("/static/fonts/IBMPlexMono-Regular.ttf");
    font-weight: normal;
}


html {
    background-color: var(--background-color);
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 100px 100px 15px 100px;
    position: relative;
    overflow-x: hidden;
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 100px);
}

h1 {
    font-weight: normal;
    letter-spacing: -0.5pt;
    margin: 0;
}

h2 {
    font-weight: normal;
    letter-spacing: -0.5pt;
    margin: 0;
}

a {
    color: black;
    text-decoration-color: var(--blue);
}

a:hover {
    color: var(--blue);
}

a:active {
    color: var(--green);
    text-decoration-color: var(--green);
}

u {
    text-decoration-color: var(--red);
}

.mobile-only {
    display: none;
    height: 0px;
}

footer {
    letter-spacing: -0.5pt;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;

    #footer-img {
        img {
            width: 50px;
        }
    }
}

content {
    width: 100%;
}

#hello {
    font-family: "IBM Plex Mono", monospace;
    font-size: 14pt;
    background-color: var(--red);
    padding: 5px 10px 5px 10px;
    border: 2px solid black;
    box-sizing: border-box;
    display: inline-block;
}

#page-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;

    #page-title {
        font-size: 48pt;
    }

    span {
        font-family: "IBM Plex Mono", monospace;
        text-align: right;
    }
}

panels {
    display: grid;
    gap: 2px;
    background-color: black;
    border: 2px solid black;
    box-sizing: border-box;

    panel {
        background-color: var(--background-color);
        position: relative;
        display: flex;
        height: 300px;
        
        padding: 20px;

        .site-info {
            position: relative;
            width: 500px;

            .site-title {
                display: flex;
                align-items: center;
                margin-bottom: 10px;
            }

            .site-name {
                font-size: 36pt;
                line-height: 0.9;
            }

            .site-img {
                height: 50px;
                margin-right: 10px;

                img {
                    height: 100%;
                    border-radius: 100%;
                    border: 2px solid black;
                    box-sizing: border-box;
                }
            }

            .site-url {
                font-family: "IBM Plex Mono", monospace;
            }

            .extra-info {
                font-family: "IBM Plex Mono", monospace;
            }

            .status {
                font-family: "IBM Plex Mono", monospace;
                font-size: 24pt;
                position: absolute;
                bottom: 0;
                background-color: var(--yellow);
                border: 2px solid black;
                box-sizing: border-box;
                padding: 10px 30px 10px 30px;
                border-radius: 10px;
                transition: all 0.25s ease;
            }
        }

        .ping-chart {
            display: relative;
            height: 100%;
            width: 100% !important;
            margin-left: 20px;

            canvas {
                width: 100% !important;
            }
        }
    }
}

@media screen and (max-width: 1160px) {
    body {
        padding: 25px 0 50px 0;
    }

    #hello {
        margin-left: 25px;
    }

    panels {
        border: none;
        border-top: 2px solid black;
        border-bottom: 2px solid black;
    }

    panel {
        height: 350px !important;
        flex-direction: column;
    }

    #page-header {
        margin: 0 25px 20px 25px;
    }

    #page-title {
        font-size: 32pt !important;
        margin-top: 10px;
    }

    .site-info {
        width: 100% !important;
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }

    .status {
        right: 0;
        font-size: 12pt !important;
        padding: 5px 15px 5px 15px !important;

        span {
            display: initial !important;
        }
    }

    .site-title {
        margin: 0 !important;
    }

    .site-name {
        font-size: 24pt !important;
    }

    .site-url {
        display: none;
    }

    .site-info span {
        display: none;
    }

    .ping-chart {
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 623px) {
    #page-header span {
        display: none;
    }
}