
body {
    background-image: url("media/urlap/IMG_8464_1.jpg");
    background-size: cover;
    background-position: 10% center;
    background-attachment: fixed;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

body.dark-mode{
    background-image: url("media/fooldal/dark-mode-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}


body.dark-mode .form-content {
    background-color: rgb(0,0,0,0.7);
    color: white;
}

body.dark-mode label{
    color: rgb(194, 194, 194);
}

body.dark-mode input[type="text"],body.dark-mode
textarea{
    background-color: rgb(194, 194, 194);
}

body.dark-mode .main{
    background-color: rgb(0,0,0,0.7);
}

#dark-mode-toggle {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: background-color 0.3s;
}

#dark-mode-toggle:hover,
#dark-mode-toggle:focus-visible {
    background-color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
}

.dark-mode #dark-mode-toggle {
    color: #eee;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 3px 3px 5px rgba(0, 0, 0);
    max-width: 800px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.form-description {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.form-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 0.625rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: fit-content;
    backdrop-filter: blur(4px);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

input[type="text"],
textarea{
    background-color: white;
}

input[type="text"],
textarea,
input[type="file"] {
    padding: 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button[type="reset"] {
    background-color: #f44336;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button[type="reset"]:hover {
    background-color: #e53935;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link a:hover {
    background-color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .form-content {
        max-width: fit-content;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}