@font-face {
    font-family: garamond;
    src: url("./garamond.ttf");
}

* {
    font-family: garamond;
}

html,
body {
    padding: 0;
    margin: 0;
    background-color: #403830;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: #808080 #202020;
}

body {
    padding-bottom: 8px;
}

#groups {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 8px;
}

.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: solid 2px #707070;
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 8px;
    background: linear-gradient(0deg, #383028, #504840);
    user-select: none;
}

.groupName {
    background-color: #101820;
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #989090;
    margin-bottom: 8px;
    cursor: pointer;
    text-decoration: none;
}

.law {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    grid-template-rows: 1fr 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 0;
    background: linear-gradient(90deg, #202828 0%, #384858 33.3%, #384858 66.7%, #202828);
    box-shadow: inset 2px 2px #ffffff20, inset -2px -2px #00000060;
    padding: 8px;
    margin: 0 8px;
    font-size: 24px;
    height: 80px;
    width: 512px;
    border-radius: 8px;
    text-shadow: 0 0 1px #000000, 0 0 2px #000000, 0 0 3px #000000;
    cursor: pointer;
}

.law:hover,
#download:hover {
    filter: brightness(1.1);
}

.icon {
    grid-area: 1 / 1 / 3 / 2;
    width: 100%;
    filter: brightness(.7) contrast(2.25);
}

.categoryName,
.lawName,
.lawAmount,
.lawSwap {
    display: flex;
}

.categoryName {
    grid-area: 1 / 2 / 2 / 3;
    align-items: end;
    justify-content: start;
    color: #989090;
}

.lawName {
    grid-area: 2 / 2 / 3 / 3;
    align-items: start;
    justify-content: start;
    color: #f0f0e0;
    font-weight: bold;
}

.lawAmount {
    grid-area: 1 / 3 / 2 / 4;
    align-items: end;
    justify-content: center;
    color: #f0f0e0;
    font-weight: bold;
}

.lawSwap {
    grid-area: 2 / 3 / 3 / 4;
    align-items: start;
    justify-content: center;
    width: 32px;
    margin: 4px;
    filter: brightness(1.25)
}

#lawBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    background: rgb(0 0 0 / 50%);
    backdrop-filter: blur(4px);
}

#lawBackdrop.open {
    display: flex;
}

#lawMenu {
    width: 556px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

#buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 48px;
}

#buttons button {
    background: linear-gradient(90deg, #202828 0%, #384858 33.3%, #384858 66.7%, #202828);
    border: none;
    box-shadow: inset 2px 2px #ffffff20, inset -2px -2px #00000060;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    width: 548px;
    height: 100%;
    color: #f0f0e0;
    font-weight: bold;
    text-shadow: 0 0 1px #000000, 0 0 2px #000000, 0 0 3px #000000;
    font-size: 24px;
}

@media only screen and (max-width: 1280px) {

    html,
    body {
        width: fit-content;
    }
}