﻿/* ----------------------------------------------------
   Base layout
---------------------------------------------------- */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

input,
select,
textarea {
    max-width: 280px;
}

@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

/* ----------------------------------------------------
   Playlist styles
---------------------------------------------------- */
.playlist {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 1;
}

    .playlist th {
        background: #333;
        color: #fff;
        padding: 10px;
        text-align: left;
    }

    .playlist td {
        background: #fff;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .playlist tr.selected {
        background-color: #d0ebff !important;
        font-weight: bold;
    }

    /* Active row highlight + glow */
    .playlist tr.now-playing {
        background-color: #444;
        color: #ffcc00;
        font-weight: bold;
        animation: rowGlow 1.5s infinite alternate;
    }

@keyframes rowGlow {
    from {
        background-color: #444;
    }

    to {
        background-color: #666;
    }
}

/* Hide 3rd column */
.playlist th:nth-child(3),
.playlist td:nth-child(3) {
    display: none;
}

/* ----------------------------------------------------
   Audio controls
---------------------------------------------------- */
audio {
    width: 250px;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

    .controls button {
        background: #444;
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        margin: 5px;
        font-size: 1.2em;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

        .controls button:hover {
            background: #666;
            transform: scale(1.1);
        }

        .controls button:active {
            background: #222;
            transform: scale(0.95);
        }

        .controls button.active {
            background: #e67e22;
        }

/* ----------------------------------------------------
   Lyrics panel
---------------------------------------------------- */
#lyricsPanel {
    position: relative;
    display: block;
    margin-top: 12px;
    z-index: 0;
}

/* ----------------------------------------------------
   Picture cards
---------------------------------------------------- */
.picture-card {
    margin: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
    width: 200px;
}

    .picture-card img {
        display: block;
        margin: 0 auto 10px auto;
        float: none;
        max-width: 100%;
    }

/* ----------------------------------------------------
   Thumbnails
---------------------------------------------------- */
.card-img-top {
    width: 100%;
    height: 50px;
    object-fit: cover;
}

.thumbnail-img {
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

/* ----------------------------------------------------
   Gallery / Project card media
---------------------------------------------------- */
.card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-media img,
    .card-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ----------------------------------------------------
   MODAL VIDEO FIX (the important part)
   Ensures videos scale properly and never overflow
---------------------------------------------------- */
.modal-body video,
.modal-body img {
    max-width: 100%;
    max-height: 80vh; /* keeps it inside viewport */
    width: auto;
    height: auto;
    object-fit: contain; /* prevents cropping */
    display: block;
    margin: 0 auto;
}

/* Optional: make modal itself flex-centered */
.modal-dialog {
    max-width: 90%;
}

.modal-content {
    background-color: #000; /* looks great for media */
}

/* ----------------------------------------------------
   Navbar dropdown (Stuff / Utilities)
---------------------------------------------------- */
.nav-dropdown {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,.55) !important;
    padding: 0 !important;
    margin-left: 15px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: none !important;
}

    .nav-dropdown:hover,
    .nav-dropdown:focus {
        color: rgba(255,255,255,.75) !important;
    }

    .nav-dropdown option {
        background-color: #212529;
        color: #fff;
    }

/* ----------------------------------------------------
   Gallery Grid + Cards
---------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
}

.picture-card {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    background: #fff;
    border-radius: 4px;
    white-space: normal;
}

    .picture-card p {
        white-space: normal;
        word-wrap: break-word;
    }

/* ----------------------------------------------------
   Unified media styling (images + videos)
---------------------------------------------------- */
.gallery-media {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 4px;
}

/* ----------------------------------------------------
   Fullscreen Modal
---------------------------------------------------- */
#imgModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
}

    #imgModal img {
        max-width: 95%;
        max-height: 95%;
        margin-top: 5%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1.5);
    }

    #imgModal span {
        color: white;
        font-size: 30px;
        position: absolute;
        top: 20px;
        right: 40px;
        cursor: pointer;
    }
