body {
    font-family: 'Roboto', sans-serif;
    background: #120700;
    color: #ffcc99;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 600px;
    padding: 30px;
    background: rgba(60, 20, 5, 0.7);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(255, 143, 43, 0.3);
    backdrop-filter: blur(12px);
    text-align: center;
    animation: slideIn 0.8s ease-in-out;
    transform: translateY(-20px);
    border: 1px solid rgba(255, 100, 10, 0.3);
}

h1 {
    margin-bottom: 20px;
    font-size: 32px;
    color: #ff8c42;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeIn 1.2s ease-in-out;
    text-shadow: 0 0 10px rgba(255, 80, 0, 0.6);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .search-container {
        flex-direction: row;
    }
}

#urlInput {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(40, 10, 0, 0.6);
    color: #ffcc99;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 100, 10, 0.3);
}

#urlInput::placeholder {
    color: #cc9966;
    font-style: italic;
}

#urlInput:focus {
    background: rgba(60, 20, 5, 0.8);
    box-shadow: 0 0 12px rgba(255, 143, 43, 0.5);
}

button {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #120700;
    background: linear-gradient(135deg, #ff8c42, #ff5722);
    box-shadow: 0 4px 15px rgba(255, 143, 43, 0.4);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 143, 43, 0.6), 0 0 20px rgba(255, 80, 0, 0.4);
    background: linear-gradient(135deg, #ffa653, #ff7842);
    animation: ember-pulse 2s infinite;
}

@keyframes ember-pulse {
    0% { box-shadow: 0 6px 20px rgba(255, 143, 43, 0.6), 0 0 20px rgba(255, 80, 0, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(255, 143, 43, 0.8), 0 0 30px rgba(255, 100, 0, 0.6); }
    100% { box-shadow: 0 6px 20px rgba(255, 143, 43, 0.6), 0 0 20px rgba(255, 80, 0, 0.4); }
}

#searchButton {
    background: linear-gradient(135deg, #ff8c42, #ff5722);
}

#searchButton:hover {
    background: linear-gradient(135deg, #ffa653, #ff7842);
}

#openNewTab {
    background: linear-gradient(135deg, #ff8c42, #ff5722);
    width: 100%;
}

#openNewTab:hover {
    background: linear-gradient(135deg, #ffa653, #ff7842);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 7, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80%;
    background: #1a0d00;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(255, 143, 43, 0.3);
    animation: slideIn 0.5s ease-in-out;
    border: 1px solid rgba(255, 100, 10, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ff8c42;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff5722;
}

.iframeWindow {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes flicker {
    0% { text-shadow: 0 0 5px rgba(255, 80, 0, 0.6); }
    25% { text-shadow: 0 0 10px rgba(255, 80, 0, 0.8); }
    50% { text-shadow: 0 0 7px rgba(255, 80, 0, 0.6); }
    75% { text-shadow: 0 0 12px rgba(255, 80, 0, 0.8); }
    100% { text-shadow: 0 0 5px rgba(255, 80, 0, 0.6); }
}

h1 {
    animation: flicker 3s infinite;
}

