html,body{
    height: 100%;
    margin: 0;
    padding: 0;
}
body{
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    font-family: 'Lato', sans-serif;
    width:100vw;
    background-color: #f5f5f5;

}
.actual-link{
    color:rgb(2, 2, 145);
}
h1{
    font-size: 25px;
}
nav{
    display: flex;
    background-color: rgb(243, 243, 243);
    text-align: center;
    width: 100%;
    height:auto;
    position: fixed;
    top:0;
    border-bottom: 1px black solid;
    z-index: 1000;
    align-items: center;
}
#logo{
    width:100px;
    margin-left:30px;
    margin-right:-30px;
}
ul{
    list-style-type: none;
}
a{
    display: inline-block;
    color: black;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    font-size: 16px;
}
nav a:hover{
    color:rgb(2, 2, 145);
    transform: scale(1.2);
}
ol li:hover{
    transform: scale(1.2);
}
#nav {
    display: flex;
    justify-content: center; 
    list-style-type: none;
    width: 100vw;
    padding: 0;
    margin: 0;
}

#nav li {
    margin: 0 15px; 
}

#nav a {
    padding: 0;
    margin: 0;
    text-decoration: none;
}
section{
    background-size:cover;
    background-position: center; 
    background-repeat: no-repeat;
    min-height: 100vh; 
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative; 
    z-index: 1;
}
footer{
    position: relative;
}
.mobilewrapper {
    display: none; 
    position: fixed;
    top: 20px;
    right: 10px; 
    z-index: 1001; 
}
.content2{
    margin-top:30px;
}
.mobile-nav {
    display: none;
    background-color: rgb(243, 243, 243);
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    border-right: 1px black solid;
    flex-direction: column;
    align-items: center;
    transition: left 0.3s ease-in-out;
    z-index: 2000;
}
.mobile-nav.open {
    left: 0;
}
.mobile-nav a {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 80%;
    text-align: center;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1500; 
    display: none; 
}

.mobile-nav.open + #overlay {
    display: block; 
}

.copy p{
    margin:0;
    position:absolute;
    bottom:5px;
    left:5px;
}
.logo:hover{
    transform: scale(1);

}
#cart-icon{
    margin-right: 30px;
    margin-left:-30px;
}


h1{
    margin-top:100px;
}

section{
    background-image: url(backgrounds/Shoponline2.jpg);
    height:auto;
}
.products {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    margin: 30px;
    justify-content: center;
    align-items: center;
}
#cart-icon{
    margin-right: 30px;
    margin-left:-30px;
}
.product {
    border-radius:20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    padding: 20px;
    width: 250px;
    height: 250px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center; 
    background-color: rgba(249,249,249,0.7);
}
.product h2 {
    min-height: 0;
    color:black;
}
.product img {
    border-radius:20px;
    max-width: 100%;
    max-height: 120px; 
    object-fit: contain; 
}

.product .details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.product h2 {
    margin: 10px 0;
    font-size: 18px;
    text-align: center;
}

.product p {
    font-size: 16px;
    margin-top: 10px;
}
.tube-select, .size-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom:10px;
    transition: border-color 0.3s ease;
}

.tube-select:hover, .size-select:hover {
    border-color: #aaa;
}
.add-to-cart {
    margin-top: auto;
    border-radius: 5px;
    border: black solid 1px;
    padding: 10px 20px;
    background-color: white;
    color: black;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-to-cart:hover {
    transform: scale(1.05);
}

@media only screen and (max-width: 897px) {
    #cart-icon{
        position: absolute;
        right:60px;
    }
}
@media only screen and (max-width: 1203px) {
    #nav li {
        margin: 0 7px; 
    }
    #nav li a{
        
        font-size: 14px;
    }
}
@media only screen and (max-width: 948px) {
    #nav{
        display: none;
    }

    .mobilewrapper{
      display: block;
    }
    .mobile-nav {
        overflow: auto;
        display: flex;
    }
    #cart-icon{
        position: absolute;
        top:23px;
        right:60px;
    }
}