#wrapper{
    margin-left: auto;
    margin-right: auto;
    max-width: 48rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.wrapper-contents {
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
}

/* header */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.header-logo-text {
    display: none;
    height: 1.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
}

.header-menu-wrapper {
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.25rem;
}

.header-menu-text {
    padding: 0.25rem;
    font-weight: 500;
    color: rgb(23 23 23);
}

.header-lang-switch {
    border-radius: 0.25rem;
    background-color: rgb(229 229 229);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.header-lang-text {
    padding: 0.5rem;
    font-weight: 500;
    color: rgb(23 23 23);
}

.header-lang-selected {
    border-radius: 0.25rem;
    background-color: rgb(163 163 163);
}

.header-menu-button {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    height: 2rem;
    width: 2rem;
    border-radius: 0.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.sm-menu-wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 10;
    height: 100%;
    width: 100%;
    background-color: rgb(229 229 229);
    opacity: 0.95;
    transition-duration: 300ms;
    --tw-translate-x: 100%;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.sm-menu-wrapper.show {
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.sm-menu-top {
    display: flex;
    justify-content: flex-end;
}

.sm-menu-top-button {
    margin-right: 1.25rem;
    margin-top: 2.75rem;
    height: 2rem;
    width: 2rem;
    border-radius: 0.25rem;
}

.sm-menu {
    position: fixed;
    margin-top: 2rem;
    height: 100%;
}

.sm-menu-item {
    padding: 1rem 3rem;
}

.sm-menu-item-text {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgb(23 23 23);
}

/* main */
.main-wrapper {
    margin-left: auto;
    margin-right: auto;
    max-width: 48rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.main-top-fixed {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.main-header-text {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    line-height: 2.25rem;
    padding-bottom: 0.5rem;
}

.main-contents-wrapper {
    padding-top: 1rem;
    padding-bottom: 1rem;
    grid-template-rows: auto;
}

.main-contents-aside {
    display: none;
}

.main-contents {

}

/* footer */
.footer-wrapper {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social-wrapper {
    margin-bottom: 0.75rem;
    display: flex;
}

.footer-social-button {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text-gray-500);
}

.footer-social-button:hover {
    color: rgb(82 82 82);
}

.footer-email-icon {
    fill: currentColor;
    color: rgb(64 64 64);
    height: 1.5rem;
    width: 1.5rem;
}

.footer-email-icon:hover {
    fill: currentColor;
    color: rgb(59 130 246);
    height: 1.5rem;
    width: 1.5rem;
}

.footer-site-info {
    /*margin-bottom: 0.5rem;*/
    margin-bottom: 2rem;
    display: flex;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(115 115 115);
    gap: 0.5rem;
}

.sm-block {
    display: none;
}

@media (min-width: 640px){
    #wrapper{
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .header-logo-text {
        display: block;
    }

    .sm-block {
        display: block;
    }

    .header-menu-text{
        padding: 1rem;
    }

    .sm-hidden {
        display: none;
    }

    .header-menu-button {
        margin-left: 1rem;
    }

    .main-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .main-top-fixed {
        display: flex;
    }
}

@media (min-width: 1280px) {
    #wrapper{
        max-width: 64rem;
        padding-left: 0px;
        padding-right: 0px;
    }

    .main-wrapper {
        max-width: 64rem;
        padding-left: 0;
        padding-right: 0;
    }

    .main-contents-wrapper {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        -moz-column-gap: 1.5rem;
        column-gap: 8rem;
        --tw-divide-y-reverse: 0;
        border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
        border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
        --tw-divide-opacity: 1;
        border-color: rgb(229 229 229/var(--tw-divide-opacity));
    }

    .main-contents {
        grid-column: 2 / span 2;
        grid-row: 1 / span 2;
        padding-bottom: 0;
    }

    .main-contents-aside {
        display: block;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.round-button {
    border-radius: 9999px;
    background-color: var(--bg-gray-200);
    padding: 0.5rem;
    color: var(--text-gray-500);
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
}

.round-button:hover {
    background-color: var(--bg-gray-300);
}

.svg-size {
    height: 1.25rem;
    width: 1.25rem;
}


/*
!* footer *!
.footer-wrapper{
    display: grid;
    grid-template-rows: 1fr;
    background-color: var(--primary-dark-color);
    color: var(--color-white);
    position: absolute;
    width: 100%;
    height: 70px;
    bottom: 0;
    box-shadow: 0 -1px 5px 0 rgb(0 0 0 / 16%), 0 -2px 10px 0 rgb(0 0 0 / 12%);
}

.footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-menu a{
    padding: 0 1em;
    text-decoration-line: underline;
}

.footer-copy{
    display: flex;
    align-items: center;
    justify-content: center;
}
*/

/*!* menu *!
.menu-bar-wrapper{
    display: grid;
    grid-template-columns: 1fr 150px;
    grid-template-areas: "logo icon";
    align-items: center;
    background-color: var(--primary-dark-color);
    color: var(--color-white);
    padding: 0.5em 0;
    height: 46px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.menu-logo-wrapper{
    grid-area: logo;
    margin-left: 1em;
}

.menu-wrapper {
    grid-area: menu;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-icon{
    grid-area: icon;
    justify-self: right;
    margin-right: 1em;
    align-self: center;
}

.menu-wrapper a{
    display: inline-block;
    padding: 0 1em;
    font-size: 0.9em;
    font-weight: bold;
    !*text-decoration-line: underline;*!
}

.menu-wrapper a:hover, .menu-wrapper-small a:hover{
    background-color: var(--color-gray-blue);
}

.menu-wrapper-small{
    position: fixed;
    width: 100%;
    top: 46px;
    z-index: 1;
    background-color: var(--primary-dark-color);
    color: var(--color-white);
    padding: 0.25em 0;
    font-size: 0.9em;
    font-weight: bold;
}

.menu-wrapper-small a{
    display: block;
    padding: 0.25em 1em;
    !*padding: 0.5em;*!
}*/

/*.small-hide {
    display: block;
}

.small-show{
    display: none;
}*/


/*@media (max-width: 800px) {
    .menu-bar-wrapper{
        display: grid;
        grid-template-columns: 1fr 150px;
        grid-template-areas: "logo icon";
    }

    .small-hide {
        display: none;
    }

    .small-show{
        display: block;
    }
}*/

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    min-height: 50px;
    background-color: #fff;
    border: 1px solid var(--primary-background);
    border-radius: 5px;
    z-index: 100;
    display: none;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}

.toast-message .toast-content {
    padding: 0 10px;
    font-size: 14px;
    font-weight: bold;

}

.dimmed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
    z-index: 99;
    display: none;
}
