@font-face {
    font-family: 'Restora Neue';
    src: url('fonts/Restora Neue Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F1E9;
    color: #557473;
    -webkit-font-smoothing: antialiased;
    position: relative;
    height: 100dvh;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.hidden {
    display: none;
}

.language-selector-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem;
    flex-direction: column;
}

.language-selector {
    width: 100%;
    margin-top: 3rem;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.language-selector-logos{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lang-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #BAA166;
}

.lang-button-text {
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    line-height: 130%;
    font-weight: 500;
    color: #BAA166;
    padding: 8px;
}


.lang-button-text .lang-button-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: #BAA166;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-button-subtitle .subtitle-icon {
    width: 24px;
    height: 24px;
}

.lang-button-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 80px;
    height: 100%;
    background-color: #BAA166;
}

.lang-button-code span{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid #F5F1E9;
    color: #F5F1E9;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    flex-shrink: 0;
    font-family: 'Restora Neue', serif;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #F5F1E9;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: #557473;
    color: #F5F1E9;
    flex-shrink: 0;
}

.logo img {
    margin-left: 1rem;
    height: 52px;
    display: block;
}

.lang-switcher {
    height: 100%;
    background-color: #BAA166;
    position: relative;
    cursor: pointer;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #95a4a4;
    z-index: 10;
    min-width: 100%;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 25px 0;
    height: 80px;
    font-size: 2rem;
    font-weight: 500;
    color: #f9f9f9;
    font-family: 'Restora Neue', serif;
}

.lang-dropdown a:hover {
    background-color: #557473;
}

.lang-button-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 25px 0;
    height: 100%;
    border: 1px solid #BAA166;
    font-size: 2rem;
    font-weight: 500;
    color: #f9f9f9;
    font-family: 'Restora Neue', serif;
}

.app-main {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.guide-nav {
    flex-basis: 80px;
    flex-shrink: 0;
    background-color: #F5F1E9;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #BAA166;
}

.guide-nav-list {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.guide-nav-list::-webkit-scrollbar {
    display: none;
}

.guide-nav-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    border-bottom: 1px solid #BAA166;
    font-size: 2rem;
    font-family: 'Restora Neue', serif;
    font-weight: 500;
    color: #BAA166;
}

.guide-nav-item a.active {
    background-color: #BAA166;
    color: #F5F1E9;
}

.guide-nav-controls {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.guide-nav-controls button {
    height: 80px;
    color: #FFF;
    background-color: #557473;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.guide-nav-controls button img {
    width: 24px;
    height: 24px;
}

.guide-nav-controls button.inactive {
    opacity: 0.3;
    cursor: not-allowed;
}

.player-section {
    width: 100%;
    flex-basis: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px;
}

.player-content {
    flex-grow: 0;
    background-color: #BAA166;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 16px;
}

.section-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    color: #557473;
    margin-bottom: 2rem;
    width: 100%;
}

.progress-info {
    font-size: 1rem;
    font-weight: 400;
    color: #f9f9f9;
    margin-bottom: 2rem;
    width: 100%;
    text-align: left;
}

.progress-divider {
    margin: 0 0.5em;
}

.guide-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    color: #F9F9F9;
    margin-bottom: 2px;
}

.media-player {
    width: 100%;
}

.progress-info {
    font-size: 1rem;
    font-weight: 400;
    color: #f9f9f9;
    margin-bottom: 2rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.controls button {
    color: #557473;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#skip-back-btn img,
#skip-fwd-btn img {
    width: 40px;
    height: 40px;
}

#play-pause-btn {
    border: none;
    background-color: transparent;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#play-pause-btn svg {
    width: 64px;
    height: 64px;
    position: relative;
    left: 2px;
}

#play-pause-btn .pause-icon {
    display: none;
    left: 0;
}

#play-pause-btn.playing .pause-icon {
    display: block;
}

#play-pause-btn.playing .play-icon {
    display: none;
}

.player-logo-footer {
    flex-shrink: 0;
    margin-top: auto;
    text-align: right;
    padding-top: 1rem;
}

.player-logo-footer img {
    width: 40%;
    max-width: 200px;
    height: auto;
}