@font-face {
    font-family: SF-Pro;
    src: url('../fonts/Apple-Fonts/SF-Pro.ttf') format('truetype');
}

@font-face {
    font-family: SF-Pro-Semibold;
    src: url('../fonts/Apple-Fonts/SF-Pro-Text-Semibold.otf') format('opentype');
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: url('../images/wallpaper/wallpaper_blue.png') no-repeat center center fixed;
    background-size: cover;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
    font-family: SF-Pro, sans-serif;
    color: white;
}

.wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

.sidebar {
    height: calc(100% - 50px);
    width: 125px;

    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;

    background: rgba(71, 71, 71, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    font-family: "SF Pro", "SF Pro Display", "SF Pro Semibold", sans-serif;
    font-size: 32px;
    padding: 15px 0;
    z-index: 100;

    border: 1px solid rgba(255, 255, 255, 0.18);
}


.sidebar-text {
    margin: 5px 0;
}

.time-battery-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.battery-wrapper {
    display: flex;
    width: 70%;
    justify-content: space-evenly;
}

.battery-sidebar-icon {
    font-size: .8em;
}

.sidebar-battery-text {
    font-size: 20px;
    margin-top: 0px;
}

.app-icon {
    width: 65px;
    margin: 10px 0;
    user-select: none;
    transition: transform 0.15s ease;
    cursor: pointer;
}

.clicked {
    animation: clickAnim 0.3s forwards;
}

@keyframes clickAnim {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.85);
    }

    100% {
        transform: scale(1);
    }

}

.app-icon:last-child {
    margin-bottom: 0;
}

