body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    text-align: center;
}

body.body-no-scroll {
    overflow: hidden;
}

header h1 {
    font-size: 3em;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    position: relative;
}

#language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lang-button {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
}

.lang-button:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.lang-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.draw-section {
    margin-bottom: 2rem;
}

#draw-button {
    padding: 1rem 2rem;
    font-size: 1.5em;
    color: #fff;
    background-color: #ff7e5f;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#draw-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#result {
    margin-top: 2rem;
    font-size: 1.5em;
    color: #333;
    min-height: 50px;
}

.share-section {
    margin-top: 1rem;
}

#share-button {
    padding: 0.8rem 1.5rem;
    font-size: 1em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#contact-nav-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

#contact-nav-button:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.contact-section {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box; /* Include padding in width/height */
}

.contact-section.active {
    display: flex; /* Show when active */
}

.contact-section .contact-form-container { /* A container for the form content */
    background-color: #fefefe;
    margin: auto; /* Center the modal */
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%; /* Could be more responsive */
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.contact-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.2em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background-color: #0056b3;
}