@font-face {
    font-family: "Inter-Regular";
    src: url(/tensor/fonts/Inter-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter-Regular";
}

html {
    min-width: 320px;
    overflow-x: auto;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow: auto;
    color: white;
    text-align: center;
    background: url(/warm_calendar2025-2026/img/background.jpg) no-repeat top center fixed;
    background-size: cover;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: default;
    min-width: 320px;
}

body.body--modal-open {
    overflow: hidden;
}

body.body--modal-open .container {
    visibility: hidden;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-width: 320px;
}

header {
    text-align: center;
    padding: 50px 20px 40px;
    background: rgb(0 0 0 / 40%);
    border-radius: 28px;
    border: 3px solid #BB9663;
    width: 75%;
}

h1 {
    font-size: 50px;
    font-weight: 500;
    word-wrap: break-word;
    margin-bottom: 10px;
    line-height: 1.1;
}

.modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(11, 59, 113, 0.9);
    border-radius: 15px;
    overflow: hidden;
    max-height: 80vh;
    width: 100%;
}

.modal-image {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 28px;
}

.date-info {
    font-size: 20px;
    margin-bottom: 15px;
    padding: 10px;
    display: inline-block;
    padding-bottom: 30px;
    cursor: default;
}

.audio-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.play-audio-btn {
    background-color: #BB9663;
    color: white;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    margin-bottom: 0;
    white-space: nowrap;
    min-width: 140px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.play-audio-btn:hover {
    background-color: #9e7a52;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    width: 100%;
    max-width: 500px;
    justify-content: center;
    flex-wrap: wrap;
}

#audio-progress {
    width: 100%;
    min-width: 180px;
    max-width: 400px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    flex-grow: 1;
}

#audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #BB9663;
    cursor: pointer;
    border: 2px solid white;
}

#audio-progress::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #BB9663;
    cursor: pointer;
    border: 2px solid white;
}

.audio-time {
    font-size: 14px;
    color: #fff;
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.day-button {
    background: linear-gradient(45deg, #0B3B71);
    border: none;
    border-radius: 26.5px;
    color: white;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.01s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    -webkit-tap-highlight-color: transparent;
}

.day-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    /*height: 100vh;*/
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #0B3B71;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 85vh;
    animation: slideIn 0.25s ease;
    border-radius: 28px;
    border: 2px solid #BB9663;
}

@keyframes slideIn {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #BB9663;
}

.modal-header {
    margin-bottom: 20px;
    text-align: left;
    padding-right: 40px;
}

.modal-header h2 {
    font-size: 40px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    word-wrap: break-word;
}

.modal-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #55442D, #BB9663, #55442D);
}

.modal-body {
    font-size: 16px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    text-align: left;
    padding-right: 10px;
    cursor: default;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    box-shadow: none;
}

.modal-body.has-scroll {
    box-shadow: 0px -10px 10px -10px rgb(0 0 0 / 65%) inset;
}

.modal-body.at-bottom {
    box-shadow: none;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.month-indicator {
    align-self: center;
    margin-top: 40px;
    font-size: 14px;
    cursor: default;
    max-width: calc(100% - 40px);
}

#practice-modal .modal-content {
    max-height: 80vh;
    overflow: hidden;
    width: 100%;
    padding: 0px;
    width: fit-content;  
}

#practice-modal .modal-image-container {
   padding: 0px;
}

#practice-modal .close-button {
  text-shadow: 1px 0 0 #4f4f4f, -1px 0 0 #4f4f4f, 0 0px 0 #4f4f4f, 0 0px 0 #4f4f4f, 1px 0px 0 #4f4f4f, -1px 0px 0 #4f4f4f, 1px 0px 0 #4f4f4f, -1px 0px 0 #4f4f4f;
}

