@import url(https://fonts.googleapis.com/css2?family=League+Spartan:wght@500&display=swap);
:root {
    --color1: #e50046;
    --color1-dark: #a5123f;
    --color1-darker: #781a37;
    --color1-light: #f8c3d3;
    --color1-lighter: #fbf4f7;
    --almost-black: #2c2c2c;
    --almost-white: #fcfcfc;
    --soon-tooltip-content: "Soon!";
    --estimated-runtime: "Estimated runtime: -";

    --bim-ui_accent-base: var(--color1-light);
    --bim-ui_main-base: var(--color1);

    --bg-color: #F4F4F4;
    --inactive-tab: #dfdfdf;
}

body {
    font-family: 'Nunito', 'Segoe UI', 'Arial', 'sans-serif';
    color: var(--almost-black);
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    width: 100%;
    height: 100svh;
    position: fixed;
    display: flex;
    flex-direction: column;
}

#whole-page {
    height: 100svh;
    display: flex;
    flex-direction: column;
}

#overlay {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s, color 0.3s;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
}

#overlay.active {
    background-color: rgba(157, 190, 216, 0.4);
    color: rgba(255, 255, 255, 1);
    transition: background-color 0.3s, color 0.3s;
}

#overlay.faded {
    pointer-events: all;
    /* Disables every buttons below */
    background-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 1);
    transition: background-color 0.4s, color 0.1s;
}

canvas {
    width: 100% !important;
}

#popup-info {
    overflow-y: visible;
    display: block;
    justify-content: center;
    align-items: center;
    position: fixed;
    max-height: 85svh;
    min-width: 60%;
    max-width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--almost-white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    opacity: 1;
}

#popup-info-content {
    padding-bottom: 50px;
}

#close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#close-btn img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: width, height 0.2s;
    background-color: var(--color1-light);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


#close-btn img:hover {
    width: 32px;
    height: 32px;
}

#popup-message {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color1-light);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    color: var(--almost-black);
    padding: 10px 20px;
    font-size: 18px;
    z-index: 9999;
    opacity: 0.95;
}

#popup-message.shake {
    animation: shake 0.9s ease-out 1;
}

#popup-message.fadeout {
    animation: fadeOut 0.8s ease-in-out forwards;
}


@keyframes shake {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translate(-50%, -50%) translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translate(-50%, -50%) translateX(5px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 0.95;
    }

    to {
        opacity: 0;
    }
}


#header {
    z-index: 100;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--almost-white);
    padding: 16px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 40px;
}

#app-name {
    display: flex;
    flex-direction: row;
}

#app-logo {
    cursor: pointer;
}

#app-logo img {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 42px;
    pointer-events: none;
}

#title {
    font-size: 1.4rem;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    align-items: baseline;
    justify-content: flex-start;
    gap: 20px;
    overflow: visible;
    padding: 0 20px;
    text-wrap: balance;
}

#title .current {
    font-family: 'League Spartan', 'Nunito', 'Segoe UI', 'Arial', 'sans-serif';
    font-size: 2.0rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color1)
}

#download-desktop {
    margin-left: auto;
    font-size: 1.3rem;
    text-transform: none;
    border-radius: 25px;
    border: 1px solid #ccc;
    padding: 6px 12px;
    cursor: pointer;
    position: relative;
    color: var(--almost-black);
    text-decoration: none;
}

#download-desktop::before {
    text-transform: none;
    content: var(--desktop-tooltip-content);
    position: absolute;
    background-color: #666666;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 1rem;
    font-weight: lighter;
    visibility: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
    overflow: visible;
}

#download-desktop:hover::before {
    opacity: 0.9;
    display: inline-block;
    visibility: visible;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 45px;
}

#download-desktop:hover {
    background-color: var(--color1-light);
    transition: background-color 0.3s;
}

.app {
    cursor: pointer;
}

#other-apps {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    overflow: hidden;
    gap: 10px;
}

#other-apps span {
    position: relative;
    overflow: visible;
}

.soon {
    color: #bdbdbd;
    cursor: default;
}

#dropdown-btn {
    text-transform: uppercase;
    border-radius: 7px;
    padding: 4px 8px;
    margin-left: -8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#dropdown-btn.active {
    background-color: var(--color1-light);
}

