* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Concert One", serif;
}

:root {
    --bg-color: #1f242d;
    --primary-color: #00b800;
}

a {
    text-decoration: none;
    color: currentColor;
}

body {
    background: var(--bg-color);
    height: 100vh;
}

header {
    width: 100%;
    padding: 40px 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

header form {
    width: 50%;
    position: relative;
    overflow: hidden;
}

header input[type="search"] {
    padding: 1rem 2rem;
    border-radius: 2rem;
    border: none;
    background: #fff2;
    color: #fff;
    width: 100%;
    font-size: 1.2rem;
    outline: none;
}

header form button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 1.5rem;
    border-radius: 2rem;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    height: calc(100% - 10px);
    margin: 5px;
    cursor: pointer;
}

header .upload {
    position: relative;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    padding: 1rem 2rem;
    background: var(--primary-color);
    border-radius: 2rem;
    margin-right: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.menus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 4rem;
    margin: 40px 100px;
    min-height: calc(100% - 200px);
}

.menus .card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
}

.menus .card .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menus .card .top img {
    border-radius: 5px;
}

.menus .card hr {
    border: none;
    height: 1px;
    background: #fff5;
}

.menus .card .name {
    margin-top: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}

.menus .card .right {
    display: flex;
    gap: 1rem;
}

.menus .card .right span {
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
}

.menus .card img {
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.menu {
    display: flex;
    flex-direction: column;
    color: #fff;
    height: 100vh;
}

.menu img {
    height: 100%;
    object-fit: cover;
    width: fit-content;
    max-width: 100%;
    max-height: fit-content;
    margin: 0 auto;
}

.menu .details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    font-size: 2rem;
    font-weight: 500;
}

.menu .details img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
    margin: unset;
}

.upload-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: #fff;
    display: none;
}

.upload-form h2 {
    font-size: 2rem;
    font-weight: 500;
}

.upload-form label {
    cursor: pointer;
    background: #fff;
    color: #000;
    padding: 1rem;
    overflow: hidden;
    border-radius: 1rem;
    width: 300px;
    max-width: calc(100% - 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.upload-form img {
    height: 50px;
    width: 50px;
    object-fit: cover;
}

.upload-form hr {
    border: none;
    height: 1px;
    background: #fff5;
    width: 300px;
    max-width: calc(100% - 2rem);
}

.upload-form input {
    padding: 1rem 2rem;
    border-radius: 2rem;
    border: none;
    background: #fff;
    color: #000;
    width: 300px;
    font-size: 1rem;
    outline: none;
    max-width: calc(100% - 2rem);
}

.upload-form textarea {
    padding: 1rem 2rem;
    border-radius: 2rem;
    border: none;
    background: #fff;
    color: #000;
    width: 300px;
    font-size: 1rem;
    outline: none;
    max-width: calc(100% - 2rem);
}

.upload-form button {
    padding: 1rem 2rem;
    border-radius: 2rem;
    border: none;
    background: var(--primary-color);
    color: #fff;
    width: 300px;
    font-size: 1rem;
    cursor: pointer;
}

.upload-form .close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
}

footer {
    padding: 1rem;
    color: #fff;
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        width: calc(100% - 20px);
    }

    header form {
        width: 100%;
    }

    header form input[type="search"] {
        font-size: 12px;
        padding: 10px 20px;
    }

    header form button {
        font-size: 12px;
        padding: 4px 10px;
    }

    header .upload {
        position: fixed;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
        padding: 10px 20px;
        border: 5px solid;
    }

    .menus {
        margin: 40px 20px;
    }

    .menus .card {
        max-width: 100%;
    }

    .menu .details{
        font-size: 1rem;
    }
}