* {
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

:root {
    font-size: 16px;
    --fg-color: aliceblue;
    --bg-color: steelblue;
    --selected-color: lightgreen;

    --selected: aqua;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

header {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    align-items: left;
    background: steelblue;
    width: fit-content;
    @media screen and (orientation: landscape)  {
        /* header { */
            flex-direction: row;
            align-items: center;
        /* } */
    }
}

pre {
    white-space: pre-wrap;
    background-color: lightgray;
    padding: 10px;
    border-radius: 5px;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: top;
    flex-wrap: nowrap;
    background-color: transparent;
    gap: 1px;
    color: aliceblue;
    height: calc(10px + 1.6rem);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

nav ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
nav li {
    text-decoration: none;
    list-style-type: none;
    cursor: pointer;
    width: fit-content;
}

p {
    margin-left: 0.5rem;
}

.lightgreen {
    background-color: rgb(190, 252, 190);
    color: black;
}

.fgred {
    color: red;
}

a.fgblue {
    color: steelblue;
}

.bold {
    font-weight: bold;
}

.main {
    display: block;
    margin: 2.5rem 1rem auto;
}

.title-header {
    text-align: center;
    font-weight: bold;
    user-select: none;
}

.selected {
    background-color: maroon;
}

.stack {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: flex-start;
    gap: 0;
    margin: 1rem 1rem auto;
}

.row {
    display: inline-flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 50%;
    padding: 0.3rem;
    border: solid 1px;
    border-radius: 5px;
    margin: 1rem 1rem auto;
}

.blue {
    background-color: steelblue;
    color: white;
}

.purple {
    background-color: purple;
    color: white;
}

.big {
    font-size: 120%;
}

.cornered {
    border-radius: 5px;
    padding: 10px;
}

a {
    color: var(--background);
    font-weight: bold;
}

a:visited {
    color: silver;
}

a:hover {
    color: black;
}

h1.title {
    font-size: 150%;
    font-weight: bold;
    text-align: center;
    color: silver;
    text-transform: capitalize;
}

.frame {
    padding: 5px;
}

select, 
::picker(select)  {
appearance: base-select;
}    

select::picker-icon {
  color: var(--background);
  transition: 0.4s rotate;
}

select:open::picker-icon {
  rotate: 180deg;
}

.one-rem {
    height: 1rem;
    min-height: 1rem;
    max-height: 1rem;
    width: 1rem;
    min-width: 1rem;
    max-width: 1rem;
    border: solid 1 px black;
}

.two-rem {
    height: 2rem;
    min-height: 2rem;
    max-height: 2rem;
    width: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    border: solid 1 px black;
}

.pagina {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 90%; 
    margin-left: 5%; 
    min-height: 8rem; 
    gap: 1rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;  
    border: solid 1px var(--background); 
    border-radius: 8px; 
    margin-bottom: 2rem;
}

.renglon {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.2rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: stretch; 
    align-items: flex-start;
    gap: 5px;
    border: dotted 1px var(--background);
}

.renglon label {
    font-size: 1.4rem;
}

.renglon select {
    color: var(--background); 
    font-size: 1.4rem; 
    font-weight: bold; 
}

button.bgbutton {
    background: var(--bg-color);
    color: var(--fg-color);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 8px;
    margin: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button.bgbutton:hover {
    background: var(--bg-color);
    color: var(--fg-color);
}

button.bgbutton:active {
    background: purple;
    color: var(--fg-color);
}

@media  screen and (width>800px) {
    .renglon {
        margin-left: 3rem;
        margin-right: 3rem;
        padding: 0.5rem; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
    }

    .renglon label {
        font-size: 1.5rem;
    }

    .renglon select {
        font-size: 1.5rem; 
    }
}