#dropdown-content {
    border-radius: 7px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: var(--color1-lighter);
    /* min-width: 160px; */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 150;
    text-align: right;
    transition: opacity 0.2s, visibility 0.2s;
    display: inline-block;
    white-space: nowrap;
    min-width: max-content;
    max-width: 90vw;
    overflow-wrap: break-word;
    word-break: break-word;
}

#dropdown-content a {
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 7px;
    display: block;
    font-size: 1rem;
    position: relative;
}

#dropdown-content a:hover {
    background-color: #f1f1f1;
}

#dropdown-content.show {
    opacity: 1;
    visibility: visible;
    display: block;
}



#language-selector {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    gap: 3px;
}

.language {
    min-width: 75px;
    height: 20px;
    overflow: visible;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    font-size: 0.8rem;
    padding: 0 7px;
    justify-content: space-between;
    gap: 3px;
    align-items: center;
    background-color: #f3f3f300;
    transition: background-color 0.2s;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.language:hover:not(.active) {
    background-color: #f9f9f9;
    cursor: pointer;
}

.language:active:not(.active) {
    background-color: #e6e6e6;
    cursor: pointer;
}

.language.active {
    background-color: #e3f1ff;
}

.flag {
    display: flex;
    flex-flow: row nowrap;
    height: 14px;
    gap: 3px;
}

.flag-icon {
    display: flex;
    gap: 4px;
    height: 15px;
    margin-right: 7px;
}

picture {
    display: flex;
}

#flex-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    margin: 0;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

#main-div {
    position: relative;
    flex: 1;
}

.masked-overflow {
    overflow-y: auto;
    /* Transparent gradient maskfor scrolling */
    padding: 0 20px;
    max-height: 85svh;


    --scrollbar-width: 20px;
    --mask-height: 25px;
    --mask-height-bottom: 50px;
    --mask-image-content: linear-gradient(to bottom,
            transparent,
            rgba(0, 0, 0, 0.25) calc(var(--mask-height)/2),
            rgba(0, 0, 0, 1) var(--mask-height),
            rgba(0, 0, 0, 1) calc(100% - var(--mask-height-bottom)),
            rgba(0, 0, 0, 0.25) calc(100% - (var(--mask-height-bottom)/2)),
            transparent);

    --mask-size-content: calc(100% - var(--scrollbar-width)) 100%;
    --mask-image-scrollbar: linear-gradient(black, black);
    --mask-size-scrollbar: var(--scrollbar-width) 100%;

    mask-image: var(--mask-image-content), var(--mask-image-scrollbar);
    mask-size: var(--mask-size-content), var(--mask-size-scrollbar);
    mask-position: 0 0, 100% 0;
    mask-repeat: no-repeat, no-repeat;

    -webkit-mask-image: var(--mask-image-content), var(--mask-image-scrollbar);
    -webkit-mask-size: var(--mask-size-content), var(--mask-size-scrollbar);
    -webkit-mask-position: 0 0, 100% 0;
    -webkit-mask-repeat: no-repeat, no-repeat;
}



#files-list {
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#files-list:empty {
    margin-bottom: 0;
}

#files-list li {
    padding: 5px 10px 10px 10px;
    border: 1px solid #ccc;
    background-color: #f3f9ff;
    transition: background-color 0.4s;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    align-items: center;
    border-radius: 12px;
    font-style: italic;
    text-wrap: nowrap;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
    width: 45svw;
    height: 200px;
    margin: 0;
    box-sizing: border-box;
}

#files-list li:not(.processing) {
    cursor: move;
}

#files-list li #upper {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.img-container {
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#files-list li #file-img {
    /* max-height: 150px;
    padding: 0 15px 5px 15px; */
    height: 100%;
}

#item-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    font-size: 1rem;
    /* width: 100%; */
    width: 80%;
    /* width: 270px; */
    max-width: 45svw;
    margin: 0 5px;
    /* gap: 10px; */
    color: var(--color1-dark);
}

#item-label span {
    padding: 0 5px;
}

#item-label .item-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

#item-label .item-scale {
    font-weight: bold;
}

#item-size {
    white-space: nowrap;
    font-size: 0.8rem;
    margin-left: 2px;
    color: #014a97;
}

.waiting {
    animation: rotateText 3s linear infinite;
}

#files-list li.new-item {
    background-color: #52a1f0;
    transition: background-color 0.05s;
}

#files-list li.warning {
    background-color: rgb(248, 170, 170);
    animation: clignotement 0.5s infinite;
}

