
body {
    background-color: #FAFAFA;
}

h1 {
  font-family: "Commissioner", sans-serif;
  font-size: 24px;
  font-weight: Bold;
  text-align: center;
}

h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 20px;
  font-weight: Bold;
  text-align: start;
}

h3, h4, h5 {
    font-family: "Lexend Deca", sans-serif;
}

p {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 300;
}

label {
    font-weight: 700;
}

.versionSwitchBtn {
    position: absolute;
    top: 24px;
    right: 24px;
}

.backToHomeBtn{
    position: absolute;
    top: 24px;
    left: 24px;
}

.gradient {
    background: linear-gradient(#000000, #004566);
    background-attachment: fixed;
}

.home-title {
    font-size: 48px;
    color: #f2f2f2;
    font-weight: Bold;
    font-family: "Commissioner", sans-serif;
}

.home-page p {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 500;
  color: #f2f2f2;
}

.readProcessBtn {
    position: absolute;
    bottom: 24px;
    width: 100%;
    text-align: center;
}

.readProcessBtnText {
    color: white;
    text-align: center;
}

.chevronIcon {
    color: white;
    font-size: 48px;
}

.qrCodeContainer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.qrCode {
    width: 160px;
    height: 160px;
}

.menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 24px; /* Adjusted slightly to fit more links */
    width: 100%;
    padding: 32px 0;
    margin-bottom: 40px;
    background-color: #E5F7FF; /* Light background for the menu */
    border-bottom: 1px solid #e0e0e0;
}

.menuLink {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    color: black;
    padding: 8px 16px;
    border-radius: 24px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, color 0.1s ease-in-out;
}

.menuLink:hover {
    background-color: #0079B2;
    color: white;
}

.menuLinkActive {
    background-color: #0079B2;
    color: white;
}

.primary-btn {
  width: auto;
  padding: 1em 3em;
  background-color: #0079B2;
  color: white;
  border-radius: 16px;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  transition: padding 0.3s ease-in-out;
  border: none;
}

.secondary-btn {
    width: auto;
    padding: 1em 3em;
    background-color: #B2E6FF;
    color: #004566;
    border-radius: 16px;
    text-decoration: none;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    transition: padding 0.3s ease-in-out;
    border: none;
}

.primary-btn:hover, .secondary-btn:hover {
    padding: 1em 5em;
}

.non-expand:hover {
    padding: 1em 3em;
    opacity: 90%;
}

.main-container {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    margin-top: 64px;
}

.mainCompareContainer {
    width: 90%;
    display: flex;
    flex-direction: row;
    column-gap: 64px;
    justify-content: center;
    margin: 40px auto 80px auto;
}

.compareSection {
    background-color: white;
    border: 1px solid rgb(231, 231, 231);
    border-radius: 16px;
    padding: 2em;
    width: 40%;
}

.comparisonResults {
    position: sticky;
    top: 40px;
}

#bestMatchInfo {
    
}

.tableMeasurement {
    text-align: center;
}

.compared-item-name {
    color: blue;
}

.matchProcentage { /* This is the whole p element */
    text-align: center;
    font-weight: 500;
    margin-top: 24px;
}

#matchPercentage { /* This is only the percentage text not the title */
    color: green;
    font-weight: 700;
    font-size: 24px;
}

.bg-image {
    position: absolute;
    bottom: 0;
    left: 80px;
    width: 500px;
}

.name {
    font-size: 16px;
    position: absolute;
    bottom: 8px;
    right: 24px;
    color: white;
    font-family: "Lexend Deca", sans-serif;
}

#itemList {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 24px;
    column-gap: 24px;
    row-gap: 24px;
    margin: 0 auto;
}

.wardrobe-item {
    padding: 4em 1em 1em 1em;
    position: relative;
    background-color: white;
    height: auto; /* Let height be determined by content */
    width: 100%; /* Ensure it fills its grid cell */
    max-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid rgb(231, 231, 231);
}

.itemImg {
    max-width: 100%; /* Make it responsive within the grid cell */
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Example maximum height - adjust as needed */
    margin-bottom: 0.5em;
    object-fit: contain; /* Prevent cropping */
    margin: 0 auto;
}

.itemInfoContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.itemName {
    font-size: 16px;
    color: black;
    font-family: "Lexend Deca", sans-serif;
    width: auto;
}

.itemColor {
    width: 24px;
    height: 24px;
    border: 1px solid rgb(210, 210, 210);
}

/* DEMO-wardrobe */
#demo-itemList {
    display: grid;
    grid-template-columns: auto auto auto auto;
    column-gap: 24px;
    row-gap: 24px;
    margin: 0 auto;
}

.demo-wardrobe-item {
    height: 400px;
    width: 300px; /* Ensure it fills its grid cell */
    display: flex;
    flex-direction: column;
    position: relative;
}

.demo-itemImg {
    height: auto; /* Maintain aspect ratio */
    max-width: 100%;
    margin-bottom: 0.5em;
    object-fit: fill; /* Prevent cropping */
    margin: 0 auto;
    filter: brightness(0.75);
}

.demo-itemInfoContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 16px;
    width: auto;
    position: absolute;
    bottom: 16px;
    left: 16px;
}

