body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #333;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

p {
    text-align: center;
    font-size: 1.2em;
    color: #555;
}

.form-section,
.image-generator-section {
    text-align: center;
    margin: 20px 0;
}

input[type="number"],
input[type="text"] {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 50%;
}

input[type="color"] {
    margin: 10px 5px;
}

button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #555;
}

.result-section {
    margin-top: 20px;
    padding: 10px;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    margin-bottom: 50px;
}

.name-entry {
    font-size: 1.2em;
    margin: 10px 0;
}

input[type="checkbox"] {
    margin-left: 10px;
}

img#generatedImage {
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

.custom-file-upload {
    cursor: pointer;
    color: #333;
    margin-right: 10px;
}

.upload-btn {
    padding: 8px 15px;
    border: 1px solid #333;
    cursor: pointer;
}

.upload-btn:hover {
    background-color: #333;
    color: #fff;
}
@font-face {
    font-family: 'FontType1';
    src: url('fonts/FontType1.otf') format('opentype');
}

@font-face {
    font-family: 'FontType2';
    src: url('fonts/FontType2.otf') format('opentype');
}

@font-face {
    font-family: 'FontType3';
    src: url('fonts/FontType3.otf') format('opentype');
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

h1 {
    text-align: center;
}

div {
    margin: 10px;
    text-align: center;
}

label {
    margin-right: 5px;
}

input[type="text"] {
    font-size: 16px;
    padding: 5px;
}

input[type="color"] {
    margin-left: 5px;
}

input[type="checkbox"] {
    margin-left: 10px;
    vertical-align: middle;
}

#generatedImage {
    display: block;
    margin: 20px auto;
    border: 1px solid #ccc;
    background-color: transparent;
}

#wordCanvas {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #01823f;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 20px;
        margin: 15px;
    }

    input[type="text"] {
        font-size: 14px;
        padding: 10px;
        width: 90%; /* Make input fields full width on mobile */
        max-width: 100%; /* No max width restriction */
    }

    input[type="color"],
    input[type="checkbox"] {
        margin: 5px;
    }

    #wordCanvas {
        max-width: 100%; /* Ensure the canvas scales down on smaller screens */
        margin: 10px auto;
    }

    div {
        margin: 5px;
    }
    .custom-file-upload {
        font-size: 14px;
        margin-right: 10px;
    }
}

/* Ensure the body and html take up the full height of the viewport */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* This class ensures the content takes up all the available space,
   but doesn't push the footer off the bottom */
.content {
    flex: 1;
}

/* Footer styles */
footer {
    background-color: #f0f0f0;
    padding: 10px;
    text-align: right;
}

.footer-content a {
    color: #007BFF; /* Link color */
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}
