* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(#fff4e4 0%, #c98686 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    color: #2b2d42;
}

header {
    background-color: #2b2d42;
    color: #fff4e4;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

main {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    margin-top: 20px;
    animation: slideUp 1s ease-out;
}


.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2b2d42;
}

input[type="date"],
input[type="time"],
input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    border-color: #2b2d42;
    box-shadow: 0 0 8px rgba(43, 45, 66, 0.5);
    outline: none;
}

button {
    background-color: #2b2d42;
    color: #fff4e4;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

button:hover {
    background-color: #c98686;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(1px);
}

.distance-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.distance-controls button {
    margin: 5px;
    padding: 10px 15px;
    background-color: #2b2d42;
    color: #fff4e4;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.distance-controls button:hover {
    background-color: #c98686;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.distance-controls button:active {
    transform: translateY(1px);
}

img {
    width:20%;
    float:center; 
    margin:0;
}


footer {
    margin-top: 20px;
    text-align: center;
    color: white;
    background-color: #2b2d42;
    width: 100%;
    padding: 10px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

textarea {
    width: 100%; /* Ensures it spans the form width */
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Helvetica Neue', sans-serif;
    color: #2b2d42;
    background-color: #fff;
    resize: vertical; /* Allow vertical resizing */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus {
    border-color: #2b2d42;
    box-shadow: 0 0 8px rgba(43, 45, 66, 0.5);
    outline: none;
}

@media (max-width: 768px) {
    body {
        margin: 10px;
        font-size: 14px;
    }
    input[type="date"],
    input[type="time"],
    input[type="number"],
    input[type="text"],
    select,
    textarea {
        font-size: 16px;
    }
    canvas {
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 769px) {
    body {
        margin: 20px;
        font-size: 16px;
    }
    canvas {
        width: 800px !important;
        height: 400px !important;
    }
}
