@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200;300;400;500;600&display=swap");

:root {
    --clr-main: #f6f6f6;
    --clr-font: #999999;
    --clr-bg: #e6e6e6;

    --clr-icons: #cccccc;
    --clr-orange: #d47e54;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Josefin Sans", sans-serif;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    background-color: #646060;
    overflow: hidden;
    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    min-height: 100vh;
    min-height: fill-available;
    min-height: -webkit-fill-available;
}

html {
    height: fill-available;
    height: -webkit-fill-available;
}

#loadingScreen {
    position: absolute;
    width: 100vw;
    height: 100vh;
    color: white;
    font-size: 50px;
    text-align: center;
    background-color: #ffffffcc;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}

.m-fadeOut {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 300ms, opacity 300ms;
}

.m-fadeIn {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 300ms;
}

#loadingScreen .logo {
    margin-left: 0;
    margin-bottom: 35px;
    position: initial;
}

#loadingScreen .text {
    color: #000;
    font-size: 24px;
    font-weight: 800;
}

#render-canvas {
    margin: 0;
    width: 100vw;
    height: 100vh;
    outline: none;
}

.content {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/

/* @media (min-width: 1281px) { */
main {
    display: flex;
    margin-inline: 1%;
    justify-content: flex-end;
    align-items: center;

    font-family: "Josefin Sans", sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    margin-top: 50px;
}

#selected_seat .icon {
    border-radius: 50%;
    box-shadow: 0px 0px 10px -2px var(--clr-font);
}

.seat .seat-image {
    border-radius: 50%;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 1.5rem;
    margin-left: 90px;
    position: absolute;
}

.logo_img {
    width: 200px;
    height: auto;
}

.close {
    position: absolute;
    right: 0;
    margin-top: 25px;
    margin-right: 25px;
    pointer-events: auto;
}

.close .material-icons-outlined {
    font-size: 30px;
    color: #000;
}

.container {
    display: flex;
    flex-direction: column;

    /*background-color: var(--clr-main);*/
    width: 40%;
    max-width: 500px;
    pointer-events: auto;
}

.description-container {
    display: flex;
    flex-direction: column;

    padding-bottom: 2.125rem;
    border-bottom: 1px solid var(--clr-bg);
}

.model {
    font-weight: 600;
}

.ref {
    font-size: 0.625rem;
    font-weight: bold;
}

.colors-container,
.seats-container,
.accessories-container {
    display: flex;
    flex-direction: column;
}

.title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    padding-block: 0.625rem;
    border-bottom: 1px solid var(--clr-bg);
}

.mobile {
    display: none;
}

.title p {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.title span {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
}

.preview {
    width: 35%;
}

.preview > .color,
.preview > .icon {
    width: 40px;
    height: 40px;
}

.dropdown {
    cursor: pointer;
}

.icon,
.check {
    width: 30px;
    height: 30px;
}

.tooltip {
    position:relative;
}

.tooltip:before {
    display:none; /* hide by default */
}

.icons .small:hover {
    background-color: #626262;
}

.icons .small:hover .material-icons-outlined {
    color: var(--clr-icons);
}

.grey_filter {
    filter: invert(80%) sepia(0%) saturate(80%) hue-rotate(220deg)
        brightness(101%) contrast(101%);
}

.orange_filter {
    filter: invert(64%) sepia(10%) saturate(2875%) hue-rotate(331deg)
        brightness(90%) contrast(83%);
}

.category {
    display: flex;
    flex-direction: column;

    padding-inline: 1.5rem;
    padding-top: 0.625rem;
}

.category > p {
    padding-block: 0.3125rem;
}

#color-container,
#seat-container,
#accessory-container {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-font);
    /*background-color: var(--clr-bg);*/
    transition: height 0.5s ease-in;
}

.colors {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem;

    padding-block: 0.625rem;
}

.display-none {
    height: 0;
    overflow: hidden;
}

#color-container.display-none.show {
    /*overflow: hidden;*/
    overflow-x: hidden;
    overflow-y: scroll;
    height: var(--height);
}

#seat-container.display-none.show {
    overflow: hidden;
    height: var(--height);
}

#accessory-container.display-none.show {
    overflow: hidden;
    height: var(--height);
}

.color,
.accessory {
    border: 7px solid white;
    box-shadow: 0px 0px 10px -2px var(--clr-font);
    border-radius: 100%;
    width: 54px;
    height: 54px;
}

.color.active,
.accessory.active {
    border: 7px solid var(--clr-orange);
}

.seat {
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    align-items: center;

    gap: 0.5rem;
    padding: 10px 1.5rem;
    font-weight: bold;
}

.seat-image {
    height: 50px;
}

