@font-face {
    font-family: 'Blonde';
    src: url('fonts/Blonde_Font.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans serif;
}

body {
    background-color: #ece6df;
}

@keyframes fadeup {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

nav {
    animation: fadeup 0.6s ease backwards;
}

.picture-left {
    animation: fadein 0.8s ease 0.2s backwards;
}

.picture-right {
    animation: fadein 0.8s ease 0.4s backwards;
}

/* opacity-only: fadeup's transform would break the centering translate */
.shopnow {
    animation: fadein 0.6s ease 0.7s backwards;
}

.collections-title {
    animation: fadeup 0.6s ease 0.5s backwards;
}

.collection:nth-child(1) {
    animation: fadeup 0.6s ease 0.6s backwards;
}

.collection:nth-child(2) {
    animation: fadeup 0.6s ease 0.75s backwards;
}

.collection:nth-child(3) {
    animation: fadeup 0.6s ease 0.9s backwards;
}

.collection:nth-child(4) {
    animation: fadeup 0.6s ease 1.05s backwards;
}

html {
    scroll-behavior: smooth;
}

.header {
    /* nav + hero + bottom gap fill the viewport exactly, so collections start below the fold */
    height: 100vh;
    box-sizing: border-box;
    padding-bottom: 8vh;
    display: flex;
    flex-direction: column;
}

.picture {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    position: relative;
}

.collections {
    padding: 0 3% 3rem;
}

.collections-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.collections-row {
    display: flex;
    gap: 1rem;
}

.collection {
    flex: 1;
    text-decoration: none;
    color: #000000;
    overflow: hidden;
}

.collection img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.collection:hover img {
    transform: scale(1.04);
}

.collection p {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    font-weight: bold;
}

.picture-left,
.picture-right {
    flex: 1;
    background-position: center;
    background-size: cover;
}

.picture-left {
    background-image: url(images/hero-left.png);
}

.picture-right {
    background-image: url(images/hero-right.png);
}

.shopnow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 1px;
    background-color: #55443a;
    color: #ece6df;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.5s;
}

.shopnow:hover {
    background-color: #ece6df;
    color: #55443a;
    transform: translate(-50%, -50%) scale(1.05);
}

.cart2 {
    display: none;
}

nav {
    display: flex;
    padding: 2.5rem 6%;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid black;
    z-index: 1;

}

nav img {
    margin-left: -2.5rem;
    width: 10.938rem;
}

.nav-links {
    flex: 0 0 auto;
    text-align: center;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    position: relative;

}

.nav-links ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 1px;
    background: #000000;
    display: block;
    margin: 1px auto 0;
    transition: 0.5s;
}

.nav-links ul li:hover::after,
.nav-links ul li.current::after {
    width: 100%
}