#files-list li:hover:not(.processing):not(.new-item) {
    background-color: var(--almost-white);
    transition: background-color 0.2s;
}

#files-list li.processing {
    background-color: #eeeeee;
    color: #888;
}

#files-list li.processing #item-size {
    color: #888;
}

#move-icon {
    font-size: 1.3rem;
}

#trash-icon {
    font-size: 1.3rem;
    font-weight: normal;
    cursor: pointer;
}

#trash-icon:hover {
    color: #ff0000;
    transition: color 0.2s;
}

#multilevel-manager {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    overflow-y: auto;
}

#multilevel-files-and-storeys {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 10px;
}

#multilevel-storeys {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: 100%;
}

#load-more-plans {
    margin-top: 30px;
    margin-bottom: 90px;
}

#load-more-plans-btn {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: normal;
    padding: 5px 10px;
    gap: 8px;
    background-color: var(--almost-white);
    background-image: none;
    border: 1px solid #b8b8b8;
    box-shadow: none;
    color: var(--almost-black);
    transition: border 0.3s;
}

#load-more-plans-btn:hover {
    border-color: #444444;
}

.storey {
    height: 200px;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #525252
}

input[type="range"] {
    accent-color: var(--color1);
    height: 6px;
    width: 80%;
}


h1 {
    font-family: 'League Spartan', 'Nunito', 'Segoe UI', 'Arial', 'sans-serif';
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 25px;
}

h3 {
    font-size: 1.3rem;
    margin-block-start: 0.8em;
    margin-block-end: 0.6em;
}

p {
    margin-block-start: 1em;
    margin-block-end: 0.6em;
}

ul {
    list-style-type: none;
    padding-inline-start: 20px;
    margin-block-start: 0.6em;
    margin-block-end: 1em;
}

li {
    margin-bottom: 3px
}

table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

th,
td {
    border: 1px solid #bbbbbb;
    padding: 5px 5px;
    word-wrap: break-word;
    text-align: center;
}

#main-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-basis: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Problème de hauteur du panel si je ne mets pas ça */
#main-panel.processing {
    min-height: 100%;
    height: auto;
}

#main-panel.bigger {
    justify-content: space-between;
}

#main-panel.processing {
    justify-content: center;
    border: none;
    background-color: transparent;
}

#viewer-container {
    width: 100%;
    height: 100%;
    transition: all 0.3s;
}

#viewer-container.faded {
    opacity: 0.3;
}

#inputs {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-evenly;
    background-color: var(--almost-white);
    border: 2px dashed #cccccc;
    border-radius: 30px;
    margin: 35px;
    padding: 20px 15px;
    position: absolute;
    text-align: center;
    width: calc(100% - 110px);
}

#main-panel.bigger>#inputs {
    margin: 20px;
    width: calc(100% - 80px);
}


#info-btn {
    right: 30px;
    top: 30px;
}

#settings-btn {
    right: 30px;
    top: 85px;
}

.circle-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.circle-btn img {
    height: 45px;
    width: 45px;
    cursor: pointer;
    transition: width, height 0.2s;
    background-color: var(--color1-light);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.circle-btn img:hover {
    width: 50px;
    height: 50px;
}

#inputs-title {
    text-wrap: balance;
}

.waiting {
    animation: rotateText 3s linear infinite;
}

#file-input-label {
    padding-top: 0px;
    padding-bottom: 0px;
}

#file-input {
    display: none;
}

#inputs-oops {
    padding: 0 40px;
    color: #c4c4c4;
    font-weight: lighter;
    font-size: 3rem;
    text-wrap: balance;
}

#files-upload {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

button.settings {
    font-size: 0.9rem;
    font-weight: normal;
    padding: 3px 6px;
    border-radius: 4px;
    gap: 8px;
    background-color: var(--almost-white);
    background-image: none;
    border: 1px solid #c5c5c5;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    color: var(--almost-black);
    transition: border 0.3s;
}

button.settings:hover {
    border-color: #575757;
    cursor: pointer;
}

