* {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    background-color: white;
}

nav {
    padding-block: 20px;
    background-color: #15c318;
    display: flex;
    justify-content: center;
}

.nav {
    padding-inline: 20px;
    display: flex;
    width: 760px;
    gap: 1em;
    color: white;
}

.header-box {
    display: flex;
    gap: 1em;
}

.site-name {
    line-height: 40px;
}

a {
    text-decoration: none;
}

form {
    padding-block: 20px;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;
}

button,
input,
select {
    height: 35px;
    margin-block: 2px;
    padding: 10px 15px;
    background-color: #1a921c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

input {
    height: 2em;
}

input.submit {
    height: auto;
}


input::placeholder {
    color: white;
}

select {
    width: 155px;
}

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

button:active {
    box-shadow: inset 0px 1px 3px #00000075;
}

button:focus {
    outline: none;
}

button:disabled,
#upload-submit:disabled {
    background-color: #dddddd;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
}

.button,
.food-image,
.date,
.label,
label,
.rating {
    user-select: none;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
}

.legend {
    padding: 20px;
}

.description {
    display: flex;
    align-items: center;
}

.buttons {
    display: flex;
    gap: 1em;
}

#week {
    padding: 20px;
}

.disclaimer {
    font-weight: normal;
}

#change-image {
    width: 20px;
    height: 20px;
    background-color: gray;
    cursor: pointer;
}

.container {
    display: flex;
    justify-content: center;
}

.menu {
    width: 800px;
}

#loggedInDiv {
    transform: translateY(50px);
    background-color: #15c318;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

@media only screen and (min-width: 800px) {
    #loggedInDiv {
        right: calc((100% - 800px)/2);
    }
}

.day {
    background-color: #15c318;
    color: white;
    padding: 8px 16px;
    padding-bottom: 16px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px 5px lightgray;
    font-size: 1em;
}

.date {
    font-weight: bold;
    padding: 8px 0;
}

.food {
    display: grid;
    flex-direction: column;
    line-height: 2em;
    gap: 10px;
    border-radius: 10px;
}

.meal {
    display: flex;
    justify-content: center;
    color: white;
    background-color: #1a921c;
    justify-items: center;
    align-items: center;
    border-radius: 10px;
}

.meal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-row: 1;
    grid-column: 1;
    margin-inline: auto;
}

.meal-name {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-inline: 10px;
    text-align: center;
}

.chevron-right {
    height: min-content;
    font-size: 1.5em;
}

.food-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    justify-self: right;
    align-self: start;
    grid-row: 1;
    grid-column: 2;
    border-radius: 10px;
}

@media only screen and (max-width: 500px) {
    .food-image {
        width: 125px;
        height: 125px;
    }
}

.label {
    padding: 5px;
    height: 32px;
    object-fit: contain;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    padding-block: 80px;
}

.notice {
    text-align: center;
    padding: 20px;
}

.bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    background-color: #126715;
    color: white;
}

.bottom-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.form {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    background-color: #15c318;
    color: white;
    padding: 40px;
    margin: 40px;
    border-radius: 10px;
}

.form-button {
    background-color: #15c318;
}

#copywrite {
    text-align: center;
}

.input-box {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}

.input-box input {
    margin-left: auto;
}

.input-box label {
    align-self: center;
}

@media only screen and (max-width: 745px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }

    #loggedInDiv {
        transform: translateY(0);
    }
}

@media only screen and (max-width: 420px) {
    .input-box {
        display: flex;
        flex-direction: column;
    }

    .form {
        width: 85%;
        border-radius: 0;
    }

    .input-box {
        display: flex;
        flex-direction: row;
        column-gap: 1em;
    }
    
    .input-box input {
        margin-left: auto;
    }
    
    .input-box label {
        align-self: center;
    }
}

@media only screen and (max-width: 380px) {
    .input-box {
        flex-direction: column;
        column-gap: 1em;
        margin-bottom: 1em;
    }
    
    .input-box input {
        margin-left: 0;
    }

    .input-box label {
        align-self: flex-start;
    }
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #999;
    box-shadow: 0px 0px 40px 10px #00000050;
    color: #fff;
    text-align: center;
    font-size: 1em;
    line-height: 1em;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    transition-delay: 0.5s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #999 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}