.demo-itemName {
    font-size: 16px;
    color: white;
    font-family: "Lexend Deca", sans-serif;
    width: auto;
}

.demo-itemColor {
    width: 24px;
    height: 24px;
    border: 1px solid rgb(210, 210, 210);
}
/* END DEMO-wardrobe */

.editBtn {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #0079B2;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    border: none;
    transition: padding 0.3s ease-in-out;
}

.removeBtn {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: #b22c00;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    border: none;
    transition: padding 0.3s ease-in-out;
}

.editBtn:hover, .removeBtn:hover {
    padding: 8px 20px;
}



/* OVERLAY */
/* Overlay styles */
.overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top of other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.overlay-background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Make it clickable to close */
}

/* Edit form container styles */
.editForm {
    background-color: #fafafa;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #888;
    position: relative; /* For close button positioning if needed */
    z-index: 11; /* Sit above the background */
    overflow: auto;
    height: 80%;
}

/* OVERLAY END */


/* measurement-guide */

.addItemContainer {
    margin: 64px auto;
}

.addItemBtn {
    display: block;
    position: sticky;
    bottom: 40px;
    margin: 24px auto;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.2);
}

.itemInfoContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 24px;
    margin: 2em 0;
}

.measurementInputSection {
    background-color: white;
    padding: 2em;
    border-radius: 16px;
    border: 1px solid rgb(231, 231, 231);

}

.measurementGuideBtn {
    padding: 4px 8px;
    border-radius: 16px;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid black;
    color: black;
    cursor: pointer;
    transition: padding 0.3s ease-in-out;
}

.measurementGuideBtn:hover {
    padding: 4px 12px;
}

.measurementGuideOverlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place even if page scrolls */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent backdrop */
    z-index: 1050; /* Ensure it's on top of other content (Bootstrap modals are often around 1040-1050) */
    justify-content: center; /* Center the content box horizontally */
    align-items: center; /* Center the content box vertically */
    padding: 20px; /* Padding for smaller screens so content isn't against edges */
    box-sizing: border-box; /* Include padding in width/height calculation */
}

.measurementGuideContent {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 500px; /* Max width of the guide box */
    width: 50%; /* Responsive width */
    max-height: 85vh; /* Max height, relative to viewport height */
    overflow-y: auto; /* Add scroll if content is too tall */
    text-align: center; /* Center text and inline elements within the box */
    position: relative;
}

.measurementGuideImg {
    max-width: 75%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.measurementGuideTitle {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
}

.measurementGuideDescription {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
    text-align: left;
    padding: 0.5em 1em;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 16px;
}

.closeGuideBtn {
    background-color: #0079B2; /* Bootstrap primary blue */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out;
    position: absolute;
    top: 16px;
    right: 16px;
    transition: padding 0.3s ease-in-out;
}

.closeGuideBtn:hover {
    padding: 8px 20px;
}
/* measurement-guide END */

.importancePreferences {
    width: 30%;
}

.tolerancePreferences {
    width: 30%;
}

.importanceChecks {
    display: flex;
    align-items: center;
    column-gap: 16px;
    margin-bottom: 24px;
}

.importanceLabel {
    padding: 8px 16px;
    background-color: white;
    border-radius: 16px;
    border: 1px solid rgb(231, 231, 231);
    transition: padding 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.importanceLabel:hover {
    padding: 8px 20px;
    cursor: pointer;
    background-color: rgb(231, 231, 231);
}

.savePreferencesBtnContainer {
    position: sticky;
    bottom: 40px;
    text-align: center;
    margin: 0 auto;
}

.savePreferencesBtn {
    border: none;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.2);
}


/* Pop-up */
.info-popup-overlay {
    display: none; /* Dold som standard */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050; /* Högt z-index för att ligga överst */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.info-popup-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 90%;
    position: relative; /* För att positionera stängningsknappen */
    text-align: left;
}

.info-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #777;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.info-popup-close:hover {
    color: #333;
}

.info-popup-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.info-popup-content p, .info-popup-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
}
.info-popup-content ul {
    padding-left: 20px;
}

.show-info-again-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: #0079B2;
    color: white;
    border: none;
    border-radius: 50%;
    font-family: "Lato", sans-serif;
    font-size: 16px; /* Storlek på frågetecknet */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000; /* Se till att den är synlig */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
}
.show-info-again-btn:hover {
    width: 64px;
    height: 64px;
}
/* END Pop-up */


/* Demo store */
.narniya-item img.img-fluid { /* Applied to the specific images */
    max-height: 250px; /* Max height for Narniya item images */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%;
    object-fit: fill; /* Ensure whole image is visible, might add whitespace */
}

.img-container {

}

.demo-itemImg {
    height: auto; /* Maintain aspect ratio */
    height: 100%;
    max-width: 300px;
    margin-bottom: 0.5em;
    object-fit: fill; /* Prevent cropping */
    margin: 0 auto;
    filter: brightness(0.75);
}

.storeImg {
    height: 300px;
    width: 100%;
    object-fit: cover; /* Ensure whole image is visible, might add whitespace */
}

 .narniya-item .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compareStoreBtn {
    width: 100%;
}

.compareStoreBtn:hover {
    opacity: 90%;
}

.card-text {
    font-weight: 300;
}
/* END Demo store */