.logo {
    flex: 1;
    display: flex;
    color: #4a3b32;
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    font-family: 'Blonde', 'Libre Baskerville', serif;
    font-size: 1.6rem;
    font-weight: normal;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.logo-i {
    height: 1.07em;
    width: auto;
    margin: 0 0.08em;
    transform: rotate(9.5deg);
    transform-origin: center;
    transition: transform 0.6s ease;
    animation: boardflip 0.8s ease 0.5s backwards;
}

/* starts one full turn back (visually identical), so the board rolls once and lands on its tilt */
@keyframes boardflip {
    from {
        transform: rotate(-350.5deg);
    }

    to {
        transform: rotate(9.5deg);
    }
}

.logo:hover .logo-i {
    transform: rotate(369.5deg);
}

.logo-sub {
    font-size: 0.71rem;
    font-weight: bold;
    letter-spacing: 0.6em;
    margin-right: -0.6em;
    margin-top: 0.2rem;
}

.nav-icons {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
}

.lang {
    position: relative;
    display: flex;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lang-current {
    display: flex;
}

.flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: block;
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: #ece6df;
    border: 0.5px solid black;
    z-index: 10;
}

/* keeps the -50% centering while fading/sliding in */
@keyframes menudrop {
    from {
        opacity: 0;
        transform: translate(-50%, 8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* invisible bridge so the menu stays open while crossing the gap */
.lang-menu::before {
    content: "";
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
}

.lang:hover .lang-menu {
    display: block;
    animation: menudrop 0.3s ease;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.lang-option:hover {
    background: #ddd4c9;
}

.nav-icons a {
    color: #000000;
    display: flex;
    transition: 0.3s;
}

.nav-icons a:hover {
    transform: translateY(-2px);
}

.cart {
    width: 1.875rem !important;
    height: 1.875rem !important;
    margin-left: 1.25rem;
    cursor: pointer;
}

.hamburger {
    width: 1.875rem !important;
    height: 1.875rem !important;
    margin-left: 1.25rem;
    cursor: pointer;
    display: none;
}

.tees {
    width: 100%;
    margin: auto;
    text-align: center;
    padding-top: 2.5rem;
}

.col,
.col4 {
    padding-top: 2.5rem;
    flex-basis: auto;
    margin-bottom: 1.875rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;

}

.col img,
.col4 img {
    width: 90%;
}

.row {
    display: flex;
    justify-content: space-between;
}

.layer {
    opacity: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.45s;
    padding-top: 2.5rem;
}

.layer:hover {
    opacity: 1;
}

.layer:hover.col {
    opacity: 0;
}

.header1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.shopmore {
    padding: 0.625rem;
    border-radius: 1px;
    border: solid black 1px;
    background-color: #ece6df;
    cursor: pointer;
    font-size: 1rem;
    width: 7rem;
    transition: 0.5s;
    font-weight: bold;
}

.shopmore:hover {
    background-color: #000000;
    color: #ece6df;
}

.middlepic {
    margin-top: 3.125rem;
    min-height: 78vh;
    width: 100%;
    background-image: url(file:///Users/dylannyberg/Downloads/picture2.png);
    background-position: center;
    background-size: cover;
    position: relative;
}

.col2 {
    padding-top: 2.5rem;
    margin-bottom: 3.125rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;

}

.col2 img {
    width: 87.5%;
}

.row2 {
    display: flex;
    justify-content: space-between;
}

.teetext {
    margin-top: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: auto;
}

.layer2 {
    background: transparent;
    height: 100%;
    width: 87.5%;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 2.5rem;
    margin-left: 1.375rem;
    transition: 0.5s
}

.container {
    max-width: auto;
    margin: auto;
    padding-left: 1.563rem;
    padding-right: 1.563rem;
}

.newrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer {
    border-top: 0.5px solid black;
    padding: 2rem 6%;
    text-align: center;
    color: #000;
    background: transparent;
}

.footer p {
    font-size: 0.7rem;
    color: #000;
}

.footer h3 {
    color: #ece6df;
    margin-bottom: 0.625rem;
    font-weight: bold;
}

.footer-col-1,
.footer-col-2 {
    min-width: 15.625rem;
    margin-bottom: 1.25rem;
}



.footer-col-2 {
    margin-right: 12.5rem;
}

.footer-col-1 img {
    width: 17.188rem;
    margin-left: 12.5rem;
    margin-right: -6.25rem;
    cursor: pointer;
}

i {
    font-size: 2.5rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: 0.45s;
}

i:hover {
    transform: translateY(-3px);
}

.shopsale {
    text-align: center;
    padding: 0.625rem;
    border-radius: 1px;
    border: solid black 1px;
    background-color: #ece6df;
    cursor: pointer;
    font-size: 0.938rem;
    width: 6.25rem;
    transition: 0.5s;
    font-weight: bold;
}

.shopsale:hover {
    background-color: #000000;
    color: #ece6df;
}

.buttoncontainer {
    margin-top: 1rem;
    text-align: center;
}

.mobilenav,
.topnav {
    display: none;
}

nav .fa {
    display: none;
}

@media (max-width: 900px) {
    nav {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: none;
    }

    .logo-mark {
        margin-top: 0.35rem;
    }

    .logo-main {
        font-size: 1.3rem;
    }

    .logo-sub {
        font-size: 0.6rem;
    }

    .picture-left {
        display: none;
    }

    .collections-row {
        flex-wrap: wrap;
    }

    .collection {
        flex: 1 1 45%;
    }

    .collection img {
        height: 32vh;
    }
}