#reset-view {
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn {
    position: relative;
    font-family: 'Nunito', 'Segoe UI', 'Arial', 'sans-serif';
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    padding: 20px 30px;
    margin: 0 auto;
    border: none;
    border-radius: 8px;
    /* Pour la transition quand on passe à "smaller" (sinon, border black) */
    border-color: #c5c5c5;
    cursor: pointer;
    /*background-color: var(--color1-dark);*/
    /*background-color: linear-gradient(135deg, var(--color1), var(--color1-dark));*/
    background: linear-gradient(to right, var(--color1) 0%, var(--color1-dark) 25%, var(--color1) 50%, var(--color1-dark) 75%), var(--color1-darker) 100%;
    background-position-x: 66%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    color: white;
    background-size: 400% auto;
    text-wrap: balance;
}

.btn:not(:hover):not(:active):not(:disabled) {
    animation: callToAction 8s ease-in-out infinite;
}

#download-btn {
    width: 100%;
}

#floating-bimify-btn {
    display: none;
}

#floating-download-btn {
    display: none;
}

#floating-download-rvt-div {
    display: none;
}

#settings-btn {
    display: none;
}

@keyframes callToAction {

    0%,
    85% {
        background-position-x: 0%;
    }

    100% {
        background-position-x: 66%;
    }
}

.btn:hover:not(:disabled) {
    background-position-x: 85%;
}

.btn:active:not(:disabled) {
    background-position-x: right;
}

#load-files-btn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

#sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-width: 260px;
    max-width: 260px;
    background-color: var(--almost-white);
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#settings-back {
    display: none;
}

.hidden {
    display: none !important;
}

#config {
    margin-bottom: 20px;
    width: 100%;
    font-size: 0.9rem;
    padding-bottom: 45px;
}

.settings_form {
    display: flex;
    flex-direction: column;
}

.settings_form label {
    max-width: 100%;
    width: max-content;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

#config_settings {
    margin-bottom: 25px;
}

#config_settings.disabled {
    color: #888;
}

.settings_form:not(.disabled) .radioButton {
    cursor: pointer;
}

input[type="radio"] {
    margin-right: 5px;
    accent-color: var(--color1);
}

input[type="checkbox"] {
    margin: 0;
    margin-right: 5px;
    cursor: pointer;
    accent-color: var(--color1);
}

#camera-settings label {
    cursor: pointer;
}

#consent-text {
    font-weight: bold;
    cursor: pointer;
}

#consent-learnmore {
    font-weight: bold;
    color: var(--color1);
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 5px;
}

#consent-learnmore:hover {
    text-decoration: underline;
}

#processing-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 10px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
}

#processing-text {
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
    color: var(--almost-black);
    opacity: 0.7;
}


@keyframes bounce {

    0%,
    14%,
    100% {
        transform: translateY(0);
    }

    6% {
        transform: translateY(-0.3ex);
    }
}

#processing-text span {
    display: inline-block;
    animation: bounce 4s ease infinite;
}


#processing-icon img {
    height: 200px;
    opacity: 0.7;
    animation: rotateText 2s ease-in-out infinite;
}

#processing-icon.small {
    bottom: 15px;
    left: 15px;
    top: auto;
    transform: none;
    transition: all 0.5s;
    flex-direction: row;
    gap: 20px;
}

#processing-icon.small img {
    height: 50px;
    transition: all 0.5s;
}

#processing-icon.small #processing-text {
    font-size: 22px;
    transition: all 0.5s;
    order: 1;
}


.btn:disabled {
    background-color: #ccc;
    background-image: none;
    color: #525252;
    cursor: default;
}

.soon::before {
    text-transform: none;
    content: var(--soon-tooltip-content);
    position: absolute;
    background-color: #666666;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 1rem;
    font-weight: lighter;
    visibility: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.soon:hover::before {
    opacity: 0.9;
    display: inline-block;
    visibility: visible;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#sidebar-btns-div {
    width: 100%;
}

.btn.bimify::before {
    content: var(--estimated-runtime);
    position: absolute;
    background-color: #ffffffb6;
    color: var(--color1-darker);
    padding: 1px;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: lighter;
    visibility: visible;
    opacity: 1;
    white-space: nowrap;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
}

#bimify-btn {
    width: 100%;
    margin: 0;
}

#download-rvt-div {
    position: relative;
    color: white;
    width: 100%;
    margin-top: 10px;
}

#download-rvt-btn {
    width: 100%;
}

#download-rvt-btn.failed {
    color: #9c9c9c;
}

#floating-download-rvt-btn.failed {
    color: #9c9c9c;
}

.label-beta {
    position: absolute;
    bottom: 6px;
    right: 12px;
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.7;
    transform: rotate(-10deg);
    pointer-events: none;
    display: inline-block;
}

