﻿:root {
    --muted-color: #ffe2d7;
    --text-color: #fff4f0;
    --bg-top-color: #0f6983;
    --bg-bottom-color: #2691a5;
    --content-top-color: #e29686;
    --content-bottom-color: #faaa8f;
    --border-radius: 0.2rem;
    --card-color: #f7ab91;
    --header-font-size: 3rem;
    --big-font-size: 2rem;
}

@media (max-width: 500px) {
    :root {
        --header-font-size: 2.5rem;
        --big-font-size: 1.5rem;
    }
}

/*
@media (prefers-color-scheme: dark)
{
    :root {
        --muted-color: #757575;
        --text-color: #8a8a8a;
        --bg-top-color: #1e1f29;
        --bg-bottom-color: #20212e;
        --content-top-color: #2a363d;
        --content-bottom-color: #1e2930;
    }
}
*/

html {
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(var(--bg-top-color), var(--bg-bottom-color)) fixed;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: Garamond, serif;
    color: var(--text-color);
    user-select: none;
}

.container {
    background: linear-gradient(var(--content-top-color), var(--content-bottom-color));
    width: min(500px, 100%);
    min-height: min(500px, 100%);
    padding-bottom: 2rem;
    border-radius: var(--border-radius);
}

.header {
    font-size: var(--header-font-size);
    font-weight: normal;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

.header-divider {
    border-bottom: 1px solid var(--muted-color);
    width: 100%;
}

.content {
    margin-left: 5%;
    margin-right: 5%;
    display: grid;
    grid-row-gap: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:visited {
    color: inherit;
}

a:hover {
    color: inherit;
}

a:active {
    color: inherit;
}

.card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--card-color);
}

.name {
    font-size: var(--big-font-size);
    margin: 0;
    font-weight: normal;
    overflow: hidden;
}

.temperature {
    font-size: var(--big-font-size);
}

.temperature:after {
    content: '°C'
}

.muted {
    color: var(--muted-color);
}

.align-right {
    text-align: right;
}
