@font-face {
    font-family: 'New York';
    src: url('../font/NewYork.woff2') format('woff2'),
        url('../font/NewYork.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    box-sizing: border-box;
    background-color: #ffeede;
    color: #000;
    font-family: 'Sora';
    margin: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Arapey';
    width: 100%;
    font-size: 1.7em;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffeede49;
    backdrop-filter: blur(15px);
}

header a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: ease-in-out 0.3s;
    margin-right: 20px;
}

header a:hover {
    border-bottom: 1px solid;
    padding: 0 15px;
}

nav li {
    display: inline;
    padding-left: 20px;
}


header ul {
    padding: 0;
}

input[type="search"] {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background-color: #da920e94;
    width: 60%;
    transition: 0.3s;
}

::placeholder {
    color: #000;
    font-family: 'Sora';
}

form {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}


input[type="submit"] {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #0A5D46;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

input[type="submit"]:hover {
    background-color: #0a5d46b7;
}

main {
    padding: 20px;
}

h1 {
    font-family: 'New York';
    font-size: 5rem;
    font-weight: 400;
}


.card {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    padding: 30px;
    border-bottom: 2px solid #000;
    width: 90%;
    margin: auto;
}

.card img {
    max-width: 500px;
    aspect-ratio: 4/3;
    object-fit: contain;
}

h2 {
    font-family: 'Arapey';
    font-weight: 400;
    font-size: 3.5rem;
}

.card p {
    margin-bottom: 30px;
}

.card p a {
    font-size: 1.25rem;
    font-style: italic;
    color: #2e2e2e;
    text-decoration: none;
}

.card p a:hover,
.last:hover {
    color: #db940e;
}

.last {
    font-size: 1.1rem;
    color: rgb(180, 14, 14);
}

footer {
    text-align: center;
    padding-top: 30px;
}

a:focus,
button:focus,
input:focus {
    outline: 2px dashed #ce0000;
    outline-offset: 3px;
}

@media screen and (max-height:900px) {
    header {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 900px) {
    header {
        font-size: 1.5em;
    }

    h2 {
        font-size: 2.5em;
    }

    .card {
        flex-direction: column;
    }

    img {
        max-width: 350px;
        margin: auto;
    }

}