/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}

.d-none {
    display: none;
}

a {
    color: currentColor;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

@font-face {
    font-family: "bebas";
    src: url("/assets/fonts/bebas/bold.woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.5;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #fff;
    background-image: url("/assets/images/pattern-bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #ea1c24;
    background-size: 100% auto;
}

/* -> Form */

.form-control {
    display: block;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    height: 4rem;
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    padding-inline: 1rem;
    backdrop-filter: blur(5px);
    &::placeholder

{
    color: rgba(255, 255, 255, 0.7);
}

}

.form-error-box {
    background-color: #f20000;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 1.125rem;
}

.checkbox {
    input

{
    opacity: 0;
    position: absolute;
}

input:checked ~ .checkmark {
    background-color: #d12e26;
    &:after

{
    display: block;
}

}
}

.checkmark {
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 0.25rem;
    display: inline-block;
    border: 1px solid rgba(238, 238, 238, 0.7);
    margin-right: 0.5rem;
    transform: translateY(0.5rem);
    &:after

{
    content: "";
    background-image: url('data:image/svg+xml,<svg width="24" height="16" viewBox="0 0 24 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.3965 0.480469C23.8535 0.988281 23.8535 1.75 23.3965 2.20703L9.99023 15.6133C9.48242 16.1211 8.7207 16.1211 8.26367 15.6133L1.35742 8.70703C0.849609 8.25 0.849609 7.48828 1.35742 7.03125C1.81445 6.52344 2.57617 6.52344 3.0332 7.03125L9.07617 13.0742L21.6699 0.480469C22.127 0.0234375 22.8887 0.0234375 23.3457 0.480469H23.3965Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    background-size: 50% auto;
    display: none;
}

}

/* -> Typography */

h1,
.h1,
h2,
.h2,
h3,
.h3 {
    line-height: 1;
    font-weight: 600;
}

h1,
.h1 {
    font-size: 3.125rem;
    font-family: "bebas";
    font-weight: 600;
}

h2,
.h2 {
    font-size: 2.875rem;
    margin-bottom: 0.5em;
}

h3,
.h3 {
    font-size: 2rem;
    font-weight: 500;
}

h5,
.h5 {
    font-size: 1.125rem;
    margin-bottom: 0.5em;
}

@media (min-width: 1200px) {
    h1,
    .h1 {
        font-size: 4.75rem;
    }

    h2,
    .h2 {
        font-size: 3.875rem;
    }

    h3,
    .h3 {
        font-size: 2.5rem;
    }
}

b {
    font-weight: 600;
}

/* -> Container */

.container {
    width: 100%;
    max-width: 1248px;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* -> Header */

#header {
    position: absolute;
    z-index: 99;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 1rem;
    .container

{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

}

#logo {
    display: block;
    width: 12.5rem;
}

.nav-item {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
}

#sss-nav-item {
    &::before

{
    content: "SSS";
}

}

@media (min-width: 1200px) {
    #header {
        padding-top: 3rem;
    }

    #logo {
        width: 20.3rem;
    }

    #sss-nav-item {
        &::before

{
    content: "Sıkça Sorulan Sorular";
}

}
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

#home {
    background-image: url("/assets/images/mobile-bg.webp");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: auto 36.5rem;
    background-color: #000;
    padding-top: 30rem;
}

@media (min-width: 1200px) {
    #home {
        background-image: url("/assets/images/desktop-bg.webp");
        background-size: 2050px auto;
        padding-top: 12.5rem;
    }
}

/* -> Hero */
#hero {
    margin-bottom: 3.125rem;
}

#hero-content {
    text-align: center;
    margin-bottom: 2rem;
    h1

{
    font-style: italic;
}

}

#hero-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#hero-form-checkbox {
    padding-block: 1rem;
}

@media (min-width: 1200px) {
    #hero {
        width: 43.75rem;
        margin-left: auto;
        margin-bottom: 6rem;
    }

    #hero-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        .form-error-box

{
    grid-area: 4/1 / span 1/3;
}

}

#hero-content {
    text-align: left;
}

#form-bottom-group {
    grid-area: 4/1 / span 1/3;
}

}

.button {
    display: block;
    width: 100%;
    background-color: #d12e26;
    color: #fff;
    height: 4rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.75rem;
    font-weight: 500;
    cursor: pointer;
}

/* -> Footer */
#footer {
    margin-top: 4.375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-block: 1.5rem;
    .container

{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

}

#footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    a

{
    color: #fff;
    opacity: 0.5;
    text-decoration: none;
    font-size: 1.125rem;
}

}

@media (min-width: 1200px) {
    #footer {
        padding-block: 2rem;
        margin-top: 7.5rem;
        .container

{
    flex-direction: row;
    justify-content: space-between;
}

}
}

/* -> Saved */

#saved-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 7rem;
    margin-bottom: 2.5rem;
    h2

{
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-style: italic;
}

}

.success-badge {
    width: 12.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.success-badge-text {
    background-color: #3bb13b;
    color: #fff;
    font-size: 1.5rem;
    white-space: nowrap;
    height: 2.75rem;
    padding-inline: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    margin-top: -2.5rem;
}

#saved-image {
    background-image: url("/assets/images/saved-img.webp");
    background-position: center;
    background-size: cover;
    height: 17.125rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 1200px) {
    #saved-image {
        height: 28.75rem;
        margin-bottom: 2.75rem;
    }

    .success-badge {
        margin-bottom: 3.5rem;
    }

    #saved-hero {
        p

{
    font-size: 1.625rem;
}

}
}

.text-card {
    background-color: #f9f9f9;
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    p

{
    opacity: 0.6;
    font-weight: 300;
}

h3 {
    margin-bottom: 0.625rem;
    font-weight: 400;
}

}

#text-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1200px) {
    .text-card {
        padding: 1.5rem 2rem;
        p

{
    font-size: 1.625rem;
}

}

#text-card-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

}

.share-item {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    width: 3rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
    border: none;
    &:active

{
    transform: translateY(1px);
}

&:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

}

.share-item-list {
    display: flex;
    gap: 1rem;
}

#share-box-wrapper {
    margin-block: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#copylink {
    position: relative;
    span

{
    position: absolute;
    top: -20px;
    font-size: 1rem;
    background-color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 300ms 0s ease;
}

&.copied {
    span

{
    opacity: 1;
    transform: translateY(0);
}

}
}

.page-title {
    padding-top: 10rem;
    margin-bottom: 4rem;
    text-align: center;
    h2

{
    font-weight: 500;
    font-style: italic;
}

}

#sss-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    .text-card

{
    h3

{
    font-size: 1.5rem;
    font-weight: 400;
}

}
}

@media (min-width: 1200px) {
    #sss-list {
        .text-card

{
    h3

{
    font-size: 1.75rem;
}

}
}
}

#captchaImage {
    width: auto;
    height: 4rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

#form-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1200px) {
    #form-footer {
        flex-direction: row;
        grid-area: 5/1 / span 1/3;
        .button

{
    flex: 1;
    width: auto;
    font-size: 1.5rem;
    padding-inline: 1rem;
}

}
}
