/* Import Fredoka Font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;700&display=swap');

/* General Styles */
.dog-name-generator-container {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    color: #333;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Paw Print Background Decoration */
.dog-name-generator-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: url('https://i.imgur.com/8FQzZfP.png') no-repeat center/contain;
    opacity: 0.2;
    transform: rotate(-20deg);
}

.dog-name-generator-container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: url('https://i.imgur.com/8FQzZfP.png') no-repeat center/contain;
    opacity: 0.2;
    transform: rotate(30deg);
}

/* Headings and Text */
.dog-name-generator-container h1 {
    font-family: 'Fredoka', sans-serif;
    color: #e91e63;
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: 700;
}

.dog-name-generator-container p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
}

/* Pulsating Animation */
@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Style for name display */
#name {
    font-size: 36px; /* Decreased font size */
    margin: 30px 0;
    color: #d81b60;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    white-space: normal; /* Allow wrapping */
    word-break: break-word; /* Break long words if necessary */
    overflow: hidden; /* Prevent overflow */
    padding: 10px 20px; /* Add padding for better readability */
    border: none; /* Remove box styling */
    background: none; /* Remove background */
    animation: pulsate 1.5s infinite ease-in-out; /* Keep the pulsating animation */
    max-width: 100%; /* Limit the width */
    box-sizing: border-box; /* Ensure padding doesn't stretch the container */
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center buttons horizontally */
    gap: 2px; /* Add vertical spacing between buttons */
    margin-top: 25px; /* Add space above the buttons */
}

/* Buttons */
.dog-name-generator-container button {
    background: #ff4081;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 65, 129, 0.4);
    transition: 0.3s;
}

.dog-name-generator-container button:hover {
    transform: scale(1.05);
    background: #f50057;
}

.dog-name-generator-container .copy-btn {
    background: #4caf50;
    font-size: 16px;
    padding: 10px 25px;
}

/* Inputs */
.dog-name-generator-container select,
.dog-name-generator-container input[type="number"] {
    width: 85%;
    padding: 12px;
    margin: 15px auto;
    border-radius: 12px;
    border: 2px solid #ff80ab;
    font-size: 16px;
    display: block;
}

/* Tags */
.dog-name-generator-container .tags {
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}