.main-page {
    height: 100%;
    width: calc(100% - 150px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-row {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.app-big {
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-icon-big {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-icon-rounded {
    border-radius: 20px;
}

.app-description {
    font-family: SF-Pro-Semibold, sans-serif;
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px 10px;
}

.open-app-overlay {
    position: absolute;
    display: none;
    visibility: hidden;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-music {
    display: none;
    width: 100%;
    height: 100%;
}

.app-music-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(167, 164, 164, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    padding-left: 175px;
}

.app-music-header {
    position: absolute;
    top: 20px;
    left: 150px;
    font-size: 32px;
    font-family: SF-Pro-Semibold, sans-serif;
    color: white;
    z-index: 11;
    width: calc(100% - 200px);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.back-button,
.playing-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.playing-button {
    visibility: hidden;
}

.app-music-utils-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.app-music-player {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.app-music-playlist {
    display: none;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(167, 164, 164, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
}

.app-music-home {
    display: none;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background: rgba(167, 164, 164, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    padding-top: 20px;
    padding-left: 175px;
}

.app-music-left,
.app-music-right {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-music-right {
    width: 35%;
}

.music-album-cover {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

.music-album-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 9;
    filter: blur(10px) brightness(0.6);
    pointer-events: none;
}

.app-music-track-info {
    text-align: center;
    font-family: SF-Pro-Semibold, sans-serif;
    font-size: 22px;
}

.app-music-track-name {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.app-music-artist-names {
    margin: 5px 0;
}

.app-music-album-name {
    margin: 5px 0;
    color: #51c8f3;
}

.app-music-controls {
    width: 80%;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-controls {
    cursor: pointer;
    font-size: 2em;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 400px;
    margin-top: 20px;
}

.progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.app-music-home-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0px 6px;
    height: 50px;
    z-index: 1000;

    background: rgba(71, 71, 71, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: translateX(-5%);
}

.app-music-home-header-text {
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 20px;
    line-height: 1;
}

.app-music-home-header-text.active {
    background: rgba(255, 255, 255, 0.15);
}

.app-music-home-start {
    display: flex;
    visibility: visible;
}

.app-music-home-search,
.app-music-home-library {
    display: none;
    visibility: hidden;
}

.app-music-home-library {
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-music-home-playlist-container {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
    padding: 10px;
    margin-left: -15px;
    justify-content: center;

    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    max-height: calc(100% - 100px);
    margin-top: -100px;
    padding-top: 100px;
}

.app-music-home-playlist-container::-webkit-scrollbar,
.app-music-playlist-wrapper::-webkit-scrollbar {
    display: none;
}

.app-music-home-playlist {
    width: 150px;
    text-align: center;
    cursor: pointer;
}

.playlist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playlist-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.playlist-image:hover {
    transform: scale(1.05);
}

.playlist-name {
    font-size: 22px;
    font-weight: 500;
    margin-top: 8px;
    color: #fff;
    text-overflow: ellipsis;
    overflow: hidden;
}

.app-music-header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-music-playlist-name {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
}

.app-music-playlist-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-left: 150px;
    width: calc(100% - 150px);
    height: 100%;

    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    max-height: calc(100% - 100px);
    margin-top: -100px;
    padding-top: 170px;
}

.app-music-playlist-divider {
    width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-music-playlist-element {
    display: flex;
    width: 80%;
    height: 50px;
    margin: 0px 10px;
    cursor: pointer;
}

.app-music-playlist-cover {
    width: 50px;
    margin-left: -60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.app-music-playlist-cover-shuffle {
    width: 50px;
    margin-left: -60px;
    object-fit: cover;
    border-radius: 8px;
}

.app-music-playlist-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    color: #fff;
}

.app-music-playlist-track-name {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

.app-music-playlist-track-artist {
    font-size: 16px;
    color: rgba(205, 205, 205, 0.8);
}

.explicit-badge {
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    height: 18px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    line-height: 1;
    vertical-align: middle;
}

.siri-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: 5px solid transparent;
    border-image: linear-gradient(45deg, #FF6B6B, #FF9A8B, #7B4BFF, #FF00C8) 1;
    border-radius: 30px;
    box-shadow: 0 0 50px 15px linear-gradient(45deg, #FF6B6B, #FF9A8B, #7B4BFF, #FF00C8);
    opacity: 0;
    box-sizing: border-box;
    pointer-events: none;
    animation: showBorder 0.1s 0s forwards linear;
}

@keyframes showBorder {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Maps App */
.app-maps {
    display: none;
    visibility: hidden;
    width: 100%;
    height: 100%;
}

.map {
    width: 100%;
    height: 100%;
    position: relative;
}

.app-maps-marker {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #007aff;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transform: rotate(45deg);
}

.maplibregl-ctrl-bottom-right {
    display: none !important;
}

.maplibregl-ctrl-top-right {
    display: none !important;
}

.search-box,
.route-start-box {
    position: absolute;
    top: 10px;
    left: 160px;
    width: 250px;
    height: calc(100% - 60px);

    background: rgba(71, 71, 71, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);

    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    font-size: 16px;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(177, 188, 211, 0.7);
    border-radius: 999px;
    padding: 6px 10px;
    width: 100%;
    height: 65px;
    max-width: 320px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.search-icon {
    font-size: 24px;
    color: #485468;
    margin-right: 10px;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #485468;
    font-size: 22px;
    font-family: inherit;
    width: calc(100% - 40px)
}

.search-input::placeholder {
    color: #485468;
}

.mic-icon {
    font-size: 22px;
    color: #485468;
    margin-left: 10px;
    cursor: pointer;
}

.pinned-destinations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 85%;
    gap: 20px;
}

.pinned-destination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 80px;

    background: rgba(71, 71, 71, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0 15px;
}

.search-result-destination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: calc(100% - 20px);
    height: 80px;

    background: rgba(71, 71, 71, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0 10px;
}

.pinned-destination-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin-right: 10px;
}

.pinned-destination-text {
    font-size: 20px;
    color: white;
    font-family: SF-Pro-Semibold, sans-serif;
}

.route-start-box {
    display: none;
}

.route-start-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    margin-bottom: 10px;
    font-size: 26px;
    font-family: SF-Pro-Semibold;
}

.route-start-header-close {
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px;
}

.selected-route-start-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 95%;
    font-family: SF-Pro;
    font-size: 18px;
    background-color: rgb(0, 0, 0, .3);
    border-radius: 10px;
    padding: 15px 5px;
}

.selected-route-start-box-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.selected-route-time {
    font-family: SF-Pro-Semibold;
    font-size: 26px;
    color: #fff;
}

.selected-route-eta {
    color: rgb(235, 235, 245, .6);
}

.selected-route-start-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #30d158;
    border-radius: 10px;
    width: 60px;
    height: 60px;
    font-family: SF-Pro-Semibold;
    font-size: 22px;
}

.route-navigation-box-wrapper {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.route-navigation-box-top {
    position: absolute;
    top: 10px;
    left: 160px;
    width: 300px;

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2B2B2B;
    border-radius: 24px;
    height: 100px;
    padding: 15px;
    gap: 30px;
}

.route-navigation-icon {
    width: 50px;
}

.route-navigation-instruction {
    font-family: SF-Pro-Semibold;
    font-size: 24px;
}

.search-results {
    display: none;
}