.gale-simulator {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

* {
    box-sizing: border-box;
    font-size: 16px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#userForm {
    font-size: 16px;
}

header label {
    margin: 10px;
}

h1 {
    flex: 1;
    font-size: 16px
}

main {
    flex: 1;
    overflow: scroll;
    max-width: 100vw;
}

main > section {
    display: none;
    flex-direction: column;
}

main > section:target {
    display: flex;
}

#contentFrame {
    flex: 1;
}

.cards img {
    max-width: 100%;
    height: 180px;
}

ul.cards {
    overflow: scroll;
    max-width: 100%;
    display: flex;
    cursor: pointer;
}

.cards li {
    appearance: none;
    list-style-type: none;
    width: 200px;
    height: 300px;
    box-shadow: -5px 5px 2px -2px var(--lightgray);
    background: white;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

main {
    background: var(--light-gray);
    max-width: 100vw;
    overflow: scroll;
}

nav {
    display: flex;
    justify-content: space-around;
    border-top: 2px solid gray;
}

nav > a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 12px;
}

form[name="measure"] input[type="submit"] {
    background: var(--dialog_button);
    border: none;
    box-shadow: -1px 1px 2px -2px var(--lightgray);
    color: white;
    padding: 10px;
    flex: 1;
    margin: 5px;
}

#sensor img {
    width: 100px;
}

#sensor > section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

fieldset[name="perSensor"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
}

fieldset[name="perSensor"] label {
    display: flex;
    flex: 1;
    margin: 10px;
}

fieldset[name="perSensor"] input {
    font-size: 25px;
    width: 80px;
}

fieldset[name="perSensor"] label > *{
    flex: 1;
}

#sensor .header {
    display: flex;
}

fieldset[name="submit"] {
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    width: 80vw;
}

iframe {
    width: 100%;
    border: none;
}