@font-face {
    font-family: "handodle";
    src: url("/static/handodle.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(#bbb, #777);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 1.5s ease-in-out;
}

body.status-green {
    background: radial-gradient(#cfc, #7f7);
}

body.status-yellow {
    background: radial-gradient(#eef, #ee4);
}

body.status-red {
    background: radial-gradient(#fcc, #f77);
}

body.status-error {
    background: radial-gradient(#bbb, #777);
}

.container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90%;
    height: 85%;
    transform: translate(-50%, -50%);
}

h1, h2 {
    font-family: "handodle";
    color: #2d3748;
    text-align: center;
}

h1 {
    font-size: 3.0em;
    margin-bottom: 0;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

#app {
    display: table;
    width: 100%;
    height: 100%;
    background: #f7fafc;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

#app .header {
    display: table-row;
    max-height: 20%;
}

#app .main {
    display: table-row;
    max-height: 70%;
    position: relative;
}

#app .footer {
    display: table-row;
    max-height: 10%;
}

.status-icon {
    font-size: 80px;
    margin: 15px;
}

.status-icon img {
    max-width: 60%;
    height: auto;
    object-fit: contain;
}

.description {
    font-family: "handodle";
    font-size: 2.2em;
    color: #4a5568;
    margin-bottom: 15px;
}

.about-page {
    font-size: 1.8em;
    line-height: 150%;
    color: #4a5568;
    max-width: 60%;
    margin: auto;
}

.spinner {
    animation: spin 5s linear infinite;
}

#status {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    margin: auto;
}

#status.fade-out {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-info {
    text-align: center;
    font-size: 1em;
    color: #a0aec0;
}