:root {
    --screen-md: 700px;
}

body {
    display: flex;
    flex-direction: column;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

header {
    border-bottom: 1px rgb(174, 171, 171) solid;
    margin-bottom: 5px;
    box-shadow: 0 0 5px rgba(174, 171, 171, .25);
}

.header-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 15px;
    height: 60px;
    z-index: 10;
}

.header-wrapper.flex-end {
    justify-content: end;
}

footer {
    padding: 10px 15px;
    height: 20px;
    border-top: 1px rgb(174, 171, 171) solid;
    box-shadow: 0 0 5px rgba(174, 171, 171, .25);
    z-index: 10;
}

.nav-item {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: normal;
    text-decoration: none;
    transition: color .2s ease;
    cursor: pointer;
    color: black;
}

.nav-item:hover {
    color: #313235;
}

.nav-item:active {
    color: black;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 1rem;
}

.header-right {
    display: flex;
    flex-direction: row;
    gap: 0 40px;
}

.menu-button {
    background: none;
    border: 0;
    outline: none;
    padding: 0;
    height: 3rem;
    width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;

    @media only screen and (min-width: 700px) {
        display: none;
    }
}

header.menu-open .icon-menu {
    display: none;
}

header:not(.menu-open) .icon-close {
    display: none;
}

.back-button {
    display: none;
    align-self: center;
    text-align: left;
    line-height: 1.5rem;

    @media only screen and (min-width: 700px) {
        display: inline-block;
    }
}

.login-left {
    @media only screen and (min-width: 700px) {
        display: none;
    }
}

.logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
}

.logo img {
    display: block;
    object-fit: contain;
    aspect-ratio: 16/9;
    max-height: 42px;

    @media only screen and (min-width: 700px) {
        max-height: 55px;
    }
}

.auth-container {
    display: none;
    flex-direction: row;
    gap: 0 1.5rem;

    @media only screen and (min-width: 700px) {
        display: flex;
    }
}

.auth-container div,
.auth-container form {
    align-self: center;
}

.auth-button {
    cursor: pointer;
    font-size: 16px;
    color: #313235;
    background-color: white;
    border: #313235 1px solid;
    padding: 12px 22px;
    transition: all;
    transition-duration: 150ms;
    text-decoration: none;
    align-self: center;
    border-radius: 999px;
    text-align: center;

    @media only screen and (max-width: 700px) {
        font-size: 14px;
        padding: 12px 12px;
    }
}

.auth-button:hover {
    background-color: #313235;
    color: white;
}

.auth-button:active {
    scale: 95%;
}

.dropdown-menu {
    max-height: 0;
    transition: max-height .2s ease;
    overflow: hidden;

    @media only screen and (min-width: 700px) {
        display: none;
    }

}

.dropdown-menu-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    background-color: #EBEBEE;
}

.dropdown-menu-wrapper::before,
.dropdown-menu-wrapper::after {
    content: "";
    height: 32px;
    width: 100%;
    position: absolute;
    left: 0;
}

.dropdown-menu-wrapper::before {
    top: 0;
    background: linear-gradient(180deg, #A5A5A8 -125%, #EBEBEE 100%);
}

.dropdown-menu-wrapper::after {
    bottom: 0;
    background: linear-gradient(0deg, #A5A5A8 -125%, #EBEBEE 100%);
}

.dropdown-menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu-wrapper ul li {
    padding: 0.5rem;
    border-bottom: 1px solid #A5A5A8;
}

main {
    display: flex;
    flex-direction: row;
    flex: 100% 1 1;
    position: relative;
}

#configurator-iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

dialog[open].info {
    width: 100vw;
    height: 100vh;
    z-index: 100;
    border: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

dialog[open].info .dialog-content {
    background: white;
    min-width: 192px;
    width: clamp(192px, 60vw, 1200px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;

    margin: 0 32px;
    padding: 64px 32px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 32px), -50%);
}

dialog.info form {
    width: 100%;
}

dialog.info h3 {
    letter-spacing: 0.16px;
    font-weight: 400;
    font-style: normal;
    font-size: 26px;
    line-height: 31px;
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    color: #050505;
    margin: 0;
}

dialog form button {
    color: white;
    width: 100%;
    padding: 1rem 25px;
    border: none;
    background-image: linear-gradient(180deg, #3a3a3a, #000 99.99%, #3a3a3a);
}

dialog.info form button:hover {
    background-image: none;
    background-color: rgb(37 37 37);
}
