html {
    font-family: 'Lora', sans-serif;
}

@keyframes fade_in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fade_up {
    0% { opacity: 0; transform: translateY(15%); }
    100% { opacity: 1; transform: translateY(0%); }
}

body {
    margin: 0;
    background-image: url("assets/Contour\ Line.svg");
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: black;
}

.tromsoa {
    height: 100%;
}

.top {
    position: sticky;
    z-index: 99;
    top: 0;
    display: flex;
    height: 12%;
    width: 100%;
    margin: auto;
    
    background-color:white;
    border-bottom: 1px solid lightgray;
}

.nav {
    width: 70%;
    padding-right: 30rem;
}

.toplogo {
    margin-left: 32rem;
    margin-bottom: 0.5rem;
}

.tromsologo {
  margin-top: 1rem;
}

.navbuttons {
    display: flex;
    margin: 0;
    height: 100%;

    list-style-type: none;
    text-align: center;
    font-size: 50px;
    justify-content: space-evenly;    
    align-items: center;
    flex: 1;
}

.navbuttons li {
    padding: 1rem;
    color: gray;
}

.navbuttons li:hover {
    color: black;
    transition-duration: 0.5s;
    transition-timing-function: ease;
}

.index {
    background-image: url("assets/backgroundhome.png");
    background-size: cover;
     
    height: 75%;

    text-align: center;
}

.bot {
    width: 70%;
    height: 10%;
    margin: auto;
    padding: 2rem;

    text-align: center;

    background-image: none !important;
}

.prod {
    border: 1px solid #E1E1E1;
    margin-top: 2rem;
    height: 50%;

    background-color: #f3f3f39a;
}

.bot p {
    font-weight: 400;
    font-size: 120px;
    margin: 0;
    color: white;
}

.bot h2 {
    padding: 2rem;
}


.products {
    display: flex;
    width: 90%;
    margin: auto;
}

.productimg {
    border-radius: 50%;
    width: 80%;;
}

.about {
    display: flex;
    margin: 2rem auto auto auto;
    width: 70%;

    text-align: center;
}

.story {
    width: 50%;
    margin-top: 5rem;
}

.story p {
    width: 80%;
    margin: auto;
}

.section {
    width: 70%;
    margin: auto;

    text-align: center;
    animation: fade_in 2s;
}

.section > p {
    padding-inline: 20rem;
    padding-bottom: 2rem;
}

.fp-product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 80%;
    gap: 1rem;

    text-align: center;

    margin-bottom: 5rem;
}

button {
    border: none;
    padding: 1rem;
    background-color: rgb(50, 54, 54);
    color: aliceblue;
}

h2 {
    margin: 0;
}

h3 {
    font-weight: 400;
}

h4 {
    font-size: 50px;
    margin-block: 1.5rem;

    margin-bottom: 2rem; 
    font-family: 'Amatic SC', sans-serif; 
    font-size: 90px; 
    font-weight: 400;
}

h5 {
    font-size: 20px;
    margin-block: 0.5rem;
}

.product-desc {
    width: 100%;
    transition-duration: 0.5s;

    margin-bottom: 2rem;
}

.product-desc img {
    width: 350px;
}

.image-container {
    overflow: hidden;
}

.image-container > img {
    width: 320px;
    transition-duration: 0.5s;
}

.product-desc:hover {
    transform: translateY(-2%);
    cursor: pointer;
}

.product-desc:hover .hobo {
    text-decoration: underline;
}

.product-desc:hover .image-container > img {
    transform: scale(1.1);
}

.handcraft {
    width: 70%;
    margin: auto;
    padding-top: 6rem;
}

.boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    height: 20%;
}

.box {
    background-color: rgb(241, 241, 241);
    height: 95%;

    border-bottom: 1px solid rgb(110, 38, 38);
}

.box-info {
    padding: 1.5rem;
}

.box-info p {
    font-size: 18px;
}

.latest {
    margin-top: 8rem;
}

.latest p {
    font-size: 20px;
    margin-bottom: 1.5rem;
}

.delivery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.info-container img {
    width: 100px;
    height: 100px;
    margin: 4rem;
}

.info-container p {
    padding-inline: 4rem;
}

.info-container h5 {
    color: #313131;
}

.socials {
    padding: 2rem;
    background-color: rgba(87, 35, 13, 0.808);
    text-align: center;
}

.socials p {
    font-weight: 600;
}

.socials h5 {
    font-size: 30px;
    color: #1f1f1f;
    text-decoration: underline;
    width: 15%;
    margin: auto;
}

.socials h5:hover {
    color: rgb(29, 29, 29);
    cursor: pointer;
}


@media only screen and (max-width: 1550px) {
    .toplogo {
        margin-left: 3rem;
    }
    .toplogo img {
        height: 70px;
    }
    .nav {
        padding-right: 1rem;
    }
    .navbuttons {
        font-size: 30px;
    }
    .index {
        height: 45%;
        background-position: center;
    }
    .bot p {
        font-size: 75px;
    }
    h4 {
        font-size: 75px;
    }
    .info-boxes h5 {
        font-size: 35px;
    }
    .boxes {
        display: block;
        height: auto;
    }
    .box {
        height: auto;
        margin-bottom: 1rem;
    }
    .latest {
        margin-top: 1rem;
    }
    .latest h4 {
        margin-top: 0 !important;
    }
    .delivery {
        display: block;
    }
    .socials h5 {
        width: auto;
    }
    .products {
        display: block;
        height: auto;
    }
    .prod {
        height: auto;
    }
    .bot {
        height: auto;
    }
    .story {
        width: auto;
    }
    .about {
        display: block;
    }
    .about img {
        width: 75%;
        margin-top: 3rem;
    }
    .section > p {
        padding: 0;
        margin-bottom: 3rem;
    }
    .section {
        margin-bottom: 3rem;
    }
    .fp-product-container {
        display: block;
        width: auto;
    }
}

@media only screen and (max-width: 500px) {
    .toplogo {
        margin-left: 1rem;
    }
    .navbuttons {
        padding: 0;
        font-size: 25px;
    }
    .bot p {
        font-size: 55px;
    }
    h2 {
        font-size: 60px !important;
    }

    h4 {
        font-size: 45px;
    }
    .bot h2 {
        padding: 0;
    }
    .story {
        margin-top: 0;
    }
    
}