@charset "utf-8";

/* Body and overall layout ***********************************/

body {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-color: #fff;
}

/* Headings *************************************************/

h1 {
  font-family: "Times New Roman", Times, serif;
  color: white;
  text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
  margin-bottom: 20px;
}

h2 {
  font-family: "Segoe Print", Times, serif;
  color: white;
  text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
  margin: 15px 0 10px 0;
}

h3 {
  font-family: "Segoe Print", Times, serif;
  color: black;
  max-width: 600px;
  margin: 0 auto 20px auto;
  padding: 5px;
  border: none;
  word-wrap: break-word;
}

/* Row inside watercolors block **********************************/

.content-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 10px;
}

/* Card container ***********************************************/

.card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

a.card {
  display: block;
  background: #4169E1;
  border-radius: 10px;
  padding: 10px;
  width: 220px;
  height: 260px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: white;
  cursor: pointer;
  
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  
}

a.card:visited {
  color: white;
  text-decoration: none;
}

a.card:link {
  color: white;
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 15px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
  text-decoration: none;
  color: white;
}

.card img {
   max-width: 100%;
   border-radius: 5px;
}

.card h1 {
  margin: 10px 0;
  font-size: 1.2em;
}

.card p {
  font-size: 0.9em;
  color: #444;
}

.card a {
  text-decoration: none;
  display: block;
}

.card a:hover {
  text-decoration: none;
}

/* Watercolors *******************************************************/

.watercolors {
  background: #4169E1;
  border-radius: 12px;
  width: 400px;
  height: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.watercolors table {
  border-collapse: collapse;
  width: 100%;
  max-width: 700px;
  background-color: #4169E1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 0.9em;
}

.watercolors th, .watercolors td {
  border: 1px solid #999;
  padding: 8px;
  text-align: left;
  background-color: #4169E1;
  font-weight: bold;
}

/* Watercolors Table  *****************************************************/

table {
  table-layout: fixed;
  width: 100%; /* responsive */
  max-width: 700px;
  border-collapse: collapse;
}

td {
  border: 1px solid #ccc;
  padding: 4px 8px;
  vertical-align: top;
}

.button-area {
  background-color: #000;
  padding: 12px;
  margin-top: 12px;
  width: fit-content;
  text-align: left;
}

.button-area-cart {
  background-color: #ffffff;
  padding: 12px;
  margin-top: 12px;
  width: fit-content;
  text-align: center;
}

.button-row {
  display: flex;
  gap: 10px;
}

/* Info Buttons Container ******************************************/

.info-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

/* Info Buttons - Royal Blue ***************************************/

.info-button {
  background-color: #4169E1;
  color: white;
  border: none;
  padding: 10px 25px;
  margin: 5px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.info-button:hover {
  background-color: #274abb;
  transform: translateY(-2px);
}

.info-button:focus {
  outline: 2px solid #4169E1;
  outline-offset: 2px;
}

/* Fade animation for image ********************************************/

.fade-image {
  max-width: 300px;
  margin: 20px auto;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-image.show {
  opacity: 1;
}

.fade-image.hide {
  opacity: 0;
}

/* Cart display area **************************************************/

#cart-area {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: left;
  max-width: 400px;
}

#cart-items .cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 8px;
  gap: 16px;
}

#cart-items button {
  background-color: #cc0000;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
}

#cart-items button:hover {
  background-color: #990000;
}

/* Responsive video container for proper scaling ************************/

.video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 20px auto;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Direct video/iframe styling for mobile ******************************/

@media (max-width: 768px) {
  video, iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .video-container {
    padding-bottom: 56.25%;
  }
}

@media (max-width: 480px) {
  video, iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}