/**********************
Global
**********************/

:root {
    --brown: #C5946C;
    --light-brown: #d9b596;
    --black: #221e1f;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--black);
}

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

label,
button,
input,
optgroup,
select,
textarea {
    font: inherit;
    color: inherit;
    background-color: transparent;
    display: block;
    padding: 0;
    margin: 0;
    text-align: left;
    border: none;
}

input,
select,
textarea {
    border: 1px solid lightgray;
    padding: 10px;
}

textarea {
    resize: none;
}

img,
picture,
video {
    display: block;
    height: auto;
    width: 100%;
}

dialog {
    max-width: none;
    max-height: none;
    border: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
}

dialog[open] {
    display: flex;
}

@media (max-width: 800px) {
    dialog {
        align-items: flex-start;
    }
}

/************
Button Loading
************/

.button {
    background-color: var(--brown);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    text-align: center;
    font-size: 18px;
    padding: 15px 45px;
    appearance: none;
    cursor: pointer;
    display: block;
    width: 100%;
}

.button.center {
    margin: auto;
}

.button.loading {
    position: relative !important;
    pointer-events: none !important;
    color: transparent !important;
}

.button.loading::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

.button.loading.black::after {
    border-top-color: black;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}