/* Browser Default CSS Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html, body {
  height: 100%;
}

body {
  line-height: 1.5;
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Tag Selectors */

:root {
    --background: #D49662;
    --foreground: #FCD8BD;
    --highlight: #FF8D02;
    --dark: #7A3857;
}

html, body {
    min-width: 320px;
}

body {
    background-color: var(--background);
    margin: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}

a {
    color: var(--dark);
    text-decoration: none;
}

a:hover {
    color: var(--highlight)
}

main {
    width: 100%;
    max-width: 700px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

button {
    border-radius: 5px;
    border: solid var(--dark) 1px;
    background-color: white;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
}

button:hover {
    background-color: var(--highlight);
}

input {
    border-radius: 5px;
    border: solid var(--dark) 1px;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-wrap: nowrap;
    background-color: var(--foreground);
    border: solid var(--dark);
    padding: 1.5rem;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
}

nav {
    display: flex;
    justify-content: space-between;
    border-bottom: solid black 1px;
}

/* Class Selectors */

.recipes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background-color: var(--foreground);
    border: solid var(--dark);
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
}

.cards-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pre-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: solid black 1px;
}

.profile-intro {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.follow-summary {
    color: var(--dark);
    margin: 0.5rem 0;
}

.follow-toggle.is-following {
    background-color: var(--highlight);
}

.follow-toggle {
    margin-bottom: 0.5rem;
}

/* ID Selectors */
#landing-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: solid black 1px;
}

#sign-in-main {
    display: flex;
    flex-direction: column;
    width: 50%;
    background-color: var(--foreground);
    margin-top: 2rem;
    border: solid var(--dark);
    border-radius: 10px;
    gap: 1rem;
    align-items: center;
}

#sign-in-main h1 {
    border-bottom: solid var(--dark) 1px;
}

#sign-in-main button {
    margin-top: 1rem;
}

#recipe-content {
    background-color: var(--foreground);
    border: solid var(--dark);
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 600px) {
    body {
        margin: 1rem;
    }

    main,
    header {
        padding: 1rem;
    }

    nav,
    .profile-intro {
        flex-direction: column;
        align-items: flex-start;
    }
}