.label-unavailable {
    position: absolute;
    color: var(--color1-dark);
    bottom: 50%;
    right: 50%;
    font-size: 1.5rem;
    opacity: 0.7;
    font-weight: bold;
    transform: translateX(50%) translateY(50%) rotate(-15deg);
    pointer-events: none;
    display: inline-block;
}

.waiting-wheel-rvt::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 5px solid transparent;
    margin: -23px 0 0 -23px;
    opacity: 0.9;
    /* moitié width/height + border weight */
    border-top-color: var(--almost-white);
    border-radius: 50%;
    animation: spin 1.0s linear infinite;
    z-index: 2000;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.rvt-tooltip-container {
    position: relative;
    display: inline-block;
}

.rvt-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 200px;
    background-color: rgba(50, 50, 50, 0.9);
    color: var(--almost-white);
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 90%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.2rem;
    pointer-events: none;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
}

.rvt-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(50, 50, 50, 0.9) transparent transparent transparent;
}

.rvt-tooltip-container.disabled:hover .rvt-tooltip,
.rvt-tooltip-container.disabled:focus-within .rvt-tooltip {
    visibility: visible;
    opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
    .rvt-tooltip-container.disabled:active .rvt-tooltip {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}


#download-qto-btn {
    margin-bottom: 10px;
    width: 100%;
    padding: 6px 2px;
    font-size: 1.1rem;
    font-weight: normal;
}

#download-btn:not(.hidden) {
    animation: pulse 1.5s ease 8;
}

#download-rvt-div:not(.hidden):not(.disabled) {
    animation: pulse 1.5s ease 8;
}

#floating-download-btn:not(.hidden) {
    animation: pulse 1.5s ease 8;
}

#floating-download-rvt-div:not(.hidden):not(.disabled) {
    animation: pulse 1.5s ease 8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--color1-light);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: var(--almost-white);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-top: 35px;
    text-align: center;
}

#output-promo-logos {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
    width: 100%;
}

#output-promo-logos img {
    max-height: 60px;
    max-width: 100%;
}

#linkedin-big {
    color: var(--almost-white);
    background-color: rgb(0, 119, 181);
    font-size: 1.5rem;
    padding: 7px 12px;
    border-radius: 7px;
}


#output {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 15px;
    max-width: 90vw;
    /* max-height: 100svh; */
}

#output-title {
    padding-bottom: 30px;
    text-align: center;
}

#output-text {
    display: block;
    text-align: center;
    word-wrap: break-word;
    text-wrap: wrap;
    max-width: 100%;
}

#error-message {
    margin-block-start: 10px;
    display: block;
    text-align: center;
    word-wrap: break-word;
    text-wrap: wrap;
    max-width: 100%;
    font-weight: bold;
}

#copyBtn {
    z-index: 10;
    background-color: var(--almost-white);
    border: 1px solid #ccc;
    border-radius: 4px;
    position: absolute;
    top: 5px;
    right: 20px;
    width: 30px;
    padding: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}


#footer {
    background-color: var(--color1-lighter);
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1px 40px;
    font-size: 0.9rem;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
}

#copyright a {
    color: var(--almost-black);
}

#legal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

a {
    text-decoration: inherit;
    color: var(--color1-dark);
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

#medias {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.social {
    margin-left: 10px;
    font-size: 23px;
    color: rgb(109, 109, 109);
    transition: color 0.3s;
}

.social:hover {
    color: rgb(0, 0, 0);
}

#try-desktop {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 20px;
    background-color: var(--almost-white);
    border-radius: 10px;
    padding: 2px 12px;
    margin-left: auto;
    margin-right: auto;
}

