@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Black.ttf') format('truetype');
    font-weight: bolder;
    font-style: normal;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Thin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Ultra.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('fonts/SpotifyMix-Extrabold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

body {
    font-family: 'Inter', sans-serif;
    text-align: center;
    background-image: linear-gradient(#1ed760, #1eaa4f);
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 1rem;
    transition: background-position 0.2s ease;
}

#popupContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#popup {
    background: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3);
}

#popup h2 {
    margin-top: 0;
    font-size: 24px;
}

#popup p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.6;
}

#acceptButton {
    background-color: #1aaa4d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#acceptButton:hover {
    background-color: #128538;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #ffffff;
    margin-top: 2rem;
    padding: 0 1rem;
    text-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3);
}

form {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    text-align: left;
}

label {
    display: block;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
    font-size: 1rem;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #1DB954;
    outline: none;
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.5);
}

button {
    width: 100%;
    padding: 14px 16px;
    margin-top: 1rem;
    background-color: #22bd58;
    color: #f7f7f7;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

button:hover {
    background-color: #22ca5d;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

canvas {
    font-family: 'Spotify Mix', sans-serif;
    display: block;
    margin-top: 2rem;
    border: 2px solid #ddd;
    width: 100%;
    max-width: 400px;
    height: auto;
    box-sizing: border-box;
}

footer {
    padding: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
}

footer p {
    padding: 5px;
    margin: 0;
}

footer a {
    color: black;
}

#downloadBtn {
    display: block;
    margin-top: 0.5rem;
}

.mobileWarningContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    display: none;
}

#mobileWarning {
    background-color: rgba(204, 15, 15, 0.9);
    color: #ffffff;
    text-align: center;
    width: 30%;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Spotify Mix', sans-serif;
}

#mobileWarning h2 {
    margin: 0;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 10px;
}

#mobileWarning p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

#suggestionPopupContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9997;
}

#suggestionPopup {
    background: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#suggestionForm {
    margin-bottom: 15px;
}

#suggestionPopup h2 {
    margin-top: 10px;
    font-size: 24px;
    color: #333333;
    font-weight: 600;
}

#suggestionPopup p {
    width: 80%;
    font-size: 14px;
    font-weight: 500;
    margin: 0px;
    line-height: 1.6;
    color: #333333;
}

#suggestionPopup label {
    display: block;
    font-weight: 600;
    color: #333333;
    font-size: 1rem;
}

#suggestionPopup input,
#suggestionPopup textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 1.5rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#suggestionPopup input:focus,
#suggestionPopup textarea:focus {
    border-color: #1DB954;
    outline: none;
    box-shadow: 0 0 8px rgba(29, 185, 84, 0.5);
}

#suggestionPopup button {
    background-color: #1aaa4d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

#suggestionPopup button:hover {
    background-color: #128538;
}

#suggestionPopup textarea {
    resize: vertical;
    height: 120px;
}

#suggestionPopup #closeButton {
    position: absolute;
    top: 10px;
    right: 25px;
    background-color: #da4433;
    color: #ffffff;
    border: none;
    border-radius: 20%;
    width: 30px;
    height: 30px;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    z-index: 1000;
}

#suggestionPopup #closeButton:hover {
    background-color: #c03829;
    transform: scale(1.1);
}

#suggestionPopup #closeButton:focus {
    outline: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    #popup {
        width: 80%;
    }

    #suggestionPopup {
        width: 80%;
    }

    .mobileWarningContainer {
        display: flex;
    }

    #mobileWarning {
        width: 80%;
    }

    form {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    label {
        font-size: 0.875rem;
    }

    input[type="text"], input[type="number"] {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    button {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    canvas {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    #popup {
        width: 80%;
    }

    #mobileWarning {
        width: 60%;
    }

    form {
        padding: 1rem;
        margin: 0 3rem;
        width: 90%;
    }

    input[type="text"], input[type="number"] {
        padding: 10px 12px;
    }

    button {
        padding: 10px 12px;
    }
}
