html * {
    box-sizing: border-box;
}

body, button, input, textarea, label, img, menu, a, a:focus, a:active, a:visited {
    all: unset;
    text-decoration: none;
    color: inherit;
}

a {
    display: block;
}

button:focus, button:active, button:focus *, button:active * {
    outline: none !important;
}

button::-moz-focus-inner {
  border: 0;
}

@font-face {
    font-family: "Ubuntu";
    src: url(/website/fonts/Ubuntu-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Pacifico";
    src: url(/website/fonts/Pacifico-Regular.ttf) format("truetype");
}

:root {
    --color_bg_top_bar: #2c3645;
    --color_tx_top_bar: #ddd;
    --color_bg_body: #e2e7f7;
    --color_tx_body: #13171e;
    --font_header: Pacifico;
}

html {
    font-family: Ubuntu;
    background: var(--color_bg_body);
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color_tx_body);
}

h1 {
    font-family: var(--font_header);
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
}

top_area, footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .8rem .5rem 1.3rem .5rem;
    width: 100%;
    background: var(--color_bg_top_bar);
    color: var(--color_tx_top_bar);
}

logo_large {
    font-family: Pacifico;
    font-size: 2.5rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 0 1rem;
}

logo_large:hover {
    background: #0f1a2f;
    color: white;
}

menu {
    display: flex;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
}

menu_item {
    display: block;
    margin: 0 0.5rem;
    padding: .4rem;
    cursor: pointer;
    border-radius: 4px;
}

menu_item:hover {
    background: #0f1a2f;
    color: white;
}

main_area {
    width: 600px;
    padding: 0 1rem;
    text-align: justify;
    font-size:1.1rem;
}

main_area p {
    line-height: 1.7em;
}

dd_table.form {
    align-items: center;
    --gap: .5em;
    --c1: max-content;
}

dd_table.form input {
    box-sizing: border-box;
    border: 1px solid #a3b2c7;
    border-radius: 4px;
    width: 100%;
    padding: .3em;
}

label {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

dd_table.form label {
    grid-column-end: span 2;
    margin-top: 2em;
}

dd_table.form optional {
    display: block;
    font-size: 1rem;
    font-style: italic;
}

dd_table.form optional::before {
    content: "opcional";
}

dd_table.form textarea.submission_comment {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #a3b2c7;
    border-radius: 4px;
    padding: .3em;
    font-size: 1.1rem;
    min-height: 6rem;
    height: unset;
}

ol {
    font-size: 1rem;
    padding-left: 1.3em;
}

textarea.chords {
    width: 34ch;
    border: 1px solid #a3b2c7;
    border-radius: 4px;
    word-wrap: break-word;
    text-wrap: unrestricted;
    font-family: monospace;
    white-space: pre;
    font-size: 1.1rem;
    min-height: 600px;
    text-align: left;
    padding: .3em;
}

#recaptcha_container {
    margin-top: .5em;
}

send_button {
    display: inline-block;
    border-radius: 4px;
    font-weight: bold;
    background: #126cbd;
    color: #ddd;
    padding: .5em;
    font-size: 1rem;
    text-transform: uppercase;
    margin: .5em;
    cursor: pointer;
}

send_button:hover {
    background: #074a86;
    color: white;
}

popup {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.2);
    display: none;
    justify-content: center;
    align-items: center;
}

popup notification, popup loading {
    max-width: 100%;
    width: 400px;
    background: var(--color_bg_body);
    padding: 1em;
    border-radius: .5em;
    text-align: center;
    margin: 0 .5em;
    display: none;
}

popup message {
    display: block;
}

popup notification button {
    background: var(--color_bg_top_bar);
    color: var(--color_tx_top_bar);
    padding: .2em .5em;
    margin-top: 1em;
    border-radius: .3em;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
}

popup notification button:hover {
    color: #fff;
}

popup.notification notification,
popup.loading loading {
    display: block;
}

.lds-dual-ring {
  --ring-color: #232b37;
  display: inline-block;
  width: 40px;
  height: 40px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--ring-color);
  border-color: var(--ring-color) transparent var(--ring-color) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media(max-width: 600px) {
    main_area {
        width: 100%;
    }
    
    dd_table.form {
        --c1: 1fr;
        --c2: ;
    }
    
    dd_table.form label {
        grid-column-end: unset;
    }
    
    textarea.chords {
        width: 100%;
    }
}
