/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

li {
    list-style: none;
}

/* Meyer reset above */

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

a:hover {
    text-decoration: underline;
    text-decoration-color: var(--flair-color);
    text-decoration-thickness: 3px;
}

:root {
    font-family: "Roboto", system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --padding: 1rem;
    --light-text: black;
    --grey-text: rgb(160, 160, 160);
    --dark-text: white;
    --back-color: #6B6E70;
    --header-color: black;
    --flair-color: #CF742F;
    --sidebar-color: black;
    --content-shadow-color: rgba(255, 255, 255, 0.4);
    --user-background: black;

    --search: url(./icons/search-white.svg);
    --notifications: url(./icons/notifications-white.svg);
    --fav: url(./icons/fav-white.svg);
    --watch: url(./icons/watch-white.svg);
    --share: url(./icons/share-white.svg);
    --toggle-theme: url(./icons/dark.svg);
    --paw-menu: url(./icons/paw-dark.svg);
    --paw-sidebar: url(./icons/paw-light.svg);
}

:root.light {
    --light-text: white;
    --grey-text: black;
    --dark-text: black;
    --back-color: #E2E8F0;
    --header-color: #d4915e;
    --flair-color: #813127;
    --sidebar-color: black;
    --content-shadow-color: rgba(0, 0, 0, 0.4);
    --user-background: white;

    --search: url(./icons/search.svg);
    --notifications: url(./icons/notifications.svg);
    --fav: url(./icons/fav.svg);
    --watch: url(./icons/watch.svg);
    --share: url(./icons/share.svg);
    --toggle-theme: url(./icons/light.svg);
    --paw-menu: url(./icons/paw-light.svg);
}

:root.dark {
    --light-text: black;
    --grey-text: rgb(160, 160, 160);
    --dark-text: white;
    --back-color: #6B6E70;
    --header-color: black;
    --flair-color: #CF742F;
    --sidebar-color: black;
    --content-shadow-color: rgba(255, 255, 255, 0.4);
    --user-background: black;

    --search: url(./icons/search-white.svg);
    --notifications: url(./icons/notifications-white.svg);
    --fav: url(./icons/fav-white.svg);
    --watch: url(./icons/watch-white.svg);
    --share: url(./icons/share-white.svg);
    --toggle-theme: url(./icons/dark.svg);
    --paw-menu: url(./icons/paw-dark.svg);
    --paw-sidebar: url(./icons/paw-light.svg);
}

#toggle-theme {
    background: var(--toggle-theme) no-repeat center;
    padding: 10px;
}

body {
    display: grid;
    grid: 1fr 5fr / minmax(200px, 17vw) 1fr;
    height: 100vh;
}

.bold-font {
    font-weight: 800;
    font-size: 1.3rem;
}

.header {
    color: var(--dark-text);
    padding: 1vw;
    padding-bottom: 4vh;
    grid-column: 2;
    background-color: var(--header-color);
    box-shadow: 4px 5px 5px var(--flair-color);
    z-index: 1;
}

.header-top {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-bottom: min(3vw, 1.5rem);
    gap: 1vw 2vw;
}

.search-container {
    display: flex;
    gap: 1vw 2vw;
}

#search {
    text-indent: 1ch;
    color: var(--dark-text);
}

.header-bottom {
    display: grid;
    grid: 1fr / minmax(4rem, 8vw) 1fr 25vw;
    align-items: center;
    gap: 1vw 2vw;

}

.greeting,
.username {
    font-size: calc(0.8rem + 0.6vw);
    grid-area: 2 / 2;
    justify-self: flex-end;
}

.greeting {
    font-style: italic;
}

.greeting-username {
    font-size: calc(1rem + 0.7vw);
    justify-self: center;
}

input {
    background-color: var(--back-color);
    border-radius: 20px;
    border: none;
    align-self: center;
    height: 1.5rem;
    padding-left: 0.4rem;
    width: 50vw;
}

.add-content {
    display: flex;
    gap: 5%;
    grid-row: span 2;
    justify-content: space-around;
}

/* .new,
.upload,
.share {
    color: white;
    padding: calc(0.4rem + 0.4vw);
    width: 6ch;
    background: linear-gradient(310deg, var(--sidebar-color) 65%, var(--flair-color));
    border-radius: 15rem;
    text-align: center;
    font-size: max(0.8rem, 0.8vw);
    border: 1px solid var(--grey-text);
}

.new {
    justify-self: right;
}

.upload {
    justify-self: center;
}

.share {
    justify-self: left;
} */