@media (max-width: 320px) {
    h1 {
        font-size: 22px;
    }

    body {
        padding: 5px;
        justify-content: center;
        background: url(/warm_calendar2025-2026/img/background3.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top;
        background-attachment: fixed;
        height: 100%;
    }

    .container {
        padding: 10px;
    }

    header {
        padding: 20px 20px 20px;
        border-radius: 20px;
        width: 100%;
    }

    h1 {
        font-size: 24px;
        line-height: 1.1;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .date-info {
        font-size: 14px;
        padding-bottom: 12px;
    }

    .month-indicator {
        margin-top: 5px;
    }

    .audio-container {
        gap: 8px;
    }

    .audio-controls {
        gap: 6px;
    }

    #audio-progress::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

    .day-button {
        padding: 10px 15px;
        font-size: 14px;
        width: 90%;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .audio-time {
        display: none;
    }

    #audio-progress {
        min-width: 100px;
        max-width: 180px;
    }

    .play-audio-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 90px;
    }

    .buttons-container {
        margin-top: 0px;
        gap: 16px;
    }

    .modal-body {
        font-size: 14px;
    }

    .modal-header {
        margin-bottom: 5px;
    }

    .month-indicator {
        font-size: 12px;
    }

    .modal-image {
        max-width: 100%;
        max-height: 80vh;
    }

    .close-button {
        font-size: 24px;
    }

    .modal-image-container {
        padding: 10px;
    }

}

@media (max-width: 360px) {
    h1 {
        font-size: 22px;
    }

    .date-info {
        font-size: 14px;
        padding-bottom: 12px;
    }

    .play-audio-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 100px;
    }

    .audio-container {
        gap: 8px;
    }

    .audio-controls {
        gap: 6px;
    }

    #audio-progress {
        min-width: 110px;
        max-width: 220px;
        height: 4px;
    }

    #audio-progress::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

    .audio-time {
        font-size: 11px;
        min-width: 65px;
    }

    .day-button {
        padding: 10px 15px;
        font-size: 14px;
        width: 90%;
    }

    .modal-content {
        padding: 15px;
    }

    .month-indicator {
        margin-top: 5px;
    }

    .modal-header {
        margin-bottom: 5px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    body {
        padding: 5px;
        justify-content: center;
        background: url(/warm_calendar2025-2026/img/background3.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top;
        background-attachment: fixed;
        height: 100%;
    }

    .modal-image {
        max-width: 100%;
        max-height: 80vh;
    }

    .close-button {
        font-size: 24px;
    }

    .modal-image-container {
        padding: 20px;
    }
}

@media (max-width: 480px) and (min-width: 360px) {
    body {
        padding: 5px;
        justify-content: center;
        background: url(/warm_calendar2025-2026/img/background3.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top;
        background-attachment: fixed;
        height: 100%;
	    overflow: hidden;
    }

    .container {
        padding: 10px;
    }

    header {
        padding: 20px 20px 20px;
        border-radius: 20px;
        width: 100%;
    }

    h1 {
        font-size: 24px;
        line-height: 1.1;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .date-info {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 15px;
    }

    .audio-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .play-audio-btn {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 110px;
        width: auto;
        order: 1;
        -webkit-tap-highlight-color: transparent;
    }

    .audio-controls {
        order: 2;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        justify-content: center;
    }

    #audio-progress {
        min-width: 130px;
        max-width: 280px;
        height: 5px;
        width: calc(100% - 20px);
    }

    #audio-progress::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    .audio-time {
        font-size: 12px;
        min-width: 70px;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 0px;
    }

    .day-button {
        width: 85%;
        max-width: 280px;
        min-width: auto;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 400;
        border-radius: 20px;
    }

    .modal {
        padding: 10px;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .modal-content {
        max-width: 100%;
        padding: 20px;
        max-height: 70vh;
    }

    .modal-header {
        margin-bottom: 5px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body {
        font-size: 16px;
        line-height: 1.5;
    }

    .close-button {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    .month-indicator {
        font-size: 12px;
        padding: 8px 16px;
        margin-top: 5px;
    }

    .modal-image {
        max-width: 100%;
        max-height: 50vh;
    }

    .modal-image-container {
        padding: 15px;
    }
#practice-modal .modal-image {
        max-width: 100%;
        max-height: inherit;
    }
}

@media (max-width: 768px) and (min-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 30px 20px 25px;
        margin-bottom: 20px;
        width: 100%;
    }

    h1 {
        font-size: 30px;
        line-height: 1.1;
    }


    .date-info {
        font-size: 18px;
        padding-bottom: 20px;
        margin-bottom: 10px;
    }

    .audio-container {
        gap: 12px;
        margin-top: 30px;
    }

    .play-audio-btn {
        font-size: 16px;
        padding: 10px 20px;
        min-width: 120px;
    }

    .audio-controls {
        max-width: 450px;
        gap: 8px;
    }

    #audio-progress {
        min-width: 150px;
        max-width: 350px;
    }

    .audio-time {
        font-size: 13px;
        min-width: 80px;
    }

    .buttons-container {
        gap: 16px;
        margin-top: 0px;
    }

    .day-button {
        padding: 14px 18px;
        font-size: 18px;
        width: 60%;
    }

    .modal-content {
        max-width: 90%;
        padding: 25px;
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .modal-image-container {
        padding: 10px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 5px;
        justify-content: flex-start;
    }

    header {
        padding: 15px 20px;
        margin-bottom: 10px;
        max-width: 600px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .date-info {
        font-size: 14px;
        padding-bottom: 10px;
        margin-bottom: 5px;
    }

    .audio-container {
        flex-direction: row;
        gap: 10px;
        margin-top: 5px;
        flex-wrap: nowrap;
    }

    .play-audio-btn {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 100px;
    }

    .audio-controls {
        max-width: 300px;
    }

    #audio-progress {
        min-width: 100px;
        max-width: 200px;
    }

    .buttons-container {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 10px;
        gap: 10px;
    }

    .day-button {
        width: auto;
        padding: 8px 15px;
        font-size: 14px;
        min-width: 150px;
    }
}

@media (max-height: 700px) {
    #practice-modal .modal-content {
        max-height: 100%;
    }
    
    #practice-modal .modal-image-container {
        max-height: calc(85vh - 40px);
    }
    #practice-modal .modal-image {
        max-height: inherit;
    }
}

@media (max-height: 400px) {
    body {
        align-items: flex-start;
        padding-top: 5px;
    }
    
    #practice-modal .modal-content {
        max-height: 80vh;
        max-width: 98vw;
        margin: 5px;
    }
    
    #practice-modal .modal-image-container {
        max-height: calc(80vh - 30px);
        padding: 0px;
    }
    
    #practice-modal .modal-image {
        border-radius: 10px;
        max-height: inherit;
    }
}

@supports (-webkit-touch-callout: none) {
    .play-audio-btn {
        padding: 12px 24px;
    }

    @media (max-width: 480px) {
        .play-audio-btn {
            padding: 10px 18px;
        }
    }
}