@import "constant.css";

body {
    font-family: Gantari, sans-serif;
    font-size: 18px;
    line-height: 28px;
    background: var(--bg-main);
    color: var(--text-main);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
    margin: 0;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 20px;
}

a {
    color: var(--text-link);
    transition: color 280ms;
}

a:hover {
    color: var(--text-link-hover);
}

.btn {
    cursor: pointer;
    font-size: .75rem;
    letter-spacing: .1rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-button);
    background: var(--bg-button);
    padding: .75rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 4px;
    transition: color 280ms, background 280ms;
}

.btn:hover {
    color: var(--text-button-hover);
    background: var(--bg-button-hover);
}

.btn:disabled {
    cursor: not-allowed;
    color: var(--text-button-disabled);
    background: var(--bg-button-disabled);
}

.wrapper {
    display: block;
    width: 95%;
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: var(--bg-header);
}

header .wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    flex: auto;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

nav ul li {
    white-space: nowrap;
}

main .sections {
    display: flex;
    align-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
}

main .sections-dialog {
    width: 100%;
}

main .sections-doc {
    width: 100%;
}

main .sections-list {
    width: 100%;
    margin: 0 auto;
}

main .sections-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

main section {
    align-self: flex-start;
    background: var(--bg-section);
    border-radius: 3px;
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 0 2rem rgba(0, 0, 0, .1);
}

main section.section-1 {
    grid-column: span 1;
}

main section.section-1,
main section.section-2,
main section.section-3,
main section.section-4 {
    grid-column: span 1;
}

main section.section-center-half {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 4;
}

main section.section-half {
    grid-column: 1 / -3;
}

main section.section-full {
    grid-column: 1 / -1;
}

footer {
    background: var(--bg-footer);
}

footer .wrapper {
    display: flex;
    justify-content: space-evenly;
}

footer ul {

}

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

.font-smaller {
    font-size: .85rem;
    line-height: 1.25rem;
}

.font-decoration-none {
    text-decoration: none;
}

.border-top {
    border-top: 1px solid var(--border);
}

.border-right {
    border-right: 1px solid var(--border);
}

.border-bottom {
    border-bottom: 1px solid var(--border);
}

.border-left {
    border-left: 1px solid var(--border);
}

.float-right {
    float: right;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: .25rem;
}

.p-2 {
    padding: .5rem;
}

.p-3 {
    padding: .75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 2rem;
}

.px-1 {
    padding-left: .25rem;
    padding-right: .25rem;
}

.px-2 {
    padding-left: .5rem;
    padding-right: .5rem;
}

.px-3 {
    padding-left: .75rem;
    padding-right: .75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.py-3 {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.m-0 {
    margin: 0;
}

.m-1 {
    margin: .25rem;
}

.m-2 {
    margin: .5rem;
}

.m-3 {
    margin: .75rem;
}

.m-4 {
    margin: 1rem;
}

.m-5 {
    margin: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: .25rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-3 {
    margin-top: .75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: .25rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-3 {
    margin-bottom: .75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.ml-1 {
    margin-left: .25rem;
}

.ml-2 {
    margin-left: .5rem;
}

.ml-3 {
    margin-left: .75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-5 {
    margin-left: 2rem;
}

.mr-1 {
    margin-right: .25rem;
}

.mr-2 {
    margin-right: .5rem;
}

.mr-3 {
    margin-right: .75rem;
}

.my-1 {
    margin-top: .25rem;
    margin-bottom: .25rem;
}

.my-2 {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.my-3 {
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-5 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mx-1 {
    margin-left: .25rem;
    margin-right: .25rem;
}

.mx-2 {
    margin-left: .5rem;
    margin-right: .5rem;
}

.mx-3 {
    margin-left: .75rem;
    margin-right: .75rem;
}

.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.mx-5 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.list-unstyled {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

blockquote {
    padding: .75rem;
    margin: .75rem;
    color: var(--text-muted);
    background: var(--bg-main);
    border-left: 2px solid var(--border);
    border-radius: 3px;
}

form {
    position: relative;
}

form input,
form select {
    padding: .5rem;
    color: var(--text-input);
    font-size: 16px;
    background: var(--bg-main);
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 3px;
}

form select {
    cursor: pointer;
}

form input:disabled,
form select:disabled {
    cursor: not-allowed;
    color: var(--text-input-disabled);
    background: var(--bg-input-disabled);
}

form .row {
    display: flex;
    align-items: center;
}

form .row label {
    cursor: pointer;
    line-height: 20px;
}

form .row label:first-child {
    width: 33.33333333%;
    padding: 0 1rem 0 0;
}

form .row input:not([type="checkbox"]),
form .row select {
    width: 66.66666667%;
}

form .row label.checkbox {
    max-width: 60%;
}

.link-account {
    text-decoration: none;
    color: var(--text-main);
}

.link-account:hover {
    color: var(--text-main);
}

.note {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity .6s, visibility .6s;
}

.note.visible {
    display: block;
    visibility: visible;
    opacity: 1;
}

.note.hidden {
    visibility: hidden;
    opacity: 0;
    transition: opacity .6s, visibility .6s;
}

.note .progress {
    height: 4px;
    border-radius: 0 0 3px 3px;
    overflow: hidden;
}

.note .progress div {
    width: 100%;
    height: 4px;
    background: var(--color-red);
    transition: width 6s linear;
}

@media (min-width: 576px) {

    main .sections {
        grid-template-columns: repeat(2, 1fr);
    }

    main section.section-2,
    main section.section-3,
    main section.section-4 {
        grid-column: span 2;
    }

    main .sections-dialog {
        width: 90%;
        margin: 0 auto;
    }

}

@media (min-width: 768px) {

    .wrapper {
        width: 90%;
    }

    main .sections {
        grid-template-columns: repeat(2, 1fr);
    }

    main section.section-2,
    main section.section-3,
    main section.section-4 {
        grid-column: span 2;
    }

    main .sections-dialog {
        width: 80%;
        margin: 1rem auto;
    }

    main .sections-list {
        width: 95%;
    }

}

@media (min-width: 992px) {

    .wrapper {
        width: 85%;
    }

    main .sections {
        grid-template-columns: repeat(3, 1fr);
    }

    main section.section-3,
    main section.section-4 {
        grid-column: span 3;
    }

    main .sections-dialog {
        width: 70%;
        margin: 2rem auto;
    }

    main .sections-list {
        width: 90%;
    }

}

@media (min-width: 1200px) {

    .wrapper {
        width: 80%;
    }

    main .sections {
        grid-template-columns: repeat(3, 1fr);
    }

    main .sections-dialog {
        width: 60%;
        margin: 4rem auto;
    }

    main .sections-list {
        width: 80%;
    }

}

@media (min-width: 1400px) {

    .wrapper {
        width: 75%;
    }

    main .sections {
        grid-template-columns: repeat(4, 1fr);
    }

    main .sections-dialog {
        width: 50%;
        margin: 5rem auto;
    }

    main .sections-list {
        width: 70%;
    }

}