#sidebar,
.sidebar {
    padding: clamp(0.1rem, 1vw, 1rem);
    background: linear-gradient(285deg, var(--sidebar-color) 65%, var(--flair-color));
    color: white;
    grid-column: 1;
    grid-row: 1 / 3;

    display: grid;
    grid: 60px 50px repeat(2, minmax(15rem, 35vh)) / 50px 1fr;
}

.sidebar-top {
    display: grid;
    grid: repeat(6, 1fr) / 40px 1fr;
    grid-column: span 2;
    grid-area: 3 / 1 / 4 / 2;
}

.sidebar-bottom {
    display: grid;
    grid: repeat(3, 40px) / 40px 1fr;
    grid-column: span 2;
    align-self: start;
    gap: 0.5rem 0ch;
    grid-area: 4 / 1 / 5 / 2;
    align-self: center;
}

.container {
    color: var(--dark-text);
    padding: var(--padding);
    background-color: var(--back-color);

    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1vw 2vw;
}

.content {
    grid-area: 2 / 1 / 6 / 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
}

.recipe-content {
    grid-area: 2 / 1 / 6 / 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
}

#image-block {
    display: flex;
    justify-content: center;
}

.content-block,
.recipe-image,
.ingredients,
.steps {
    background-color: var(--header-color);
    color: var(--dark-text);
    border-radius: 10px;
    padding: var(--padding);
    line-height: 2.5ch;
    border-left: 1vw solid var(--flair-color);
}

.content-block {
    display: flex;
    flex-direction: column;
}

.bold-quantities {
    font-weight: bold;
    display: inline-block;
    padding-right: 0.5ch;
}

.ingredients li {
    padding-top: 1rem;
    display: flex;
}

.ingredients .ingredients {
    margin-bottom: auto;
    border: #7F2B0A;
    border-left: 0.25vw solid var(--flair-color);
    padding: 0.5rem;
}

.recipe-content #ingredients-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    font-weight: bold;
    font-size: 2rem;
    gap: 2rem;
}

.recipe-content #ingredients-block .ingredients {
    font-weight: normal;
    font-size: 1rem;
}

.steps {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 0.5vw;
    min-height: 4rem;
}


.method-header {
    font-size: 5rem;
    color: var(--flair-color);
    opacity: 0.8;
}