#whole-download-page {
    /* background-color: var(--almost-white);
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 20px;
    text-align: center;
    overflow-y: auto;
}


#viewer-settings {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    margin: 15px;
    padding: 20px;
    background-color: rgba(250, 250, 250, 0.8);
    border-radius: 15px;
}

.viewer-settings-section:not(:first-child) {
    margin-top: 1.5rem;
}

.viewer-settings-section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.viewer-settings-section-content {
    width: fit-content;
}

#opacity-slider {
    cursor: pointer;
}

.swal2-container {
    z-index: 10000;
}


@keyframes rotateText {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@keyframes clignotement {

    0%,
    100% {
        background-color: #f3f9ff;
    }

    50% {

        background-color: rgb(248, 170, 170);
    }
}


@media only screen and (max-width: 1000px) {
    #header {
        padding: 5px 10px;
    }

    #inputs {
        margin: 20px;
        width: calc(100% - 80px);
    }

    .btn {
        padding: 15px 20px;
    }

    #popup-info {
        min-width: 80%;
        max-width: 90%;
    }

    #sidebar {
        min-width: 180px;
        max-width: 180px;
        padding: 15px;
    }

    #output-title {
        padding-bottom: 15px;
    }

    #working .status-img {
        height: 80px;
    }

    .circle-btn img {
        height: 35px;
        width: 35px;
    }

    .circle-btn img:hover {
        width: 40px;
        height: 40px;
    }

    #info-btn {
        right: 15px;
        top: 15px;
    }

    #settings-btn {
        right: 15px;
        top: 55px;

    }

    #inputs-oops {
        font-size: 2.5rem;
        padding: 0 30px;
    }

    #footer {
        font-size: 0.8rem;
    }

    #download-desktop {
        display: none;
    }

    #processing-icon img {
        height: 120px;
    }

    #processing-text {
        font-size: 22px;
    }

}

@media only screen and (max-width: 850px) {
    .language {
        min-width: auto;
    }

    .flag-icon {
        display: none;
    }
}

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

    #title {
        font-size: 1.0rem;
        padding: 0 10px;
    }

    #title .current {
        font-size: 1.4rem;
    }

    #other-apps {
        display: none;
    }

    #sidebar.show {
        opacity: 1;
        transform: translateX(0);
        display: flex;
    }

    #sidebar {
        z-index: 9000;
        min-width: 260px;
        max-width: 260px;
        opacity: 0.5;
        right: 0;
        top: 0;
        bottom: 0;
        position: absolute;
        transform: translateX(100%);
        padding: 10px;
        transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    }


    #sidebar.show>#settings-back {
        position: absolute;
        top: 25px;
        right: 20px;
        display: block;
        padding: 3px;
        cursor: pointer;
        z-index: 9100;
    }

    #img-back {
        height: 30px;
    }

    #bimify-btn {
        display: none;
    }

    #download-btn {
        display: none;
    }

    #download-rvt-div {
        display: none;
    }

    #floating-bimify-btn {
        display: block;
        position: absolute;
        bottom: 10px;
        right: 40px;
        left: 40px;
        padding: 10px;
        text-align: center;
    }

    #floating-download-btns {
        display: flex;
        flex-direction: column;
        position: absolute;
        bottom: 10px;
        right: 40px;
        left: 40px;
        padding: 10px;
        text-align: center;
        gap: 10px;
    }

    #floating-download-btn {
        display: block;
        width: 100%;
        padding: 10px 20px;
    }

    #floating-download-rvt-div {
        display: block;
        position: relative;
        color: white;
    }

    #floating-download-rvt-btn {
        width: 100%;
        padding: 10px 20px;
    }

    #settings-btn {
        display: flex;
    }

    #main-panel.bigger>#inputs {
        margin-bottom: 75px;
    }

    #app-name {
        flex-direction: column;
    }

    #app-logo img {
        height: 36px;
    }

    #dropdown-content a {
        padding: 7px 15px;
        font-size: 0.9rem;
    }

    .social {
        font-size: 20px;
    }

    #title {
        margin: 5px 0;
    }

    #working .status-img {
        height: 50px;
    }

    #popup-info {
        padding: 10px;
    }

    #inputs-oops {
        font-size: 2rem;
        padding: 0 20px;
    }

    #footer {
        padding: 1px 10px;
    }

    #footer.hidden-on-smartphone {
        display: none;
    }

    #legal {
        gap: 15px;
    }

    #output-promo-div {
        padding: 10px;
    }

    #output-promo-logos {
        gap: 10px;
        margin-top: 2px;
    }

    #output-promo-logos img {
        max-height: 40px;
    }

    #linkedin-big {
        font-size: 1.1rem;
        padding: 4px 7px;
    }

    #multilevel-files-and-storeys {
        align-self: flex-start;
    }

    #files-list li {
        width: 60svw;
        height: 120px;
    }

    #item-label {
        max-width: 60svw;
    }

    .storey {
        height: 120px;
        font-size: 1.5rem;
    }
}

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

    #title,
    #dropdown-btn {
        gap: 5px;
        font-size: 1rem;
    }
}
