* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}
body {
    background: linear-gradient(to right, #434343, #000);
    color: #fff;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background: linear-gradient(90deg, #004d80, #007acc, #0099cc);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #003a66;
    height: 60px; /* Reduced height */
}

header img {
    height: 30px; /* Reduced logo size */
    border-radius: 50%;
    margin-right: 10px;
}

header h1 {
    font-size: 20px; /* Reduced font size */
    color: white;
    flex: 1;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    text-align: left;
}

nav {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px; /* Reduced font size */
    font-weight: 600;
    padding: 6px 10px; /* Compact padding */
    border-radius: 5px;
    background: transparent;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffdd57;
}

.resize-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.resize-controls button {
    background:  #005f9e;
    color: white;
    border: none;
    padding: 5px 8px; /* Reduced button padding */
    border-radius: 5px;
    font-size: 15px; /* Reduced font size */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.resize-controls button:hover {
    background: #005f9e;
    opacity: 0.2;
    transform: translateY(-2px);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

nav a:hover {
    color: #ffdd57;
}


/* Content area */
.container {
    display: none; /* Initially hidden */
}

/* Add fade-in transition for content */
.fade-in {
    animation: fadeIn 1s forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.container {
    width: 100%;
    height: 100vh;
    padding: 20px;
    display: flex;
    gap: 20px;
}
.left, .right {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
textarea {
    width: 100%;
    height: 30%;
    background: #1e1e2f;
    color: #e0e0e0;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    resize: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
textarea:focus {
    border-color: #007acc;
}
label {
    background: #007acc;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}
iframe {
    width: 100%;
    height: calc(100% - 50px);
    background: #fff;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transition: width 0.3s, height 0.3s;
}
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

