html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
}
.flex-fill {
    flex: 1 1 auto;
}
.footer {
    flex-shrink: 0;
}

html {
    font-size: 14px;
    overflow-y: auto;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, l0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.landing-page {
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: antiquewhite;
}

    .landing-page button {
        padding: 1px 20px;
        font-size: 1.2em;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
    }

        .landing-page button:hover {
            background-color: #0056b3;
        }

.mic-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mic-button.active {
        background-color: green;
    }

.button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.audioguide-button {
    margin: 0 5px;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    font-size: 18px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

#map {
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 12px;
        width: 12px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(12px);
    }

.page-body {
    padding-top: 70px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: darkseagreen;
    opacity: 0.9;
    padding: 8px 8px;
    display: flex;
    justify-content: flex-start;
    z-index: 900;
    align-items: center;
    gap: 4px;
}        

.top-bar-right {
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
}

.top-bar-center {
    text-align: center;
    display: flex;
    align-items: center;
}

    .top-bar-center .credits-link {
        font-weight: normal;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        text-decoration: none;
        transition: background-color 0.3s ease;
        cursor: pointer;
        padding: 0;
        height: 40px;
    }


.credits-label, .credits-value {
}

.top-bar-left {
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right:8px;
}

#logo {
    padding: 8px 3px;
}

.top-bar-logo {
    display: flex;
    align-items: center;
}
    .top-bar-logo a img {
        display: block;
        height: 28px;
    }

.top-bar a {
    color: white;
    font-weight: bold;
    padding: 8px 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    height: 30px;
    margin: 5px;
}

    .top-bar a:hover {
        background-color: #0056b3;
        color: white;
    }

.top-bar select {
    height: 30px;
}

.circle-button {
    background: rgba(27, 110, 194, 1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .circle-button:hover {
        background: rgba(20, 103, 187, 1);
        transform: scale(1.1);
    }

    .circle-button:disabled:hover {
        transform: none;
    }

.route-info {
    position: absolute;
    top: 70px;
    left: 20px;
    width: 240px;
    color: #333333;
    font-size: 12px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background: white;
        border: 2px solid #007aff;
        border-radius: 50%;
        cursor: pointer;
    }

    input[type=range]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: white;
        border: 2px solid #007aff;
        border-radius: 50%;
        cursor: pointer;
    }

.credits-label {
    color: white;
}

.credits-value {
    color: white;
    padding-left: 5px;
    font-weight: bold;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #000;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

    .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.credits-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 90%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow-y: auto;
    z-index: 1000;
}

    .credits-dialog .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        font-size: 21px;
        color: #777777;
        cursor: pointer;
    }

.credits-dialog-content {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    font-size: 0.9em;
    line-height: 1.2;
}

    .credits-dialog-content small {
        font-size: 0.85em;
        line-height: 1.2;
    }

.buy-credits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    margin-top: 10px;
}

.credit-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    max-width: 128px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 120px;
}

.credit-amount {
    font-size: 1.2em; 
    font-weight: bold;
}

.credit-price {
    font-size: 1.2em; 
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.credit-description {
    font-size: 0.73em; 
    height: 30px;
}

.credit-card button {
    width: 100%;
    height: 38px;
    padding: 5px;
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
}


@media (min-width: 600px) {
    .credits-dialog {
        width: 50%;
    }
}

.buy-credits-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.menu-container {
    position: relative;
    display: inline-block;
}

.menu-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.menu-items {
    display: none; 
    position: absolute;
    right: 0;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 900;
    border-radius: 5px;
}
    .menu-items.show {
        display: block;
    }

.menu-item {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .menu-item:hover {
        background-color: #575757;
    }

@media (max-width: 600px) {
    .menu-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Adjust the gap as needed */
    align-items: center;
    margin-bottom: 20px;
}

.button-install {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: darkseagreen;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 80px;
}

    .button-install:hover {
        background-color: #0056b3;
    }

.button-explorer {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: darkseagreen;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 80px;
}

    .button-explorer:hover {
        background-color: #0056b3;
    }

#iOSInstallAppInstructions {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 90%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow-y: auto;
    z-index: 1000;
}

.share-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.share-popup-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    align-content: center;
}
    .share-popup-content a {
        color: #333;
        text-decoration: none;
    }
        .share-popup-content a:hover {
            color: #007bff;
        }

    .share-popup-content #qrCode img {
        width: 200px;
        height: 200px;
    }

.referral-link {
    font-size: 0.9em;
    width: 200px;
}

.share-popup-text {
    text-align: left;
    font-size: 0.9em;
    margin-right: 30px;
}

.share-popup .close {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
}

    .social-link a {
        font-size: 24px;
        color: #333;
        text-decoration: none;
    }

    .social-link a:hover {
        color: #007bff;
    }

.notification-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .notification-popup.show {
        display: block;
        opacity: 1;
        transition: none;
    }

