/**************************************************** RESET ****************************************************/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    box-sizing: border-box;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

button {
    appearance: none;
    font-weight: inherit;
    font-family: inherit;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/**************************************************** VARIABLE ****************************************************/

:root {
    --padding-s: 8px;
    --padding-m: calc(var(--padding-s) * 2);

    --animationspeed: 600ms;

    --color-black: #000000;
    --color-white: #ffffff;
    --color-grey: #D9D9D9;
    --color-darkgrey: #C7C7C7;

    --font-family: 'Times New Roman', Times, serif;
    --fontsize-s: 12px;
    --fontsize-m: 14px;
    --fontsize-l: 28px;
    --lineheight-s: 1.2;
    --lineheight-m: 1.2;
    --lineheight-l: 1.0;
    --fontweight-s: 400;
    --fontweight-m: 400;
    --fontweight-l: 400;

}

/**************************************************** BASIC ****************************************************/

* {
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-style: normal;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    touch-action: manipulation;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-size: inherit;
    line-height: inherit;
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
    font-family: var(--font-family) !important;
}

body {
    font-family: var(--font-family);
    font-size: var(--fontsize-m);
    line-height: var(--lineheight-m);
    font-weight: var(--fontweight-m);
    background:var(--color-grey);
    overflow-x: hidden;
}

/**************************************************** LINK ****************************************************/

a {
    color:inherit;
    text-decoration:underline;
}

a:hover {
    color:inherit;
    text-decoration:none;
}

.underline-no, .underline-no * {
    text-decoration: none;
}

/**************************************************** TYPE ****************************************************/

.text-s {
    font-size: var(--fontsize-s);
    line-height: var(--lineheight-s);
    font-weight: var(--fontweight-s);
}

.text-m {
    font-size: var(--fontsize-m);
    line-height: var(--lineheight-m);
    font-weight: var(--fontweight-m);
}

.text-l {
    font-size: var(--fontsize-l);
    line-height: var(--lineheight-l);
    font-weight: var(--fontweight-l);
}

p {
    margin-bottom: 1em;
    display: block;
    width: 100%;
}

p:last-child {
    margin-bottom: 0;
}

.case-upper,
.case-upper * {
    text-transform: uppercase;
}

/**************************************************** PADDING ****************************************************/

.padding-s {
    padding:var(--padding-s);
}

.padding-m {
    padding:var(--padding-m);
}

.padding-bottom-0 {
    padding-bottom: 0px;
}

.padding-top-0 {
    padding-top: 0px;
}

.gap-s {
    gap:var(--padding-s);
}

.gap-m {
    gap:var(--padding-m);
}

/**************************************************** GRID ****************************************************/

.grid {
    display: flex;
    flex-flow: row wrap;
    flex-grow: 0;
    flex-shrink: 0;
    width: 100%;
    align-items: start;
    align-content: start;
}

.w-1-12 {
    width: calc(100% / 12 * 1);
}

.w-2-12 {
    width: calc(100% / 12 * 2);
}

.w-3-12 {
    width: calc(100% / 12 * 3);
}

.w-4-12 {
    width: calc(100% / 12 * 4);
}

.w-5-12 {
    width: calc(100% / 12 * 5);
}

.w-6-12 {
    width: calc(100% / 12 * 6);
}

.w-7-12 {
    width: calc(100% / 12 * 7);
}

.w-8-12 {
    width: calc(100% / 12 * 8);
}

.w-9-12 {
    width: calc(100% / 12 * 9);
}

.w-10-12 {
    width: calc(100% / 12 * 10);
}

.w-11-12 {
    width: calc(100% / 12 * 11);
}

.w-12-12 {
    width: calc(100% / 12 * 12);
}

.w-auto {
    width: auto;
}

.w-fill {
    flex: 1;
}

/**************************************************** POSITION ****************************************************/

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
    z-index: 50;
}

.position-fixed {
    position: fixed;
    z-index: 50;
}

.position-sticky {
    position: sticky;
    z-index: 50;
}

/**************************************************** MEDIA ****************************************************/

img,
video,
figure {
    width: 100%;
    display: block;
}

figure {
    position: relative;
}

/**************************************************** RATIO ****************************************************/

