#sound-generator-form {
    text-align: center;
    margin-bottom: 20px;
}

#sound-generator-form label {
    font-style: italic;
    font-size: 16px;
}

#sound-generator-form input, #sound-generator-form select {
    background-color: white !important;
    border: 2px solid gray !important;
    border-radius: 5px !important;
    color: black !important;
    width: 100%;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

#sound-generator-form input:focus {
    border: 2px solid black !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

#sound-generator-form button {
    margin-top: 10px;
    font-size: 20px;
}

#sound-generator-form button:disabled {
    background-color: gray;
}

#sound-generator-form .sound-generator-description {
    margin-bottom: 20px;
    font-weight: bold;
}

#sound-generator-form .sound-generator-description em {
    font-size: 14px;
}

#sound-generator-results {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.sound-item {
    position: relative;
    width: calc(33.33% - 16.67px);
    border: 1px solid black;
    background-color: white;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.sound-item .sound-visualizer {
    width: 100%;
    height: 100px;
    background-color: #17b9ff37;
    padding: 5px;
}

.sound-item .sound-item-title {
    width: 100%;
    font-size: 20px !important;
    font-weight: normal;
    padding: 20px 15px 10px 15px;
    text-align: center;
    margin-bottom: 0px !important;
}

.sound-item .sound-item-audio {
    display: none;
    line-height: 1;
    width: 100%;
}

.sound-item .sound-item-audio audio {
    width: 100%;
    height: 50px;
}

.sound-item .play-sound-button {
    position: absolute;
    left: 15px;
    top: 80px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgb(40, 40, 40);
    color: white;
    font-size: 16px;
    padding: 0px;
    line-height: 1;
    z-index: 999;
}

.sound-item .play-sound-button:hover, .sound-item .play-sound-button:focus {
    background-color: black;
}

.sound-item .download-sound-button {
    position: absolute;
    right: 15px;
    top: 80px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgb(40, 40, 40);
    color: white;
    font-size: 16px;
    padding: 0px;
    line-height: 1;
    z-index: 999;
}

.sound-item .download-sound-button:hover, .sound-item .download-sound-button:focus {
    background-color: black;
}

.sound-item-template {
    display: none;
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    display: block;
    width: 50px;
    height: 50px;
    border: 8px solid lightgray;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .sound-item {
        width: 100%;
    }
}