/* Reset default styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden; /* Hide overflow to prevent scrolling */
    background-color: black; /* Set background color to black */
}

/* Define custom cursor */
.custom-cursor {
    cursor: url('./assets/cursor/pointer.png'), auto !important;
}

/* Terminal styles */
#terminal {
    position: fixed; /* Fixed position to keep it always visible */
    top: 50px; /* Adjust initial top position as needed */
    left: 50px; /* Adjust initial left position as needed */
    width: 600px; /* Fixed width */
    height: 400px; /* Fixed height */
    background-color: rgba(0, 0, 0, 0.6); /* Darker semi-transparent background */
    color: #ffffff; /* Terminal text color */
    border-radius: 10px; /* Rounded corners */
    z-index: 1000; /* Ensure it's above other elements */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Light border with transparency */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7); /* Terminal shadow */
    backdrop-filter: blur(5px); /* Apply blur effect */
    padding: 10px; /* Add padding for content */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for effects */
}

@media screen and (max-width: 600px) {
    /* Adjust styles for smaller screens, such as phones */
    #terminal {
        max-width: 90%; /* Increase width for smaller screens */
    }
}

/* Terminal header styles */
#terminal-header {
    background-color: rgba(255, 255, 255, 0.05); /* Very transparent background */
    border-top-left-radius: 10px; /* Rounded corners for top left */
    border-top-right-radius: 10px; /* Rounded corners for top right */
    padding: 10px; /* Add padding */
    display: flex; /* Use flexbox for layout */
    justify-content: flex-start; /* Align buttons to the left */
    backdrop-filter: blur(10px); /* Apply blur effect */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
}

/* Terminal header hover effect */
#terminal-header:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly less transparent on hover */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Soft glow effect */
}


/* Terminal buttons styles */
#terminal-buttons {
    display: flex; /* Use flexbox for layout */
    gap: 10px; /* Add gap between buttons */
}

/* Individual terminal button styles */
.terminal-button {
    width: 15px; /* Adjust width as needed */
    height: 15px; /* Adjust height as needed */
    border-radius: 50%; /* Circular shape */
    cursor: pointer; /* Set cursor to pointer */
    background-color: rgba(255, 255, 255, 0.1); /* Initial button color */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

/* Terminal button hover effect */
.terminal-button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background on hover */
}


/* Close button styles */
#close-button {
    background-color: #FF5F57; /* Close button color */
}

/* Minimize button styles */
#minimize-button {
    background-color: #FFBD2E; /* Minimize button color */
}

/* Maximize button styles */
#maximize-button {
    background-color: #28CA42; /* Maximize button color */
}

/* Terminal content styles */
#terminal-content {
    padding: 20px; /* Add padding */
    height: calc(100% - 40px); /* Adjust for header height and padding */
    overflow-y: auto; /* Enable vertical scrolling if needed */
    user-select: none; /* Disable text selection */
}

/* Terminal text styles */
#terminal-text {
    margin: 0;
    padding: 0;
    font-size: 14px; /* Terminal text size */
    line-height: 1.5; /* Line height */
    overflow: hidden; /* Hide overflow */
    white-space: pre-line; /* Preserve line breaks */
}

/* Video background styles */
#video-background {
    position: fixed; /* Fixed position to cover the entire viewport */
    top: 0;
    left: 0;
    width: 100vw; /* 100% of viewport width */
    height: 100vh; /* 100% of viewport height */
    z-index: -1; /* Behind other content */
}

/* Scan lines effect */
#video-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 2px);
    z-index: 1;
    pointer-events: none;
}

/* Video styles */
#myVideo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire viewport while maintaining aspect ratio */
    z-index: 0; /* Behind other content */
}

/* Positioning classes */
.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.bottom-left {
    bottom: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
}

/* Blurred box styles */
#blurred-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%; /* Adjust width as needed */
    height: 40%; /* Adjust height as needed */
    background-color: rgba(0, 0, 0, 0.6); /* Darker semi-transparent background */
    border-radius: 20px; /* Rounded corners */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Light border with transparency */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Darker shadow */
    backdrop-filter: blur(5px); /* Apply blur effect */
    z-index: 999; /* Above other content */
    display: none; /* Initially hidden */
    padding: 20px; /* Add padding */
    text-align: center; /* Center text horizontally */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for effects */
}

/* Blurred box hover effect */
#blurred-box:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker semi-transparent background on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9); /* Enhanced shadow on hover */
}


/* Profile picture styles */
#blurred-box img {
    width: 100px; /* Adjust size as needed */
    height: 100px; /* Adjust size as needed */
    border-radius: 10%; /* Rounded corners */
    margin-bottom: 20px; /* Adjust margin as needed */
}

/* Links styles */
.links {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 1001; /* Ensure icons are above the blurred box */
}

.links a {
    display: flex;
    align-items: center;
    margin: 0 10px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

/* Link hover effect */
.links a:hover {
    color: #84d2a1;
}

.links a i {
    margin-right: 5px;
    font-size: 24px;
}

/* Hover styles for links */
.links a:hover {
    text-decoration: underline;
}

/* User Description styles */
.user-description {
    margin-bottom: 20px; /* Adjust margin as needed */
}

.user-description p {
    margin: 0; /* Remove default margin */
    padding: 10px; /* Add padding */
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

/* User description hover effect */
.user-description:hover p {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background on hover */
}

/* Popup styling */
.popup {
    display: none; /* Ẩn popup mặc định */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white; /* Màu nền trắng cho popup */
    padding: 30px;
    border-radius: 10px;
    color: black; /* Màu chữ đen */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Bóng đổ nhẹ */
    z-index: 9999;
    width: 500px; /* Đặt chiều rộng khung popup */
    max-width: 90%; /* Đảm bảo popup không quá rộng trên màn hình nhỏ */
    opacity: 0; /* Ban đầu ẩn hoàn toàn */
    animation: popIn 0.5s ease-out forwards; /* Thêm hiệu ứng nảy */
}

/* Hiệu ứng nảy popup */
@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5); /* Bắt đầu nhỏ */
        opacity: 0; /* Mờ dần */
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1); /* Nảy lên */
        opacity: 1; /* Hiện rõ */
    }
    100% {
        transform: translate(-50%, -50%) scale(1); /* Quay lại kích thước bình thường */
        opacity: 1; /* Hoàn toàn hiển thị */
    }
}

/* Tiêu đề của popup */
.popup-title {
    font-size: 24px; /* Kích thước chữ lớn hơn */
    font-weight: bold; /* In đậm */
    color: #2d2d2d; /* Màu tối cho tiêu đề */
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Nội dung chi tiết của popup */
.popup-details {
    margin-bottom: 20px; /* Khoảng cách giữa các dòng */
}

.popup-details p {
    font-size: 18px; /* Cỡ chữ vừa phải */
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

/* Icon cho các thẻ p */
.popup-details i {
    font-size: 22px; /* Kích thước icon */
    color: #4a90e2; /* Màu xanh dương cho icon */
}

/* Nút đóng popup */
.close-btn {
    width: 100%;
    background-color: #28CA42; /* Nút tắt màu xanh */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto; /* Đặt nút ở giữa */
}

.close-btn:hover {
    background-color: #218c34; /* Màu xanh đậm hơn khi hover */
}
