body {
  font-family: Verdana, sans-serif;
  font-size: 14px;
  color: #292929;
  background-color: #ffffff;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

#Copyright {
  margin-top: auto;
  padding-bottom: 20px;
  font-size: 12px;
  color: #cccccc;
  font-family: sans-serif;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


html {
  scroll-behavior: smooth; 
}

#Container {
  width: 1000px;
  height: 550px;
  /*background-image: url('../kuvat/rightbackground.jpg');*/
  background-size: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000063;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Top bar */
#Top {
  width: 1000px;
  height: 100px;
  background-color: #000063;
  box-sizing: border-box;
  background-image: url('../kuvat/pohjolastatop.jpg');
}

/* Left panel */
#Left {
  width: 500px;
  height: 450px;
  box-sizing: border-box;
  position: absolute;
  top: 0px;
  left: 0px;
  overflow-y: auto;
  padding: 5px;
  scrollbar-color: #000063 transparent;
  scroll-behavior: smooth;
  padding-left: 15px; 
  overflow: hidden;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

#LeftHide {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 100%;
  background-color: #000063;
  z-index: 11;
  pointer-events: auto;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
   font-family: Verdana, sans-serif;
  font-size: 14px;
  color: #000063;
  cursor: pointer;
  background-image: url('../kuvat/leftbackground.jpg');

}

/* Right panel */
#Right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  width: 480px;
  height: 450px;
  top: 100px;
  left: 500px;
  overflow: hidden;
  background-repeat: no-repeat;
}

#RightHide {
  position: absolute;
  width: 480px;
  height: 400px;
  top: 0;
  left: 0;
  /*background-image: url('../kuvat/rightbackground.jpg');*/
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 0;
  cursor: pointer;
}

#RightHide.fade-out {
  opacity: 0;
}

#RightHide.visible {
  opacity: 1;
}

#showFlipbook {
  top: 511px;
  margin-left: 195px;
  height: 30px;
  width: 150px;
  background-color: #000063;
  color: #ffffff;
  position: fixed;
    border: none;
  outline: none;
}
#showFlipbook:hover {
  background-color: #000063; 
  color: #ffaa00; 
}

#flipbook {
  width: 480px;
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
#page1, #page2, #page3, #page4, #page5, #page6, #page7, #page8, #page9 {
  width: 480px;
  background-color: #ffffff;
  vertical-align: top;
  background-image: url('../kuvat/pagebgr.jpg');
}
#content1, #content2, #content3, #content4, #content5, #content6, #content7, #content8, #content9 {
  width: 440px; 
  margin-left: 20px;
}

/* Top section (page 1) */
#Right .right-top {
  height: 400px;
  background-color: #ffffff;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition: transform 0.6s ease;
}

/* Bottom section (page trigger or footer) */
#Right .right-bottom {
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  z-index: 11;
  color: #ffffff;
  background-color: #000063;
  justify-content: center;  
  align-items: center;      
  font-weight: bold;
}

.right-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 480px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  z-index: 1;
  color: #ffffff;
  background-color: #000063;
}

.right-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px; 
  width: 480px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1;
  display: none;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  line-height: 2divbackgrounds.0px;
  font-weight: normal; 
}

/* Product card layout */
.product-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  margin-top: 5px;
  margin-bottom: 20px;
  height: 225px;
}

/* Info beside image — updated */
.product-info-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes cart row to bottom */
  height: 200px;
  flex-grow: 1;
  overflow: hidden;
}

/* Description text */
.product-description {
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Cart row */
.product-cart {
  display: flex;
  justify-content: space-between; /* splits left/right */
  align-items: center;
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  background-color: #ffffff;
}

.cart-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-price {
  font-weight: bold;
  font-size: 16px;
  color: #990000;
}

.cart-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #990000;
  cursor: pointer;
}

/* Cart summary */
#CartSummary {
  margin-top: 30px;
  margin-bottom: 40px;
}

#CartSummary h3 {
  margin-bottom: 10px;
  color: #990000;
}

#CartItems {
  list-style: none;
  padding-left: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
}

.cart-label {
  flex-grow: 1;
}

.cart-price {
  font-size: 1rem;
  font-weight: normal;
  text-align: right;
  display: inline-block;
  width: 100px;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  color: #292929;
}

#CartTotal {
  display: block;               
  text-align: right;            
  font-family: Verdana, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #292929;
  margin-top: 0.5rem;
}

.cart-total-label,
.cart-total-price {
  font-weight: normal;
}

