/* ========================================
   Basic page
   ======================================== */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;

    background: #f5f5f5;

    /* Prevent the browser itself from scrolling */
    overflow: hidden;
}


/* ========================================
   Ionic application
   ======================================== */

ion-app {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    min-height: 0;
}


/* ========================================
   Main application
   ======================================== */

.app-container {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    min-height: 0;

    overflow: hidden;
}


/* ========================================
   Header
   ======================================== */

.header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    width: 100%;

    box-sizing: border-box;

    padding: 5px 10px;

    background: white;
    border-bottom: 1px solid #ddd;
}


/* Menu button */

#menu-button {
    flex: 0 0 auto;

    margin: 0 10px 0 0;
}


/* Page title */

.header h1 {
    flex: 1;

    margin: 0;

    font-size: 20px;
    text-align: center;
}


/* ========================================
   Main content
   ======================================== */

.container {
    flex: 1 1 auto;

    width: 100%;

    min-height: 0;

    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    padding-bottom: 30px;
}


/* ========================================
   Pages
   ======================================== */

.page {
    width: 100%;

    box-sizing: border-box;
}


/* ========================================
   Organizations
   ======================================== */

.link-group {
    margin-bottom: 30px;
}


/* Space between Ionic buttons */

.link-group ion-button {
    display: block;

    margin-bottom: 8px;
}


/* ========================================
   Movies
   ======================================== */

.add-form {
    display: flex;

    gap: 10px;

    padding: 10px;
}


.add-form input {
    flex: 1;

    min-width: 0;

    padding: 12px;

    font-size: 16px;

    box-sizing: border-box;
}


/* ========================================
   Todo list
   ======================================== */

#todoList {
    width: 100%;
}


#todoList li {
    margin: 10px;

    padding: 10px;

    background: white;

    list-style: none;

    box-sizing: border-box;
}


/* ========================================
   Responsive iframe
   ======================================== */

.iframe-container {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    margin-bottom: 10px;
}


.iframe-container iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ========================================
   Video information
   ======================================== */

.video-info {
    width: 100%;
}

/* Video title */

.video-title {
    width: 100%;
    box-sizing: border-box;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    margin-bottom: 2px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ========================================
   Video actions
   ======================================== */

.video-actions {
    display: flex;
    align-items: center;

    gap: 2px;

    width: 100%;
}


/* Ionic buttons */

.video-actions ion-button {
    --padding-start: 4px;
    --padding-end: 4px;

    --padding-top: 0;
    --padding-bottom: 0;

    --border-radius: 20px;

    margin: 0;

    height: 28px;

    font-size: 11px;
}


/* Icons */

.video-actions ion-icon {
    font-size: 15px;
    margin-right: 3px;
}


/* Labels */

.video-actions ion-label {
    font-size: 11px;
}


.date-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
