:root {
    font-family: Arial, Helvetica, sans-serif;
    --content-margin: 1rem;
    --flex-direction: row;
}

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

@media (max-width: 768px) {
    :root {
        --flex-direction: column;
        --content-margin: 1rem 0;
    }
    body {
        width: 100svw;
        height: 100svh;
    }
}

.content {
    display: flex;
    flex-direction: var(--flex-direction);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: var(--content-margin);
}

.temp::after {
    content: "℃";
}

.data {
    flex-grow: 1;
    font-size: 3rem;
    border: 1px solid darkblue;
    border-radius: 10px;
    text-align: center;
    background-color: lightblue;
    position: relative;
    width: 85%;
}

.data > label {
    font-weight: bold;
    display: block;
}

input[type=checkbox].electricity {
    width: 3rem;
    height: 3rem;
}

input[type=checkbox].electricity:checked::after {
    content: "⚡";
    position: absolute;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: white;
    visibility: hidden;
}

.loading.visible {
    visibility: visible;
}