* {
    
    scroll-behavior: smooth;
    box-sizing: border-box;
}
@font-face {
    font-family: 'Carot Sans';
    src: url('https://esmerreklam.com/font/CarotSans-Light.eot');
    src: local('Carot Sans Light'), local('CarotSans-Light'),
        url('https://esmerreklam.com/font/CarotSans-Light.eot?#iefix') format('embedded-opentype'),
        url('https://esmerreklam.com/font/CarotSans-Light.woff2') format('woff2'),
        url('https://esmerreklam.com/font/CarotSans-Light.woff') format('woff'),
        url('https://esmerreklam.com/font/CarotSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

* {
    font-family: 'Carot Sans';
    font-weight: 300;
    font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

body {
    margin: 6% 0 0 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
}


form {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 3%;
}

.genisalan {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

.footer-container {
    width: 95vw;
}

.alt-onay {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    bottom: 0;
    left: 0;
    text-align: left;
    gap: 10px;
}

table {
    width: 8%;
}


table td,
table th,
table tr {
    text-align: center;
}

.alt-onay p {
    font-weight: bold;
    width: 100%;
}

.genisalan input[type="checkbox"] {
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.genisalan input[type="checkbox"]:hover {
    cursor: pointer;
}

.genisalan input,
.genisalan select,
.genisalan textarea,
.alan input,
.alan select,
.alan textarea {
    width: 100%;
    max-width: 600px;
    height: 35px;
}

.alan {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    align-items: flex-start;
}

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

label {
    margin: 10px 5px;
    font-weight: bold;
    width: 100%;
}

.baslik input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

#image-preview {
    margin: 0;
}

#preview {
    margin: 0;
}

input,
textarea,
select,
button {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

button {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
}

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

.baslik {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-direction: row;

    width: 100%;
}

.baslik img {
    width: 180px;
    height: auto;
    margin-bottom: 15%;
    bottom: 50%;
}

.foto {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Mobil ve Tablet için Media Query'ler */

/* 768px ve altı ekranlar (tablet ve mobil cihazlar) */
@media (max-width: 768px) {
    body {
        margin: 20% 0 0 0;
    }

    .baslik {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .footer-container {
        width: 100%;
    }

    form {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        margin-bottom: 5%;
    }

    .genisalan {
        gap: 10px;
    }

    .genisalan input[type="checkbox"] {
        width: 50px;
    }

    .genisalan input,
    .genisalan select,
    .genisalan textarea,
    .alan input,
    .alan select,
    .alan textarea {
        height: 30px;
        max-width: 100%;
    }

    .alan {
        max-width: 100%;
    }

    h1 {
        font-size: 24px;
    }

    .baslik img {
        width: 120px;
        margin-bottom: 10%;
    }

    .foto input[type="file"]{
        width: 50vw;
    }

    label {
        font-size: 14px;
    }

    input,
    textarea,
    select,
    button {
        font-size: 12px;
    }

    button {
        font-size: 16px;
    }

    .alt-onay {
        flex-direction: column;
        align-items: flex-start;
        display: flex;
        justify-content: center;
    }

    .alt-onay p {
        font-size: 14px;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        display: flex;
        justify-content: center;
    }

}

/* 480px ve altı ekranlar (daha küçük mobil cihazlar) */
@media (max-width: 480px) {
    .genisalan {
        flex-direction: column;
    }

    .baslik {
        flex-direction: column;
        width: 100%;
    }

    .foto {
        width: 50vw;
    }

    form {
        margin-top: 20%;
        width: 100%;
    }

    .baslik {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .baslik img {
        width: 100px;
        margin-bottom: 5%;
    }

    .genisalan input,
    .genisalan select,
    .genisalan textarea,
    .alan input,
    .alan select,
    .alan textarea {
        width: 100%;
        height: 40px;
    }

    table {
        width: 100%;
    }

    .alt-onay {
        flex-direction: column;
        align-items: flex-start;
        display: flex;
        justify-content: center;
    }

    .alt-onay p {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        display: flex;
        justify-content: center;
    }

    button {
        font-size: 14px;
        padding: 12px;
    }
}

@media (max-width: 1100px) {
    .footer-container {
        width: 100%;
    }

    form {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        margin-bottom: 4%;
    }

    .genisalan {
        gap: 15px;
    }

    .genisalan input[type="checkbox"] {
        width: 60px;
    }

    .genisalan input,
    .genisalan select,
    .genisalan textarea,
    .alan input,
    .alan select,
    .alan textarea {
        height: 32px;
        max-width: 100%;
    }

    .alan {
        max-width: 100%;
    }

    h1 {
        font-size: 26px;
    }

    .baslik img {
        width: 150px;
        margin-bottom: 12%;
    }

    .foto {
        width: 25%;
    }

    label {
        font-size: 15px;
    }

    input,
    textarea,
    select,
    button {
        font-size: 14px;
    }

    button {
        font-size: 18px;
    }

    .alt-onay {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .alt-onay p {
        width: 100%;
        font-size: 16px;
    }
}