body {
    font-family: 'Archivo', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #8B0000; /* Dark red background */
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
    max-height: 100vh;
    overflow-y: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#cardContainer {
    margin-top: 20px;
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

canvas {
    border: 1px solid #ccc;
    width: 100%; /* Ensure the canvas fits within the container */
    height: auto;
}

.hashtag-container {
    margin-top: 20px;
    text-align: center;
}

#hashtagText {
    width: 100%;
    height: 60px;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
}

.btn {
    display: inline-block;
    background-color: #8B0000; /* Dark red background */
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
}

.btn:hover {
    background-color: #a52a2a; /* Slightly lighter red for hover effect */
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    label, button, #hashtagText, #copyHashtagButton {
        font-size: 14px;
    }

    #hashtagText {
        height: 50px;
    }

    #cardContainer {
        margin-top: 10px;
    }

    canvas {
        width: 90%; /* Adjust canvas width for mobile */
    }
}