
         .background-settings {
          
            text-align: center;
        }
        input, button {
            margin-top: 10px;
            padding: 5px;
            border: none;
            border-radius: 5px;
        }
        #Thaydoigiaodien {
    width: 23vw;   /* 40% chiều rộng của viewport */
    height: 24vh;  /* 40% chiều cao của viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 600px) {
    .icon img {
        width: 12vw;
        height: 12vw;
        max-width: 40px;
        max-height: 40px;
    }
}

/* Điều chỉnh icon cho màn hình lớn hơn */
@media (min-width: 1200px) {
    .icon img {
        width: 5vw; /* Giảm kích thước icon trên màn hình lớn */
        height: 5vw;
        max-width: 70px;
        max-height: 70px;
    }
    #Xuatdl {
    width: 30vw;   /* 40% chiều rộng của viewport */
    height: 54vh;  /* 40% chiều cao của viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

}


        .desktop {
    position: relative;
    display: flex;
    flex-direction: column;  /* Đặt các phần tử theo chiều dọc */
    flex-wrap: wrap;
    justify-content: flex-start; /* Đảm bảo các icon căn chỉnh sang trái */
    align-content: flex-start;
    padding: 20px;
    height: calc(100% - 70px); /* Tăng thêm khoảng cách để không bị vướng với taskbar */
    box-sizing: border-box;
}
body {
    width: 1024px;
    margin: 0 auto;
    overflow-x: hidden;
}


        .container {
    display: flex;
    flex-direction: column;  /* Đặt các phần tử theo chiều dọc */
    gap: 20px; /* Khoảng cách giữa các phần tử */
}


        .desktop {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            align-content: flex-start;
            padding: 20px;
            height: calc(100% - 70px);  /* Tăng thêm khoảng cách để không bị vướng với taskbar */
            box-sizing: border-box;
        }

        .icon {
            text-align: center;
            margin: 10px;
            cursor: pointer;
        }

        .icon img {
            width: 60px;
            height: 60px;
            transition: transform 0.2s ease;
        }

        .icon:hover img {
            transform: scale(1.2);
        }

      .icon span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: white; /* chữ màu trắng :)) */
}

        .taskbar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 50px;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            padding: 0 10px;
            box-sizing: border-box;
            z-index: 100;
        }

        .taskbar-apps {
            display: flex;
            gap: 10px;
            margin-left: 10px;
            overflow-x: auto;
            white-space: nowrap;
        }
        

        .taskbar-item {
            position: relative;
            padding: 5px 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            color: white; 
            cursor: pointer;
        }

        .taskbar-item:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .time-display {
            margin-left: auto;
            color: #fff;
            font-size: 14px;
        }

        .start-menu-btn {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 25px; /* Bo tròn nút Start */
            padding: 8px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
        }

        .start-menu-btn img {
            width: 20px;
        }

        .start-menu-btn:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        

        .start-menu {
            position: absolute;
            bottom: 60px;  /* Đảm bảo không bị che bởi taskbar */
            left: 0;
            background: rgba(0, 0, 0, 0.8);
            width: 200px;
            padding: 10px;
            border-radius: 5px;
            display: none;
        }

        .start-menu a {
            color: #fff;
            text-decoration: none;
            display: block;
            margin: 5px 0;
        }

        .start-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .window {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 66vw;
            height: 66vh;
            background: #fff;
            color: #333;
            z-index: 10;
            display: none;
            flex-direction: column;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            animation: fadeIn 0.3s ease-out;
        }
        

        .window.active {
            display: flex;
        }

        .window-header {
            background: red;
            color: #fff;
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        

        .window-header span {
            font-weight: bold;
        }

        .window-header .action-buttons button {
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 5px;
            color: white;
            font-size: 14px;
            border: none;
            
        }
        .desktop {
    display: flex;
    flex-wrap: wrap; /* Giúp các icon tự động xuống hàng */
    justify-content: flex-start;
    align-content: flex-start;
    padding: 20px;
    height: calc(100% - 70px);
    box-sizing: border-box;
    gap: 10px; /* Tạo khoảng cách giữa các icon */
}

/* Đảm bảo icon có kích thước hợp lý trên mobile */
@media (max-width: 600px) {
    .icon {
        width: 20vw; /* Điều chỉnh kích thước icon theo viewport */
        text-align: center;
    }

    .icon img {
        width: 12vw;
        height: 12vw;
        max-width: 50px;
        max-height: 50px;
    }
}


        .close-btn {
            background: #ff4d4d;
        }

        .maximize-btn {
            background: #4caf50;
            margin-right: 10px;
        }

        .window-content {
            padding: 20px;
            flex-grow: 1;
            overflow: auto;
        }

        .window-content iframe {
            width: 100%;
            height: 100%;
            border: none;
            display: block;
        }
        

        @keyframes fadeIn {
            0% {
                transform: translate(-50%, -50%) scale(0.8);
                opacity: 0;
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
        }
        body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('https://img6.thuthuatphanmem.vn/uploads/2022/03/04/background-bau-troi-de-thuong_034129499.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    height: 100vh;
    width: 100vw; /* Đảm bảo toàn bộ viewport */
    overflow: hidden;
}

/* Loại bỏ chiều rộng cố định và căn giữa */
body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* Định dạng layout icon */
.desktop {
    display: flex;
    flex-wrap: wrap; /* Giúp các icon tự động xuống hàng */
    justify-content: flex-start; /* Căn sát lề trái */
    align-content: flex-start;
    padding: 20px;
    height: calc(100% - 70px);
    box-sizing: border-box;
    gap: 10px; /* Tạo khoảng cách giữa các icon */
}

/* Định dạng icon */
.icon {
    text-align: center;
    width: 80px; /* Kích thước icon cố định */
}

.icon img {
    width: 60px;
    height: 60px;
}

/* Đảm bảo icon có kích thước hợp lý trên mobile */
@media (max-width: 600px) {
    .icon {
        width: 20vw; /* Điều chỉnh kích thước icon theo viewport */
    }

    .icon img {
        width: 12vw;
        height: 12vw;
        max-width: 50px;
        max-height: 50px;
    }
}
