* {
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
}

body {
    background-color: darkslategray;
    color: crimson;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;

    height: 100vh;
    /* display: grid; */
    place-items: center;
}

.header {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px;
    width: 100%;
    gap: 15px;
    z-index: 10;
    top: 0;
    left: 0;
}

.header img {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
    height: 80px;
    width: auto;
}

.settings {
    height: 60px;
    width: auto;
}

/* videos */
.app__videos {
    position: relative;
    height: 750px;
    background-color: white;
    overflow: scroll;
    width: 100%;
    max-width: 400px;
    scroll-snap-type: y mandatory;
    border-radius: 20px;
}

.app__videos::-webkit-scrollbar {
    display: none;
}

.app__videos {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: white;
    scroll-snap-align: start;
}

.video__player {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.25);
    font-size: 24px;
    color: black;
    border-color: red;
    z-index: 10;
}

dialog::backdrop {
    background: rgba(255, 0, 0, 0.5);
    z-index: 5;
}

dialog div {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

dialog button {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: crimson;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.videoSidebar {
    position: absolute;
    top: 48%;
    right: 10px;
}

/* Custom Location Popup Styles */
#location-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #1a1a1a;
    color: white;
    border: 5px solid crimson;
    border-radius: 15px;
    padding: 40px 20px;
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.5);
    text-align: center;
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
}

/* Hidden state */
#location-popup.hidden {
    display: none;
}

/* Paragraph location */
#location-popup p {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #f1f1f1;
}

/* close button */
#location-popup button {
    padding: 15px 35px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: crimson;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.videoSidebar .material-icons {
    font-size: 28px;
    cursor: pointer;
}

.videoSidebar__button {
    padding: 20px;
    text-align: center;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.75);
}


@media (max-width: 768px) {
    body {
        text-align: left;
        padding: 0px;
    }

    .logo {
        height: 80px;
    }

    .settings {
        height: 60px;
        width: auto;
    }

    .header {
        gap: 10px;
    }

    .app__videos {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}