.cart-total-row {
  display: flex;
  justify-content: flex-end;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  margin-top: 0rem;
  height: 450px;
}

.grid-box {
  padding: 1rem;
  height: 180px;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  color: #292929;
}
#CartItems {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

#CartItems li {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.cart-label {
  flex-grow: 1;
  font-weight: 500;
  padding-right: 12px;
}

.cart-price {
  font-size: 14px;
  font-weight: normal;
  text-align: right;
  display: inline-block;
  width: 100px;
  font-family: Verdana, sans-serif;
  color: #292929;
  white-space: nowrap;
}

#Instruction {
  margin-top: -20px;  
}
#ContactInfo {
  font-family: Verdana, sans-serif;
  font-size: 14px;
  color: #292929;
  margin-bottom: 50px;
}

#TransmissionTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#TransmissionTable td {
  vertical-align: top;
}

#TransmissionTable textarea {
  width: 100%;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
  margin-top: 0; 
  margin-bottom: 12px; 
}

#inStruct {
 margin-top: 50px; 
}
#TransmissionTable label {
  font-weight: normal;
  display: block;
  margin-bottom: -10px;
  margin-top: 5px;
}

#TransmissionTable input {
  font-family: Verdana, sans-serif;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
  margin-top: -40px;
}

#CartSummary h3 {
  color: #292929;
}

#SendButton {
  color: #FFFFFF;            /* white text */
  font-family: Verdana, sans-serif;
  font-size: 14px;
  height: 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 195px;
  background-color: #ff6600;
  transition: background-color 0.3s ease;
}

#SendButton:hover {
  background-color: #ffaa00; /* darker blue on hover */
}

#CartDataField {
  display: none;
}

#SubmitArea {
  display: block;
  max-width: 200px;
  height: 60px;
  margin-top: 15px;
  padding: 0px 0px;
}
#otsikko {
  font-family: Verdana, sans-serif;
  color: #000063;
  font-size: 16px;
  line-height: 16px;
  font-weight: bold; 
  height: 20px;
  margin-top: 20px;
}

#leipa {
  font-family: Verdana, sans-serif;
  color: #292929;
  font-size: 14px;
  line-height: 20px;
  font-weight: normal; 
}

#textArea {
  width: 420px;
  height: 140px;
  resize: none;
  border-radius: 12px;
  padding: 10px;
  font-family: sans-serif;
  border: 1px solid #ccc;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  margin-top: 14px;
}

#SendViestiButton {
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #ff6600;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: sans-serif;
  transition: background-color 0.3s ease;
  text-align: right;
}

#SendViestiButton:hover {
  background-color: #ffaa00;
}

#buttonwrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

#Confirm {
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  height: 100px;
  background-color: #000063;
  z-index: 10;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  color: #292929;
  margin-top: 100px;
}
#Confirm p {
  color: #ffffff;
}
.product-image {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  /*box-shadow: 0 4px 8px 8px rgba(0, 0, 0, 0.2);*/
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-radius: 8px; 
  display: block;
}

.product-visual {
  position: relative;
}

.product-delete-button {
  opacity: 1;
  position: absolute;
  bottom: 12px;
  right: 25px;
  padding: 6px 12px;
  background-color: #c00;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 14px;
}
.product-delete-button:hover {
  background-color: #ffaa00; 
}

.product-visual:hover .product-delete-button {
  opacity: 1;
}

.logged-in .product-delete-button {
  opacity: 1 !important;
}

.product-image:hover {
  box-shadow: none;
  transform: scale(0.97);
}

.custom-html-block {
  text-align: center;
  margin-top: 20px;
}

.custom-html-block img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.custom-html-block p {
  margin-top: 12px;
  font-size: 1rem;
  color: #333;
}

#HideIfNotChecked {
  display: none; 
}

.price-input {
  width: 80px;
  padding: 4px;
  font-size: 14px;
  margin-right: 8px;
}

.price-update-button {
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
  background-color: #c00;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  height: 30px;
}
.price-update-button:hover {
  background-color: #ffaa00; 
}

.right-bottom {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.right-bottom button {
  height: 30px;
  margin-top:10px;
  padding: 0 30px;
  font-size: 14px;
  color: #ffffff;
  background-color: #000063; 
  border: none;
  border-radius: 15px; 
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.right-bottom button:hover {
  background-color: #000063; 
  color: #ffaa00; 
}
#viewPort {
  opacity: 0;
  transition: opacity 0.8s ease;
  display: none; /* Start hidden */
}

#viewPort.visible {
  display: block;
  opacity: 1;
}


