:root {
    --default-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', 'sans-serif';
    --default-font-size: 20px;
}

html,
body {
    background-color: #c1cddc;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;

    font-family: var(--default-font);
    font-size: var(--default-font-size);
    color: #000000ab;

    user-select: none;
    margin: 0;
}

#main-panel {
    background-color: #ffffff4d;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 670px;

    border-radius: 16px;
    box-shadow: 3px 4px 96px -17px rgba(0, 0, 0, 0.5);
}

#main-panel-flex {
    display: flex;
    justify-content: center;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    flex-wrap: wrap;
}


#main-panel-wrap {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 32px;
    width: calc(100% - 64px);
}

#main-panel-content {
    flex: 1;
}

#temperature-panel {
    width: 100%;
    height: 180px;
    background-color: #5288c1;
    border-radius: 12px;
    position: relative;
}

#temperature-container {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: white;

    display: flex;
    flex-direction: row;
    align-items: top;
}

#temperature-text {
    font-size: 92px;
    font-weight: bold;
}

#temperature-buttons-container {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    right: 8px;
    width: 80px;
    display: grid;
}

#temperature-buttons-container button {
    border: solid;
    border-width: 2px;
    border-color: transparent;
    background-color: #0000002c;
    text-align: left;
    font-size: 16px;
    color: black;
    font-family: var(--default-font);
    transition: border-color 100ms ease, background-color 100ms ease;
    border-radius: 8px;
    padding: 6px 8px;
    min-height: 40px;
    width: 100%;
    margin: 2px 0;
    display: block;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    user-select: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    color: white;
}

#temperature-buttons-container button > .material-symbols-outlined {
    font-size: 1.6em;
    line-height: 0;
    margin-top: -2px;
}

#celsius {
    font-size: 32px;
    margin-top: 14px;
}



#temperature-buttons-container button:hover {

    background-color: rgba(0, 0, 0, 0.210);
}

#temperature-buttons-container button:active {

    background-color: #00000048;
}

#power-container {
    display: flex;
    flex-direction: row;
    margin-top: 16px;
}

#on-off-label {
    width: 100%;
    box-sizing: border-box;
    margin-right: 4px;
}

#power-icon {
    margin-top: -1px;
}

#settings-button {
    width: 48px;
}

p>* {
    vertical-align: middle;
}

p>.material-symbols-outlined {
    font-size: 1.2em;
}

p>button {
    display: inline-block;
    width: auto;
}

input[type="radio"] {
    display: none;
}

label, button {
    border: none;
    position: relative;
    background-color: #00000018;
    color: #00000088;
    font-family: var(--default-font);
    font-size: var(--default-font);
    cursor: pointer;
    align-items: center;
    gap: 0.8em;
    padding: 6px;
    border-radius: 6px;
    font-weight: 500;

    min-width: 24px;
    text-align: center;
    display: inline-block;

    margin-bottom: 4px;

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    
    transition: color 100ms ease, background-color 100ms ease;
}

label:before {
    display: none;
}

input:checked+label:before {
    display: none;
}

input:checked+label {
    background-color: #3583d7;
    color: #ffffff;
}

input:checked+label:hover {
    background-color: #398ee8;
    color: #ffffff;
}

input:checked+label:active {
    background-color: #3f9cff;
    color: #ffffff;
}

input:not(:checked)+label:hover, button:hover {
    background-color: #00000026;
}

input:not(:checked)+label:active, button:active {
    background-color: #0000003e;
}

.small-top-margin {
    margin-top: 4px;
}

.small-bottom-margin {
    margin-bottom: 0px;
}

label > .material-symbols-outlined, button > .material-symbols-outlined {
    font-size: 1.2em;
    line-height: 0;
    margin-top: -3px;
}

label > * {
    vertical-align: middle;
}

button > * {
    vertical-align: middle;
}



@media (max-width: 400px) {
    #main-panel-wrap {
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: 16px;
        width: calc(100% - 32px);
        font-size: 18px;
    }

    :root {
        --default-font-size: 18px;
    }
}