
/* Universal Styles */
html {
    font-size: 16px;
}

body {
    font-size: 100%;
    font-family: "Inter", sans-serif;
    background-color: #FAF9F6;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typographical Styles */

.italic {
    font-style: italic;
}

h1 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

h1, h2, h3 {
    font-family: "Limelight", sans-serif;
}

h5 {
    font-size: 1.2rem;
}

.catchphrase {
    font-size: 0.8rem;
    border: 1px solid #000;
    width: 50%;
    margin: auto;
}

.side-effects .quote {
    font-style: italic;
}


/* Utility Styles */

header {
    height: fit-content;
    padding-top: 1rem;
}

header h1 {
    padding-top: 0.5rem;
}

header, footer {
    background-color: pink;
    color: black;       
    text-align: center;
    line-height: 3rem;
}

header {
    line-height: 2.5rem;
}

main {
    min-height: calc(100vh - 10rem); 
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.flexed {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

main section {
    width: 80%;
    margin: 2rem auto;
}

main section p, main div p {
    max-width: 60ch;
    margin: 1rem auto;
}

.exception {
    margin: 1rem 0 0 0;
}

h3, h4 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.card {
    background-color: black;
    color: beige;
    border: 1px solid black;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.quick-card {
    background-color: green;
    color: beige;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.other-information section {
    background-color: palevioletred;
    padding: 1rem;
}

.other-information h3 {
     text-align: center;
}

.other-information ul {
    list-style-type: circle;
    padding-left: 1rem;
}

.types-pitaya, .fun-fact {
    max-width: fit-content;
}

.introduction a {
    display: inline-flex;
}

 .introduction .share {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid pink;
    width: 44vw;
    margin: 1rem auto;
   }

   .introduction .share a {
    margin: 0;
    padding: 0;
   }

   .share svg {
    margin-left: 0.2rem;
   }

.different {
    margin: 4rem 0;
}

.different h3  {
    text-align: center;
}

.side-effects .quick-card {
    background-color: #991b1b;
}

.recipes ul {
    background-color: #f9a8d4;
    padding: 2rem;
    width: fit-content;
    margin: 0 auto;
    list-style-type: circle;
}

.recipes ul li {
    padding-top: 1rem;
}

/* Navigation */

nav {
    padding: 0.5rem 1rem;
    position: relative;
}

.toggle-btn {
    background-color: unset; /* removes background-color */
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.toggle-btn svg {
    width: 2rem;
    display: block;
}

.menu {
    position: absolute;
    top: 9rem;
    left: 50%; 
    transform: translate(-50%, 0);
    z-index: 100;
    background-color: pink;
    width: 100%; 
    padding-bottom: 1rem; 
} 

.collapsed {
    max-height: 0;
    opacity: 0; 
    visibility: hidden;
    transition: all 0.3s; 
}

.expanded {
    max-height: unset; 
    opacity: 1; 
    visibility: visible;
}

a:not(.site-id a, .referral a, .socials a, .recipes a) {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
}

.detail a, .recipes a {
    color: #fff;
    background-color: black;
    padding: 0.5rem;
    border-radius: 10px;
}

.detail a:hover, .detail a:focus, .recipes a:hover, .recipes a:focus {
    color: black;
    background-color: plum;
    text-decoration: none;
}

a:link:not(.detail a, .referral a, .recipes a),  a:visited:not(.detail a, .referral a, .recipes a) {
    color: black;
}

a:focus, a:hover, a:active {
    color: darkorchid;
}

.socials {
    display: inline-flex;
    align-items: center;
}

.socials img {
    width: 1.5rem;
}

.socials a {
    padding: 0.2rem;
}


/* Media Queries */
@media screen and (min-width: 583px) {

    .menu {
        top: 6.5rem;
    }
}


@media screen and (min-width: 1024px) {

header h1 {
    padding-top: 0;
}
   
   .hamburger {
        display: none; 
   }

   .collapsed, .expanded {
        max-height: unset;
        opacity: 1;
        visibility: visible;
   }

   .menu {
        position: static; /* bringing it back to default  */
        width: unset;
        margin-top: 0;
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        transform: none;
   }

   a:focus, a:hover, a:active {
    text-decoration: underline;
   }

   .introduction .share {
    max-width: 20vw;
   }

   main {
    width: 90%;
   }

   main section {
    padding-left: 4rem;
   }

   .total-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1rem 3rem;
}

.total-cards .card {
    width: 40%;
}

.other-information {
    display: flex;
    gap: 2rem;
}

.detail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.detail a {
    margin-left: 1rem;
}

.detail p {
    max-width: 55ch;
    margin-left: 1rem;
}

.fun-fact img {
    width: fit-content;
}


.all-quick-cards {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    justify-content: center;
}

.quick-card {
    width: 20%;
}

.recipes a {
    margin-left: 8vw;
}

.general .quick-card {
    width: 30%;
}

.side-effects .quick-card {
    width: 40%;
}
}