.method-step {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.method-step .tip {
    font-style: italic;
    color: var(--flair-color);
}

.content-block:hover {
    box-shadow: 2px 2px 2px var(--content-shadow-color), 5px 5px 5px var(--content-shadow-color);
}

.content-text {
    grid-column: span 4;
    overflow: hidden;
    color: var(--grey-text);
    font-size: calc(0.625rem + 0.4vw);
    padding-top: 1rem;
}

.card-image {
    max-width: 300px;
    max-height: 350px;
}

.recipe-card-image {
    max-width: 100%;
    max-height: 100%;
}

.card-image,
.recipe-card-image {
    border-radius: 10px;
    border: 3px solid var(--flair-color);
}

.content-header,
.projects-header,
.announcement-header,
.trending-header {
    align-self: center;
}

.content-header {
    padding-bottom: 1rem;
}

/* .project-icons {
    grid-column: 2 / 3;
    display: block;
}

.info {
    color: var(--dark-text);
    grid-area: 1 / 2 / 3 / 3 ;
    display: grid;
    grid-template-rows: 2rem min-content 2rem min-content;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.announcements-header {
    grid-area: 1 / 2;
}

.announcements {
    grid-area: 2 / 2;
    padding: var(--padding);
    line-height: 2.5ch;

    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 2vw;
}

.announcements,
.trending {
    background-color: var(--header-color);
    border-radius: 10px;
}


.announcement-1-content,
.announcement-2-content {
    padding-bottom: 3vw;
    border-bottom: 1px solid var(--flair-color);    
}

.announcement-1,
.announcement-2,
.announcement-3 {
    align-self: center;
}



.announcement-1-content,
.announcement-2-content,
.announcement-3-content {
    color: var(--grey-text);  
    font-size: calc(0.625rem + 0.4vw); 
}

.trending {
    display: grid;
    grid-area: 5 / 2;
    grid-template-columns: 50px 1fr;
    gap: 1.5rem 0rem;
    align-items: center;
    padding: var(--padding);
    line-height: 2.5ch;
}

.trending-header {
    grid-area: 4 / 2;
}

.at {
    display: inline-block;
}

.user-tag {
    color: var(--flair-color);
    font-style: italic;
    line-height: 3vh;
} */

/* icons */

.dashboard-icon {
    background: url(icons/dashboard.svg) no-repeat center;
}

.starters-icon,
.profile-icon,
.messages-icon,
.mains-icon,
.desserts-icon,
.snacks-icon,
.settings-icon,
.sweets-icon,
.vegan-icon {
    background: var(--paw-sidebar) no-repeat center;
}

.search-icon {
    background: var(--search) no-repeat right;
    width: 1rem;
    left: 52vw;
    position: relative;
    visibility: hidden;
}

/* .notifications-icon {
    background: var(--notifications) no-repeat right;
    padding: 10px;
}

.fav-icon {
    background: var(--fav) no-repeat right;
    grid-column: 2 / 3;
}

.watch-icon {
    background: var(--watch) no-repeat center;
    grid-column: 3 / 4;
}

.share-icon {
    background: var(--share) no-repeat left;
    grid-column: 4 / 5;
} */

.user {
    background: url(users/user.svg) no-repeat center var(--user-background);
    height: clamp(55px, 10vw, 65px);
    width: clamp(55px, 10vw, 65px);
    border: 2px solid var(--dark-text);
    border-radius: 100%;
    justify-self: right;
    grid-row: span 2;
}

/* .sml-user {
    background: url(users/sml-users/user.svg) no-repeat center;
    justify-self: center;
} */

/* .username {
    align-self: center;
}

.user-1 {
    background: url(users/sml-users/user-1.svg) no-repeat center var(--user-background);
    border: 2px solid black;
    border-radius: 100%;
}

.user-2 {
    background: url(users/sml-users/user-2.svg) no-repeat center var(--user-background);
    border: 2px solid var(--dark-text);
    border-radius: 100%;
}

.user-3 {
    background: url(users/sml-users/user-3.svg) no-repeat bottom var(--user-background);
    border: 2px solid var(--dark-text);
    border-radius: 100%;
}

.user-4 {
    background: url(users/sml-users/user-4.svg) no-repeat center var(--user-background);
    border: 2px solid var(--dark-text);
    border-radius: 100%;
}

.sml {
    height: clamp(30px, 5vw, 35px);
    width: clamp(30px, 5vw, 35px);
    border: 2px solid var(--dark-text);
    border-radius: 100%;
} */

/* sidebar */

.dashboard {
    align-self: center;
    font-size: 1.5rem;
}

.starters,
.mains,
.desserts,
.snacks,
.sweets,
.vegan,
.profile,
.support,
.settings {
    align-self: center;
}

.addUnderline {
    text-decoration: underline;
    text-decoration-color: var(--flair-color);
    text-decoration-thickness: 3px;
}


.addMovingBorder {
    border: solid 3px var(--flair-color);
    border-radius: 15px;
    animation: addBorders 0.3s linear;
}

@keyframes addBorders {
    0% {
        border: solid 3px rgba(255, 255, 255, 0);
        border-right: solid 3px var(--flair-color);
    }

    25% {
        border: solid 3px rgba(255, 255, 255, 0);
        border-right: solid 3px var(--flair-color);
    }

    25.02% {
        border: solid 3px rgba(255, 255, 255, 0);
        border-right: solid 3px var(--flair-color);
        border-bottom: solid 3px var(--flair-color);
    }

    50% {
        border: solid 3px rgba(255, 255, 255, 0);
        border-right: solid 3px var(--flair-color);
        border-bottom: solid 3px var(--flair-color);
    }

    50.02% {
        border: solid 3px rgba(255, 255, 255, 0);
        ;
        border-right: solid 3px var(--flair-color);
        border-bottom: solid 3px var(--flair-color);
        border-left: solid 3px var(--flair-color);
    }

    75% {
        border: solid 3px rgba(255, 255, 255, 0);
        ;
        border-right: solid 3px var(--flair-color);
        border-bottom: solid 3px var(--flair-color);
        border-left: solid 3px var(--flair-color);
    }

    75.02% {
        border: solid 3px var(--flair-color);
    }
}


.removeMovingBorder {
    border: solid 3px rgba(255, 255, 255, 0);
    border-radius: 15px;
    animation: removeBorders 0.3s linear;
}

@keyframes removeBorders {
    0% {
        border: solid 3px var(--flair-color);
        border-right: solid 0px rgba(255, 255, 255, 0);
    }

    25% {
        border: solid 3px var(--flair-color);
        border-right: solid 0px rgba(255, 255, 255, 0);
    }

    25.02% {
        border: solid 3px var(--flair-color);
        border-right: solid 0px rgba(255, 255, 255, 0);
        border-bottom: solid 3px rgba(255, 255, 255, 0);
    }

    50% {
        border: solid 3px var(--flair-color);
        border-right: solid 0px rgba(255, 255, 255, 0);
        border-bottom: solid 3px rgba(255, 255, 255, 0);
    }

    50.02% {
        border: solid 3px var(--flair-color);
        border-right: solid 0px rgba(255, 255, 255, 0);
        border-bottom: solid 3px rgba(255, 255, 255, 0);
        border-left: solid 3px rgba(255, 255, 255, 0);
    }

    75% {
        border: solid 3px var(--flair-color);
        border-right: solid 0px rgba(255, 255, 255, 0);
        border-bottom: solid 3px rgba(255, 255, 255, 0);
        border-left: solid 3px rgba(255, 255, 255, 0);
    }

    75.02% {
        border: solid 3px rgba(255, 255, 255, 0);
    }
}

#hamburger {
    display: none;
    margin-left: -2rem;
    background: var(--flair-color);
    border: none;
    border-radius: 15%;
    font-weight: bold;
    color: var(--light-text);
}

