body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #ff6f61;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    padding: 10px;
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #ff3b2f;
}

#memories {
    margin-top: 20px;
}

.memory {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

audio, img {
    width: 100%;
    margin-top: 10px;
}
.logout {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ff6f61;
    text-decoration: none;
}

.logout:hover {
    text-decoration: underline;
}
.voice-recorder {
    margin-bottom: 20px;
}

.voice-recorder button {
    padding: 10px 20px;
    margin-right: 10px;
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.voice-recorder button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.voice-recorder audio {
    width: 100%;
    margin-top: 10px;
}

.file-upload {
    margin-bottom: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.memory {
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.memory img, .memory video, .memory audio {
    width: 100%;
    border-radius: 5px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #00ff00;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
.uploader {
    margin-top: 10px;
    font-style: italic;
    font-size: 14px;
}
/* Search Bar */
.search-container {
    text-align: center;
    margin: 20px 0;
}

#search-bar {
    width: 300px;
    padding: 10px;
    border: 2px solid #00ff00;
    border-radius: 5px;
    background-color: transparent;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s;
}

#search-bar:focus {
    box-shadow: 0 0 10px #00ff00;
}

/* Glowing Border */
.glowing-border {
    border: 2px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 10px #00ff00;
}

/* Song Title */
.song-title {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}
/* Edit and Save Buttons */
.edit-button, .save-button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #00ff00;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.save-button {
    background-color: #ff0000;
    color: #fff;
}

.edit-button:hover, .save-button:hover {
    opacity: 0.8;
}

.edit-title {
    display: none;
    width: 150px;
    padding: 5px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    background-color: transparent;
    color: #ffffff;
    font-size: 14px;
}
/* Progress Bar */
#progress-bar-container {
    width: 100%;
    height: 5px;
    background-color: #444;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #00ff00;
    transition: width 0.1s;
}

/* Delete Button */
.delete-button {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.delete-button:hover {
    background-color: #cc0000;
}
/* Navigation Menu */
.navigation {
    margin-bottom: 20px;
}

.navigation a {
    margin-right: 15px;
    color: #00ff00;
    text-decoration: none;
    font-size: 16px;
}

.navigation a:hover {
    text-decoration: underline;
}

/* Progress Bar and Timer */
#progress-bar-container {
    width: 100%;
    height: 5px;
    background-color: #444;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #00ff00;
    transition: width 0.1s;
}

#timer {
    position: absolute;
    right: 10px;
    top: -20px;
    color: #ffffff;
    font-size: 14px;
}

/* Post-Recording Actions */
#post-recording-actions {
    margin-top: 10px;
}

#post-recording-actions button {
    margin-right: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#save-recording {
    background-color: #00ff00;
    color: #000;
}

#delete-recording {
    background-color: #ff0000;
    color: #fff;
}
/* Galaxy Background */
body.galaxy-bg {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, #1a1a1a, #000000);
    background-image: url('galaxy-bg.jpg'); /* Add a galaxy image for better effect */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    color: #ffffff;
}

/* Container */
.container {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px #00ff00;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Heading */
.container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

/* Error Message */
.error {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1rem;
    text-shadow: 0 0 5px #ff0000;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Glowing Input Fields */
.glowing-input {
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #00ff00;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.glowing-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

/* Glowing Button */
.glowing-button {
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #00ff00;
    border-radius: 10px;
    background: #00ff00;
    color: #000000;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

.glowing-button:hover {
    background: #00cc00;
    box-shadow: 0 0 15px #00ff00;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .container h1 {
        font-size: 2rem;
    }

    .glowing-input, .glowing-button {
        padding: 12px;
        font-size: 1rem;
    }
}