@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --brand-purple: #2d1e44;
    --brand-blue: #80ffff;
    --brand-orange: #fcbf95;
}

body {
    font-size: 16pt;
    margin: 0; padding: 0;
    font-family: "Hind", sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 145px auto 5vh; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
}

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

header {
 display: grid;
 grid-template-areas:
        "logo . . . ."
        "translation . . . . ";
 grid-template-columns: 1fr repeat(5, auto);
 grid-template-rows: 1fr 20px;
 column-gap: 3em;
 row-gap: 0;
 place-items: center;
 padding: 0 3em;
}
header > a:not(:first-child) {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 16pt;
    border-bottom: 3px solid transparent;
    line-height: 1;
}
header > a:first-child { display: inline-block; height: 100%; width: 100%; grid-area: logo;  }
header > a:hover {
    border-bottom-color: var(--brand-orange);
}
header > a.active { border-bottom-color: var(--brand-blue); }
header img:first-child {
    justify-self: baseline;
    max-height: 110px;
}
header > :not(:last-child) { grid-row: 1; }
header .translations { 
    grid-area: translation;
    display: flex; 
    /* grid-template-columns: auto auto 1fr;  */
    column-gap: 32px;
    /* width: 100%;  */
    font-size: 12pt; 
    color: var(--brand-purple); 
    justify-self: start;
}
header .translations a {
    text-decoration: none;
    color: var(--brand-purple);
    border-top: 2px solid white;
}
header .translations span { border-top: 2px solid var(--brand-orange); }

main {
    display:block;
}

main > *:not(.fullbleed) {
    margin: 16px;
}

.fullbleed { width: 100%; }
.fullpage { min-height: 65vh; }

.hero {
    display: grid;
    place-items: center;
    grid-template-rows: 16px repeat(2, auto) 16px;
}

.hero > * { grid-column: 1; grid-row: 1 / 5; }
.hero > svg { width: 515px; grid-row: 2; }
.hero > h2 { color: white; grid-row: 2; }
.hero > a { 
    color: var(--brand-purple); 
    background: var(--brand-orange);
    grid-row: 3;
    align-self:baseline;
    width: 12em;
    text-transform: uppercase;
    padding: 10px 0 5px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    line-height: 2;
    font-size: 16pt;
    border-radius: 15px;
}
.hero a:hover {
    background: var(--brand-blue);
}

section.wishlists {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

section.wishlists div.wishlist {
    display: grid;
    justify-items: center;
    font-size: 12pt;
    z-index: 1;
    text-align: center;
    align-items: start;
    grid-template-rows: auto 1fr;
    border: 2px solid var(--brand-orange);
    border-radius: 10pt;
}

section.wishlists div.wishlist h3 {
    font-size: 12pt;
}

section.wishlists div.wishlist > ul {
    padding: 0; 
    list-style: none;
    margin: 0;
}
.wishlist > ul > li {
    margin-bottom: 16px;
}
.wishlist a, .wishlist label {
    font-weight: bold;
    color: var(--brand-purple);
    text-decoration: none;
    background-color: var(--brand-orange);
    border: 1px solid var(--brand-orange);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
}

.wishlist a:hover, .wishlist label:hover {
    background-color: var(--brand-blue);
}

.wishlist-items {
    padding: 0 0 0 24px;
    height: 0;
    opacity: 0;
    transition: height 1s ease-in;
    text-align: left;
}

.wishlist input[type="checkbox"] {
    /* visibility: hidden; */
    display: none;
}

.wishlist input[type="checkbox"]:checked + .wishlist-items {
    margin: 16px 0;
    height: auto;
    height: calc-size(auto);
    opacity: 1;
    transition: height 1s ease-in,
                opacity 1s ease-in;
}

.wishlist-items li:not(:last-child)::after {
    content: ", ";
}
.wishlist-items { list-style: square; }
footer {
height: 40px;
}

@media (max-width: 1200px) {
    body {
        font-size: 14pt;
        
    }
    section.wishlists {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1000px) {
    body {
        font-size: 12pt;
    }
    section.wishlists {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 800px) {
    body {
        grid-template-rows: 110px 1fr auto;
    }

    header {
        grid-template-areas:
        "logo none none none translation"
        "logo . . . .";
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 32px 1fr;
        gap: 0;
        padding: 0; 
    }
    header a:first-child {
        
    }
    header a:not(:first-child) {
        grid-row: 2;
    }

    header .translations {
     justify-self: end;
     grid-column: 3 / end;
     padding-right: 16px;
    }

    .hero svg {
        width: 75%;
    }
    .hero h4, .hero a {
        line-height: 1;
        width: 10em;
    }

    section.wishlists {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    body {
        grid-template-rows: 135px 1fr auto;
    }
    header {
        grid-template-areas:
        "logo none none translation"
        ". . . .";
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto 1fr;
        padding: 0;  
    }

    header a:not(:first-child) {
        font-size: 12pt;
    }

    header .translations {
        
    }
    section.wishlists {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    header a:first-child {
        grid-column: 1 / span 2;
    }
    section.wishlists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 300px) {
    header .translations {
        flex-direction: column;
    }
}