@media (max-width: 1080px) {

    .recipe-image,
    .recipe-content #ingredients-block {
        grid-column: span 2;
        height: auto;
    }
}

@media only screen and (max-width: 768px) {

    body {
        display: block;
    }

    #toggle-theme {
        margin-left: -3rem;
        padding: 1rem 0px;
    }

    #hamburger {
        display: block;
        position: fixed;
        right: 5vw;
        top: 0.5rem;
        z-index: 1;
        height: 1.5rem;
        width: 1.5rem;
        background-image: var(--paw-menu);
        background-repeat: no-repeat;
        background-position: center;
        border: 1px solid black;
    }

    .header {
        position: relative;
        box-shadow: 0px 5px 5px var(--flair-color);
    }

    .header-bottom {
        grid: 1fr / 18vw 1fr 9vw
    }

    .greeting {
        margin-right: 1ch;
    }

    #sidebar,
    .sidebar {
        font-size: 1rem;
        width: 23vw;
        display: none;
        position: fixed;
        top: 0;
        padding: 2rem 0.5rem;
        border-radius: 0px 0px 2rem 0px;
        opacity: 75%;
        z-index: 2;
        background: linear-gradient(285deg, var(--sidebar-color) 30%, var(--flair-color));
    }

    .sidebar-bottom,
    .sidebar-top {
        display: flex;
        gap: 1rem;
        flex-direction: column;
        opacity: 100%;
        justify-content: start;
    }

    .starters,
    .mains,
    .desserts,
    .snacks,
    .sweets,
    .vegan,
    .profile,
    .support,
    .settings {
        align-self: flex-start;
    }

    #dashboard {
        font-size: 1rem;
    }

    .dashboard-icon,
    .starters-icon,
    .profile-icon,
    .messages-icon,
    .mains-icon,
    .desserts-icon,
    .snacks-icon,
    .settings-icon,
    .sweets-icon,
    .vegan-icon {
        background: none;
    }

    .projects-header {
        margin-bottom: 1rem;
    }

    .container {
        display: block;
    }

    .steps {
        gap: 2vw;
    }

    .method-step {
        gap: 2vh;
    }

    .addMovingBorder {
        border: none;
        border-radius: none;
        animation: none;
    }


    .removeMovingBorder {
        border: none;
        border-radius: none;
        animation: none;
    }

}

.span-columns {
    grid-column: span 2;
}

/* hiding things */

.trending-header,
.trending,
.announcements-header,
.announcements {
    display: none;
}

.container {
    grid-template-columns: 1fr;
}

.profile-icon,
.profile,
.messages-icon,
.messages,
.settings-icon,
.settings,
.new,
.upload,
.share {
    display: none;
}

#search {
    font-weight: bold;
    visibility: hidden;
}

.method-step em {
    font-style: italic;
    color: var(--flair-color);
}