.invisible {
    opacity: 0;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.buttons a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    margin-block: 1.65rem;
}

.black {
    background-color: black;
}

.small {
    font-size: 0.4rem;
}

.orange {
    background-color: var(--clr-orange);
}

.icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin-block: 0.25rem;
    margin-bottom: 40px;
}

.icons .small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--clr-icons);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.icons .small img {
    width: 60%;
    height: 60%;
}
/* } */

.left_menu {
    display: flex;
    position: absolute;
    flex-direction: column;
    max-width: 500px;
    margin-left: 90px;
    height: 100%;
    padding-bottom: 60px;
    justify-content: flex-end;
}

.left_menu .icons {
    pointer-events: all;
}

.left_menu .description {
    margin-top: 10px;
    line-height: 26px;
}


.mobile-icon.disable {
    opacity: 0.5;
}

.mobile-icon.active {
    font-weight: 400;
}

.mobile-icon.active .icon {
    color: #000;
}

/* 
##Device = Laptops, Desktops
##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) {
    /* CSS */
    
    .tooltip:before {
        content: attr(data-text); /* here's the magic */
        position:absolute;
        
        /* vertically center */
        top:50%;
        transform:translateY(-50%);
        
        /* move to right */
        left:-10px;
        margin-left:15px; /* and add a small left margin */
        
        /* basic styles */
        width:220px;
        padding:14px;
        padding-left: 22px;
        border-radius:24px;
        background:#626262;
        font-size: 16px;
        color: #fff;
        text-align:center;
    
        z-index: -1;
    }
    
    .tooltip:hover:before {
        display:block;
    }
}

/* 
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {
    /* CSS */
}

/* 
##Device = Tablets, Ipads (landscape)
##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* CSS */
}

/* 
##Device = Low Resolution Tablets, Mobiles (Landscape)
##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {
    :root {
        font-size: 10px;
    }

    .container {
        width: 100%;
    }

    .colors-container,
    .seats-container,
    .accessories-container {
        display: flex;
        flex-direction: column-reverse;

        position: relative;
    }

    #color-container,
    #seat-container,
    #accessory-container {
        position: fixed;
        left: 0px;
        bottom: 75px;
    }

    .mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        position: fixed;
        bottom: 0px;
        left: 0px;
        height: 75px;
        width: 100%;
    }

    .mobile-icon {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        align-items: center;
        color: white;
    }

    .title {
        display: none;
    }

    .icons {
        flex-direction: column;
        position: fixed;
        right: 10px;
        bottom: 75px;
    }
    .left_menu,
    .buttons {
        display: none;
    }
}

/* 
##Device = Most of the Smartphones Mobiles (Portrait)
##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {
    :root {
        font-size: 10px;
    }

    .logo {
        margin-left: 0;
        width: 100%;
    }

    .logo_img {
        width: 120px;
    }

    .container {
        width: 100%;
    }

    .colors-container,
    .seats-container,
    .accessories-container {
        display: flex;
        flex-direction: column-reverse;

        position: relative;
    }

    .description-container {
        /*
        position: absolute;
        bottom: 25vh;
        */
        display: none;
    }

    #color-container,
    #seat-container,
    #accessory-container {
        position: fixed;
        left: 0px;
        bottom: 75px;
        z-index: 1;
        width: 100%;
        background-color: rgba(255,255,255,0.4);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .icons {
        gap: 2rem;
    }

    .category > p,
    .seat {
        font-size: 1.6rem;
    }

    .mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        justify-content: space-around;
        gap: 1rem;
        position: fixed;
        bottom: 0px;
        left: 0px;
        height: 75px;
        width: 100%;
        background-color: #fff;
        color: #000;
    }

    .mobile .info {
        position: absolute;
        width: 100%;
        top: -60px;
        padding-left: 20px;
        font-size: 15px;
    }
    
    .mobile .info .variation {
        margin-bottom: 10px;
    }

    .mobile .grey_filter {
        filter: none;
        opacity: 0.75;
    }

    .mobile-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #000;
    }

    .mobile-icon .icon {
        margin-bottom: 12px;
        width: auto;
        height: auto;
        color: #383838;
    }

    .mobile-icon .description.discreet {
        color:#c1c1c1;
    }

    .title {
        display: none;
    }

    .icons {
        flex-direction: column;
        position: fixed;
        right: 10px;
        bottom: 100px;
    }
    
    .left_menu h1,
    .left_menu .description,
    .buttons {
        display: none;
    }
}
/*
@media  (orientation: landscape) {
    html {
      transform: rotate(-90deg);
      transform-origin: left top;
      width: 100vh;
      height: 100vw;
      overflow-x: hidden;
      position: absolute;
      top: 100%;
      left: 0;
    }
}*/