.ratio-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ratio-3-4 {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.ratio-1-1 {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ratio-3-2 {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/**************************************************** ALIGN ****************************************************/

.align-center {
    justify-content: center;
    text-align: center;
}

.align-left {
    justify-content: flex-start;
    text-align: left;
}

.align-right {
    justify-content: flex-end;
    text-align: right;
}

/**************************************************** HEADER ****************************************************/

header div {
    margin:-0.3vw;
}

/**************************************************** TABLE ****************************************************/

.rectangular {
    border: 1px var(--color-black) solid;
    background-color: var(--color-grey);
}

.semicircular-left {
    border-radius: 100000000px 0px 0px 100000000px;
    aspect-ratio: 1/2;
}

.semicircular-right {  
    border-radius: 0px 100000000px 100000000px 0px;
    aspect-ratio: 1/2;
}

.semicircular-top {
    border-radius: 100000000px 100000000px 0px 0px;
    aspect-ratio: 2/1;
}

.semicircular-bottom {  
    border-radius: 0px 0px 100000000px 100000000px;
    aspect-ratio: 2/1;
}


.table > div {
    display:flex;
    align-items: center;
    justify-content: center;
}

.table-top,
.table-mid,
.table-bot {
    position: relative;
}

/**************************************************** DIMENSIONS ****************************************************/

.dim-line,
.dim-label {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.select-table:hover .dim-line,
.select-table:hover .dim-label {
    opacity: 1;
}

.dim-v {
    top: 0;
    bottom: 0;
    right: -10px;
    width: 0;
    border-left: 1px solid var(--color-black);
}

.dim-v::before,
.dim-v::after {
    content: '';
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    width: 8px;
    height: 1px;
    background: var(--color-black);
}

.dim-v::before { top: 0; }
.dim-v::after  { bottom: 0; }

.dim-v-label {
    top: 50%;
    right: -24px;
    transform: translateY(-50%) rotate(90deg);
    background-color: var(--color-grey);
    padding:0px;
    height:16px;
    display: flex;
    align-content: center;
    width:30px;
    text-align: center;
    justify-content: center;
}

.dim-h {
    left: 0;
    right: 0;
    bottom: -10px;
    height: 0;
    border-top: 1px solid var(--color-black);
    background-color: var(--color-darkgrey);
}

.semicircular-bottom .dim-h {
    bottom:auto;
    top:-9px;
}

.dim-h::before,
.dim-h::after {
    content: '';
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 8px;
    background: var(--color-black);
}

.dim-h::before { left: 0; }
.dim-h::after  { right: 0; }

.dim-h-label {
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: var(--color-grey);
    width:30px;
    justify-content: center;
    height:16px;
    display: flex;
    align-content: center;
}

.semicircular-bottom .dim-h-label {
    bottom:auto;
    top:-17px;
}

.select-table {
    cursor: pointer;
}

.select-table:hover {
    background-color: var(--color-darkgrey);
}

.select-table.selected {
    background-color: var(--color-darkgrey);
}

.materials {
    display: none;
}

.materials.active {
    display: flex;
}

.material-description-wrapper {
    display: none;
}

.material-description-wrapper.active {
    display: flex;
}

.tablesize-description-wrapper {
    display: none;
}

.tablesize-description-wrapper.active {
    display: flex;
}

.custom-dimensions {
    display: none;
}

.custom-dimensions.active {
    display: flex;
}

.custom-dimensions input[type="number"] {
    width: 100%;
    text-align: center;
    font: inherit;
    cursor: text;
    appearance: textfield;
    -moz-appearance: textfield;
}

.custom-dimensions input[type="number"]:disabled {
    background-color: var(--color-darkgrey);
    cursor: default;
}

.custom-dimensions input[type="number"]::-webkit-inner-spin-button,
.custom-dimensions input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.table-slider {
    display: none;
}

.table-slider.active {
    display: block;
}

.material {
    cursor: pointer;
}

.material:hover {
    background-color: var(--color-darkgrey);
}

.material.selected {
    background-color: var(--color-darkgrey);
}

.button {
    border: 1px var(--color-black) solid;
    background-color: var(--color-grey);   
    border-radius: 100000000px 100000000px 100000000px 100000000px;
    cursor: pointer;
}

.button:hover {
    background-color: var(--color-darkgrey);
}

#send-request {
    background-color: var(--color-darkgrey);
    cursor:pointer;
}

#send-request:hover {
    background-color: var(--color-darkgrey);
    cursor:pointer;
}

/**************************************************** HEADER ****************************************************/

header svg {
    display:flex;
}

/**************************************************** NAV ****************************************************/

nav .rectangular {
    height: 210px;
    display:flex;
    align-items: center;
    justify-content: center;
}

nav a.selected {
    background-color: var(--color-darkgrey); 
}

nav .rectangular:hover {
    background-color: var(--color-darkgrey);
}

/**************************************************** SLIDER ****************************************************/

.swiper-pagination {
    bottom: calc( var(--padding-m) + var(--padding-s)) !important;
}

.swiper-pagination-bullet {
    background-color: var(--color-grey);
    opacity: 1;
    border: 1px solid var(--color-black);
    width:10px;
    height:10px;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-black);
}

/**************************************************** VISUALIZER ****************************************************/

#visualizer {
    aspect-ratio:16/9;
    overflow:hidden;
    position:relative;
    cursor:move;
}

#req-status {
    text-align:center;
}

/**************************************************** COOKIES ****************************************************/

.cookie {
    display: none;
    z-index: 1000;
    bottom: 0;
    left: 0;
    width: 100%;
    background:var(--color-darkgrey);
    border-top:1px solid black;
}

.cookie-options {
    display: flex;
    gap: var(--padding-s);
}

.cookie-option input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2em;
    cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie > .grid {
    align-items: center;
}

/**************************************************** MOBILE ****************************************************/

@media screen and (min-width:1024px) {

    *.mobile {
        display:none !important;
        visibility: hidden !important;
    }

}

@media screen and (max-width:1023px) {


    *.desktop {
        display:none !important;
        visibility: hidden !important;
    }

    .materials-wrapper,
    .price-wrapper,
    .tables {
        width:100%;
        position: unset;
    }
    
    nav .rectangular {
        height: unset;
    }

    nav .w-fill {
        align-self: stretch;
    }

    #visualizer {
        aspect-ratio:1/1;
    }

    #content .w-6-12 {
        width:100%;
    }

    .select-table.selected .dim-line,
    .select-table.selected .dim-label {
        opacity: 1;
    }

    .cookie .w-6-12,
    .cookie .w-fill,
    .cookie-option {
        width:100%;
        flex:1;
        flex-shrink: 0;
    }

    .cookie > .grid,
    .cookie .cookie-options {
        flex-direction: column;
    }

}