/* General Styles */
@font-face {
    font-family: 'Cairo';
    src: url('fonts/cairo.ttf') format('truetype');
    font-weight: bold;
}
body, html {
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    margin: 0;
    padding: 0;
    background: url('images/background.jpg') center/cover no-repeat fixed; /* Add 'fixed' here */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    direction: rtl;
    position: relative;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    z-index: -1;
}
/* Container */
.container {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 350px;
    width: 100%;
    overflow: hidden;
}
.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007BFF, #00BFFF, #007BFF);
    z-index: -1;
    border-radius: 17px;
    animation: shine 3s infinite alternate;
}
/* Language Switcher */
.language-switcher {
    margin-bottom: 20px;
}
.lang-btn {
    background: none;
    border: 2px solid #007BFF;
    color: #007BFF;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.lang-btn.active, .lang-btn:hover {
    background: #007BFF;
    color: white;
    border-color: #0056b3;
}
.lang-btn::after, button::after, .logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: rotate(45deg);
    animation: shineElement 3s infinite;
}
/* Header */
h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}
/* Input and Button */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}
input:focus {
    border-color: #007BFF;
}
button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}
button:hover {
    background: #0056b3;
}
/* Generated Image */
#generatedImage {
    max-width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Logo and HighVision Container */
.logo-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    margin-bottom: 0px; /* Add spacing below the logo section */
}
.highvision {
    display: flex;
    align-items: center; /* Align text and favicon side by side */
    margin-bottom: 0px; /* Add spacing between HighVision and the main logo */
}
.highvision p {
    margin: 10px; /* Remove default margin */
    margin-right: center; /* Add space between text and favicon */
    font-size: 20px; /* Adjust font size */
    color: #000000; /* Match the header color */
}
.highvision img {
    max-width: 50px; /* Adjust size of the favicon */
    height: auto;
    transition: transform 0.3s ease; /* Add hover effect */
}
.highvision img:hover {
    transform: scale(1.1); /* Hover effect for the favicon */
}
.logo img {
    max-width: 300px; /* Adjust size of the main logo */
    height: auto;
    transition: transform 0.3s ease; /* Add hover effect */
}
.logo img:hover {
    transform: scale(1.1); /* Hover effect for the main logo */
}
/* Animations */
@keyframes shine {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}
@keyframes shineElement {
    0% { top: -50%; left: -50%; }
    100% { top: 150%; left: 150%; }
}
/* Responsive Design */
@media (max-width: 600px) {
    .container { padding: 20px; }
    h2 { font-size: 20px; }
    p { font-size: 14px; }
}