﻿body {
    background-image: url('bg.jpg');
}
/* Layout grid camera */
.grid-1 video {
    width: 98%;
    height: auto;
}

.grid-4 video {
    width: 45%;
}

.grid-9 video {
    width: 30%;
}

.grid-16 video {
    width: 22%;
}

/* CSS để căn chỉnh các video */
.video-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    margin: 20px;
}

video {
    width: 45%; 
    margin: 10px;
    height: auto;
    max-height: 500px;
}

.container-single video {
    width: 98% !important;
    height: auto !important;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.topnav {
    overflow: hidden;
    background-color: #e9e9e9;
}

    .topnav a {
        float: left;
        display: block;
        color: black;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
    }

        .topnav a:hover {
            background-color: #ddd;
            color: black;
        }

        .topnav a.active {
            background-color: #2196F3;
            color: white;
        }

    .topnav .search-container {
        float: right;
    }

    .topnav input[type=text] {
        padding: 6px;
        margin-top: 8px;
        font-size: 17px;
        border: none;
    }

    .topnav .search-container button {
        float: right;
        padding: 6px 10px;
        margin-top: 8px;
        margin-right: 16px;
        background: #ddd;
        font-size: 17px;
        border: none;
        cursor: pointer;
    }

        .topnav .search-container button:hover {
            background: #ccc;
        }

@media screen and (max-width: 600px) {
    .topnav .search-container {
        float: none;
    }

        .topnav a, .topnav input[type=text], .topnav .search-container button {
            float: none;
            display: block;
            text-align: left;
            width: 100%;
            margin: 0;
            padding: 14px;
        }

    .topnav input[type=text] {
        border: 1px solid #ccc;
    }
}

.layout-btn {
    padding: 8px 14px;
    margin: 4px;
    font-size: 16px;
    cursor: pointer;
}

.grid-1 video {
    width: 98%;
}

.grid-4 video {
    width: 45%;
}

.grid-9 video {
    width: 30%;
}

.grid-16 video {
    width: 22%;
}

video {
    border: 1px solid #444;
    cursor: move; /* để dễ thấy là kéo được */
}


/* Cửa sổ window*/
/* Window */
#win10Window {
    position: absolute;
    width: 400px;
    top: 150px;
    left: 200px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: none;
    user-select: none;
}

/* Header */
#winHeader {
    background: #0078d7;
    color: white;
    padding: 8px 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* Close button */
#closeBtn {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

    #closeBtn:hover {
        background: red;
    }

/* Content */
#winContent {
    padding: 15px;
    color: #333;
}
/* END */