/* Import Fira Code font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
/* Center the app without modifying the body */
body {
    background: rgba(0, 0, 0);
    font-family: 'Fira Code', monospace;
}
.file_renamer-content_container{
    position: relative;
    top: 80px;
}
.app-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    margin: 30px; 
}

.container {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 106, 0.5);
    width: 90%;
    max-width: 400px;
}

/* Alien Style for the File Renamer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00ff6a;
    text-shadow: 0 0 10px #00ff6a;
}

.input-group {
    margin-bottom: 15px;
}

label {
    font-size: 1rem;
    color: #00ff6a;
    display: flex; /* Use flexbox to align items on the same line */
    align-items: center; /* Vertically align input and text */
    gap: 10px; /* Add spacing between the text, input, and span */
}
label .extension {
    color: rgba(0, 255, 106, 0.9); /* Matching the alien green theme */
    font-size: 1rem;
}
input[type="text"] {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff6a;
    color: #00ff6a;
    border-radius: 5px;
    padding: 5px;
    width: auto; /* Ensure input width adjusts to content */
    max-width: 200px; /* Prevent input from becoming too wide */
    outline: none;
}
input[type="text"]::placeholder {
    color: rgba(0, 255, 106, 0.7);
}

.alien-btn {
    background: #111;
    border: 2px solid #00ff6a;
    color: #00ff6a;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 106, 0.5);
    margin: 10px 0;
}

.alien-btn:hover {
    background: #00ff6a;
    color: #111;
    box-shadow: 0 0 20px rgba(0, 255, 106, 0.7);
}

#output {
    margin-top: 20px;
    text-align: left;
    background: rgba(0, 0, 0, 0.8);
    color: rgba(0, 255, 106, 0.5);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 106, 0.5);
    max-height: 150px;
    overflow-y: auto;
}

#output h3 {
    color: #00ff6a;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Tooltip styling */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 110%; /* Position 10px below the element */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 106, 0.9); /* Alien green background */
    color: #000;
    padding: 8px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 106, 0.7);
    z-index: 10;
}

/* Tooltip arrow below the tooltip box */
[data-tooltip]::before {
    content: "";
    position: absolute;
    top: 100%; /* Place the arrow below the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(0, 255, 106, 0.9); /* Arrow color matching tooltip */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Show tooltip on hover */
[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Styling for the byline */
.byline {
    font-size: 1rem;
    color: #fdfdfd; /* Subtle, professional color */
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Explanation paragraph styling */
.explanation {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    color: #888888; /* Subtle color for a professional tone */
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7); /* Dark, semi-transparent background */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 106, 0.5); /* Matching alien-style glow */
}

.explanation p {
    line-height: 1.6;
    margin: 0;
    font-family: 'Fira Code', monospace; /* Ensure the paragraph uses Fira Code */
}
.preview-container {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 106, 0.7);
    max-width: 700px;
    width: 90%;
    text-align: center;
    
}
h1 {
    color: #d1c7c7;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ff6a;
}
.description {
    color: #d1c7c7;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.files-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.file {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 106, 0.7);
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    margin: 5px 0;
    max-width: 90%;
    text-align: left;
    color: #fff;
    box-shadow: 0 0 5px rgba(0, 255, 106, 0.5);
}
.renamed-files {
    margin-top: 20px;
}
.alien-btn {
    background: #111;
    border: 2px solid #00ff6a;
    color: #00ff6a;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 106, 0.5);
}
.alien-btn:hover {
    background: #00ff6a;
    color: #111;
    box-shadow: 0 0 20px rgba(0, 255, 106, 0.7);
}
#markdown-content {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #ffffff;
    text-align: left;
}
.author-info, .author-info span{
    color: #ffffff;
}
#markdown-content p {
    font-family: 'Georgia', serif;
    margin-bottom: 16px;
    font-size: 1.2em;
    font-weight: lighter;
    color: #d1c7c7;
    white-space: normal;
}
#markdown-content h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}