/*for main page*/

@font-face {
    font-family: 'Trip Sans';
    src: url('fonts/TripSans-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Trip Sans';
    src: url('fonts/TripSans-Regular.ttf') format('truetype');
    font-weight: regular;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: rgb(34, 34, 34);

}
header {
    width: 100%;
    padding: 2vh 2vw;
    background-color: rgb(42, 35, 55);
    box-sizing: border-box;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Trip Sans', sans-serif;
    color: white; /*H&S text color*/
}
header .logo-group {
    display: flex;
    align-items: flex-start; 
    gap: 1.2vh;
}
header .logo-group img { /*logo image size*/
    height: 4vh;
    width: auto;
}

header .logo-group span { /*logo text styling*/
    font-size: 3vh;
    margin-top: -1vh;
}

.logo-link {
    text-decoration: none;
    color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header .basket-button {
    margin-left: auto;
    right: 6vw;
    top: 2vh;
    background: transparent;
    padding: 0.4vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
header .basket-button img {  /*button size deppends on the image size.*/
    height: 4vh; 
    width: auto;

}
header .basket-button.pressed {
    transform: scale(0.85);
}

#header-placeholder {
    width: 100%;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1vw;
}

.item-group {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    padding: 1vh;
    box-sizing: border-box;
    width: 20vw;
    height: auto; /* it makes the height be controled by the content!*/
}

.item-group:hover {
    border: 0.2vh solid rgb(255, 251, 177);
}

.image-container {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;

}

.name-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.name-container {
    height: 5%;
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Trip Sans', sans-serif;
    font-size: 2vh;
    font-weight: regular;

}

.price-container {
    height: 5%;
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Trip Sans', sans-serif;
    font-size: 2vh;
    font-weight: regular;

}


.basket-panel {
    position: fixed;
    top: 0;
    right: -40vw;
    width: 40vw;
    height: 100vh;
    background-color: rgb(37, 37, 71);
    transition: right 0.3s ease;
    z-index: 100;
    padding: 2vh;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
}

.basket-panel.open {
    right: 0;
}

.close-button { 
    background: transparent;
    border: none;
    color: white;
    font-size: 2vh;
    cursor: pointer;
    
}

.view-cart-button {
    background: transparent;
    border: 0.2vh solid white;
    color: white;
    font-family: 'Trip Sans', sans-serif;
    font-size: 2vh;
    padding: 1.5vh;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
}

.panel-top { /*handles the close button position*/
    display: flex;
    justify-content: flex-start;
}

.basket-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.items-container { /*controls the layout of the items in main menu*/
    display: flex;
    flex-direction: row;
     flex-wrap: wrap;
    gap: 0.5vw;
    justify-content: center;

}
.item-group {
    width: calc(25% - 2vw);
}

.basket-item img {
    width: 10vw;
    height: 10vw;
    object-fit: contain;
}

.basket-item-content {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
    width: 100%;
}

.basket-item-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: white;
    font-family: 'Trip Sans', sans-serif;
    font-size: 2vh;
}
.basket-item {
    padding: 1vh 0;
}

.delete-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2vh;
    flex-shrink: 0;
}

.basket-total {
    font-size: 2.5vh;
    font-weight: bold;
    margin-top: 2vh;    
}

/* language selector styles */

.lang-dropdown {
    position: relative;
    cursor: pointer;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    color: white;
    font-family: 'Trip Sans', sans-serif;
    font-size: 2vh;
}

.lang-selected img {
    height: 2vh;
    width: auto;
}

.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(39, 39, 39);
    padding: 0.5vh;
    z-index: 200;
}

.lang-dropdown.open .lang-options {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    color: white;
    font-family: 'Trip Sans', sans-serif;
    font-size: 2vh;
    padding: 0.5vh;
    cursor: pointer;
}

.lang-option img {
    height: 2vh;
    width: auto;
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}