.section {
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

    .section h5 {
        margin-top: 15px;
    }

.section-title {
    margin-bottom: 15px;
    color: #555;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .table th, .table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    .table th {
        background-color: #f2f2f2;
    }

.pagination {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.account-page {
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: 50px;
}

.text-page {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 50px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.lamp-button {
    bottom: 20px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 52px;
    border-radius: 50%;
    background: rgba(255,251,230,0.7);
    color: #f7b500;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s;
}

    .lamp-button:hover, .lamp-button:focus {
        background: #fff2b3;
        color: #ffcc00;
        outline: none;
    }

.idea-loading .fa-lightbulb {
    animation: idea-glow 2s ease-in-out infinite;
    color: #333;
}

@keyframes idea-glow {
    0%, 100% {
        text-shadow: 0 0 0px yellow;
        color: #333;
    }

    50% {
        text-shadow: 0 0 20px yellow;
        color: #ffeb3b;
    }
}

.idea-loading .idea-waiting-points {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

    .idea-loading .idea-waiting-points span {
        width: 0.6rem;
        height: 0.6rem;
        background: #333;
        border-radius: 50%;
        opacity: 0.2;
        animation: idea-blink 1.5s infinite;
    }

        .idea-loading .idea-waiting-points span:nth-child(1) {
            animation-delay: 0s;
        }

        .idea-loading .idea-waiting-points span:nth-child(2) {
            animation-delay: 0.3s;
        }

        .idea-loading .idea-waiting-points span:nth-child(3) {
            animation-delay: 0.6s;
        }

@keyframes idea-blink {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.home-intro {
    max-width: 480px;
    font-size:1.2rem;
    color:#444;
    font-weight: 500;
}

.home-features {
    text-align: left;
}
    .home-features ul {
        text-align: left;
    }

    .home-features ul li i {
        text-align: center;
        width: 20px;
    }

    .home-features ul li span {
        font-style:italic;
    }

/* Hide all animated elements initially */
.landing-page .home-intro,
.landing-page .home-features,
.landing-page .buttons-wrapper {
    opacity: 0;
}

    .landing-page .home-features li {
        opacity: 0;
        transform: translateY(40px);
    }

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Bottom-up entrance animation */
@keyframes bottomUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation classes */
.animated-fade-in {
    animation: fadeIn 0.7s forwards;
}

.animated-bottom-up {
    animation: bottomUp 0.5s forwards;
}

.landing-content-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 32px;
}

.screenshots-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .screenshots-wrapper {
        display: none !important;
    }
}

.screen-image {
    width: 200px;
    max-width: 40%;
    height: auto;
    display: block;
}

.nora-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nora-image {
    width: 240px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
}

.landing-main-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:10px;
}

/* Responsive: stack on small screens, shrink image */
@media (max-width: 600px) {
    .landing-content-row {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .nora-image {
        width: 160px !important;
        margin-bottom: 16px;
    }

    .nora-image-wrapper {
        width: 100%;
        justify-content: center;
    }

    .landing-main-content {
        width: 100%;
        align-items: stretch;
    }
}

.cookie-notice {
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0.85;
    color: #fff;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

    .cookie-notice a {
        color: #ffd700;
        text-decoration: underline;
    }

    .cookie-notice .btn {
        background-color: #ffd700;
        color: #000;
        border: none;
    }

        .cookie-notice .btn:hover {
            background-color: #ffc107;
        }

.top-bar-section {
    font-size: small;
    font-weight: bold;
    color: black;
    position: relative;
    top: -30px;
    width: 0px;
    white-space: nowrap;
}

.top-bar-selector {
    padding: 3px;
    border-radius: 6px;
    font-size: small;
}

.top-bar-group {
    color: white;
    text-decoration: none;
    padding-top: 16px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 64px;
    margin-right: 6px;
}

.top-bar-group select {
    width: 140px;
}

.top-bar-group button {
    background-color: seagreen;
}

    .top-bar-group button:disabled {
        background-color: darkseagreen;
    }

.creator-dialog {
    position: fixed;
    z-index: 999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    border-radius: 8px;
    font-size: 14px;
    min-width: 50%;
    max-width: 100%;
}

.dialog-cancel-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 21px;
    color: #777777;
    cursor: pointer;
}

.dialog-label {
    margin-bottom: 5px;
}

#smallScreenOverlay {
    position: fixed;
    z-index: 899;
    top: 80px;
    left: 20px;
    right: 20px;
    bottom: 80px;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.small-screen-message {
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.menuitem-logo {
    height: 24px;
}

#langSwitcher {
    border-radius:6px;
    border: none;
    background: rgba(0,0,0,0.1);
    margin-left: 4px;
    margin-right: 6px;
}

    #langSwitcher:hover {
        background-color: #0056b3;
        color: white;
    }

.home-logo {
    height: 100px;
    margin-bottom: 20px;
}

.selected-building-marker {
    filter: drop-shadow(0 0 6px gold);
    border: 2px solid gold;
    box-sizing: border-box;
    transform: scale(1.2);
    z-index: 10;
}