* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #ddd;
}

h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 10px;
}

#moodInput {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    outline: none;
}

#moodInput:focus {
    border-color: #999;
}

button {
    padding: 12px 24px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    white-space: nowrap;
}

button:hover {
    background: #000;
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #ddd;
}


.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-btn:hover {
    color: #000;
}

.popup-content h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
    margin-right: 40px;
}

.project-description {
    color: #444;
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 15px;
}

.project-description p {
    margin-bottom: 12px;
}

.project-description p:first-child {
    margin-top: 0;
}

.project-description strong {
    color: #333;
    font-weight: 600;
}

.project-description ul {
    margin: 12px 0;
    padding-left: 20px;
}

.project-description li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.popup-content #songAlbum {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
    font-style: italic;
}

.analysis-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.analysis-section h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 12px;
    font-weight: 600;
}

.analysis {
    color: #444;
    font-size: 0.9em;
    line-height: 1.6;
    font-style: italic;
}

.youtube-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.youtube-link:hover {
    background: #000;
}

@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .popup-content {
        padding: 25px 20px;
    }
}

