/* Basic styling */

@font-face {
  font-family: 'Josefin Slab';
  src: url('../fonts/JosefinSlab-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Josefin Slab';
  src: url('../fonts/JosefinSlab-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

html {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  text-align: left;  /* Centers inline and inline-block elements */
  display: flex;  /* To use flexbox */
  flex-direction: column;  /* Stack children vertically */
  align-items: center;  /* Center children horizontally */
  width: 100%;
  box-sizing: border-box; /* This ensures padding and borders don't add extra width */
}

body {
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
  margin: 0;
  padding: 0;
  min-width: 100%;
  width: 100%;
  box-sizing: border-box; /* This ensures padding and borders don't add extra width */
}

body.privacy-policy-page, body.thank-you-page {
  background-color: rgb(254, 250, 237);
}

.homepage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 675px;
  background-color: rgb(254, 250, 237);  /* Same as header background color */
  z-index: -1;  /* Place it behind other content */
}

/* Header styling */
header {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligns children to the top of the footer */
  background-color: rgb(254, 250, 237);
  color: black;
  padding: 1em;
  margin-top: 2em;
  margin-bottom: 2em;
}

.header-content {
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  width: 58rem;
  margin: 0 auto;
}

/* Desktop and larger screens */
@media (min-width: 1025px) { /* Typically 768px is where tablets start, adjust as needed */
  .header-content {
    width: 63rem;
  }
}

/* Navigation Menu Styling */
.main-nav {
  align-self: flex-end; /* Aligns the navigation menu to the right */
  text-align: right;  /* Keeps the menu items aligned to the right */
}

.main-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  height: 1.0rem;
}

.main-nav li {
  display: inline-block; /* Makes the list items inline and block-level */
}

.main-nav a {
  display: block;
  padding: 0.1875rem 1.25rem; /* Adjusted padding to fit within 20px height */
  text-align: center;
  text-decoration: none;
  
  font-weight: bold; 
  font-size: 0.68rem;
  line-height: 1.1em;
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
  
  color: rgb(51, 51, 51); /* Text color */
  transition: color 0.4s ease 0s; /* Transition effect for color change */
}

.main-nav a:hover {
  color: rgb(228, 191, 143); /* Text hover color */
}

/* Easily List and Manage your Ebay Auctions Text */
.easily-list-and-manage-your-ebay-auctions {
  text-align: center;
  font-family: 'Verdana', sans-serif;
  font-size: 1.5rem;
  margin-top: 1%;
  color: rgb(51, 51, 51);
}

/* Title Section Styling */
.title-section {
  display: flex;
  align-items: flex-start; /* Align items at the start of the flex container */
  margin-top: 2rem;
  margin-left: 15.5vw;
  margin-right: 15.5vw;
}

/* Desktop styles */
@media (min-width: 1025px) {
  .title-section {
    margin-left: 24vw;
    margin-right: 24vw;
  }
}

.title-left {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.title-top {
  display: flex;
  flex-direction: row;
  align-items: center; /* To align the icon and h2 vertically centered to each other */
}

.title-icon {
  width: 4.375rem;
  height: 4.375rem;
  margin-right: 2%; /* Space between the icon and title */
}

.title-section h2 {
  font-family: "Josefin Slab", Sans-serif;
  font-size: 2.25rem;
  line-height: 1.167em;
  letter-spacing: 0;
  color: #333333;
  font-weight: 700;
  margin: 1rem 0; /* Some spacing above and below the title */
}

.title-description {
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5em;
  text-align: justify;
  width: auto;
  margin-top: 2em;
  margin-right: 8rem;
  color: rgb(51, 51, 51);
}

/* For mobile devices */
@media (max-width: 1024px) {
  .title-description {
    margin-right: 4rem;
  }
}

.title-right {
  display: flex;
  flex-direction: column; /* Stack the logo and text box vertically */
  align-items: center; /* Center the children horizontally */
  width: 100%; /* This ensures it doesn't go beyond the viewport's width */
}

/* Styling for the eBay logo */
.ebay-logo {
  width: 5rem;      /* 80px / 16 = 5rem */
  height: 3.75rem;  /* 60px / 16 = 3.75rem */
  margin-top: 1rem;
}

.app-store-badge {
  width: 8.4375rem;  /* 135px converted to rem */
  height: 2.5rem;    /* 40px converted to rem */
  margin-top: 2em;
}

/* Styling for the new text box */
.sell-on-ebay-text-box {
  width: 6.25rem;
  height: 3.125rem;
  font-family: "Josefin Slab", Sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  color: rgb(51, 51, 51);
  display: flex;   /* Center the text inside the box */
  justify-content: center;
  margin-top: 1rem;
  text-align: center;
}

/* Right section styling to contain the logo and text box and align them properly */
.title-section-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Image Container styling */
/* Mobile-first approach: Default styles for mobile */
.image-container {
  height: auto; /* Adjust this based on the desired aspect ratio or content */
  position: relative;
  margin-top: 2em;
  width: 58rem;
}

/* Desktop and larger screens */
@media (min-width: 1025px) { /* Typically 768px is where tablets start, adjust as needed */
  .image-container {
    width: 63rem;
  }
}

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

/* Carousel styling */

.carousel {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 77%;
}

.carousel-images {
  position: relative;
  overflow: hidden;  /* Hide overflowing images */
  width: 100%;
  height: 100%;
}

/* Carousel styling */

.carousel-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;  /* Transition for fade effect */
  object-fit: contain;  /* To maintain aspect ratio */
}

.carousel-images img.fade-in {
  opacity: 1;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  color: rgba(255, 255, 255, 0.7); /* Whitish-gray */
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  color: rgba(255, 255, 255, 0.9); /* Slightly brighter on hover */
}

.carousel-prev {
  left: 0.625rem;
}

.carousel-next {
  right: 0.625rem;
}

/* Make the buttons initially invisible */
.carousel-prev, .carousel-next {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Make the buttons visible when hovering over the carousel */
.carousel:hover .carousel-prev,
.carousel:hover .carousel-next {
  opacity: 1;
}

/* Text Boxes */
/* Mobile styles (default) */
.text-box-container {
  display: flex;
  justify-content: space-between;
  margin-top: 3%;
  border-top: 0.0625rem solid #ccc;
  width: 58rem;
}

/* Desktop and larger screens */
@media (min-width: 1025px) {
  .text-box-container {
    width: 63rem;
  }
}

.text-box {
  justify-content: center; /* Horizontal alignment */
  padding: 1.0rem;
  color: rgb(51, 51, 51);
}
.text-box-icon {
  width: 2.375rem;
  height: 2.375rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.text-box h3 {
  margin-top: 1.5625rem;
  font-size: 1.4rem;
  font-family: 'Josefin Slab', serif;
  font-weight: bold;
  font-style: normal;
  line-height: 1.3em;
}

.text-box p {
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
  font-size: 0.9rem;
  text-align: justify;  /* Justify text */
  margin-top: 1%;  /* Add top margin */
}

.icon-text-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer styling */
footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligns children to the top of the footer */
  background: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.10)),
            rgba(254, 250, 237, 0.8);  
  color: black;
  padding: 1em;
  margin-top: 2em;
  min-height: 37vh;
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  width: 58rem;
  margin: 0 auto;
}

/* Desktop and larger screens */
@media (min-width: 1025px) { /* Typically 768px is where tablets start, adjust as needed */
  .footer-content {
    width: 63rem;
  }
}
.footer-text {
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fffbf1;
  text-align: left;
  flex: 1;  /* Let it grow and shrink as needed */
}

footer p {
  text-shadow: 0.0625rem 0.0625rem 0.125 rgba(0, 0, 0, 0.2); /* subtle shadow */
}

.footer-text a {
  color: #fffbf1;
  text-shadow: 0.0625rem 0.0625rem 0.125 rgba(0, 0, 0, 0.2); /* subtle shadow */
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-form p, .contact-form label {
  margin: 0; /* Remove default margins */
}

.contact-form input, .contact-form textarea {
  font-size: 0.875rem;
  width: 100%;  
  padding: 0.5rem;
  border: 2px solid rgb(51, 51, 51); /* Solid border with the specified color */
  margin-bottom: 0.3rem; /* Added for reducing space */
  box-sizing: border-box;
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
}

.contact-form textarea {
  font-size: 0.875rem;
  height: 6rem; /* Adjust height of the textarea */
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
  resize: none; /* Prevents resizing */
}

/* Style for input placeholders */
.contact-form input::placeholder {
  font-size: 0.875rem;
  color: #666;  /* Darker gray color */
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
}

/* Style for textarea placeholder */
.contact-form textarea::placeholder {
  color: #666;  /* Darker gray color */
  font-size: 0.875rem;
  height: 10rem;
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
}

/* Note: Different browsers may have variations for placeholder pseudo-elements.
For complete browser support, you might consider adding vendor prefixes like:
::-webkit-input-placeholder, :-ms-input-placeholder, etc. 
But, most modern browsers support ::placeholder without prefixes. */

button[type="submit"] {
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
  background-color: rgb(51, 51, 51);
  border: none; /* removes any default border */
  color: white; /* font color */
  padding: 0.4rem 1.5625rem;
  cursor: pointer; /* changes the cursor to a hand when hovering over */
  transition: background-color 0.3s ease; /* smooth transition for hover effect */
}

button[type="submit"]:hover {
  background-color: black;
}

.submit-wrapper {
  display: flex;
  align-items: flex-start;  /* Positions flex items at the top */
  justify-content: space-between;
}

.privacy-policy-content, .thank-you-content {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  max-width: 50rem; /* Optional: set a max-width if you want to limit content width */
  margin: 0 auto; /* Centers the content if you set a max-width */
  font-size: 0.875rem;
  line-height: 1.3em;
  font-family: Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
}

.privacy-policy-content h2, .thank-you-content h2  {
  font-weight: bold;
  font-size: 1.875rem;
  font-family: 'Josefin Slab', serif;
}

.logo-container {
  display: flex;
  align-items: center; /* vertically aligns the text with the logo icon */
  align-self: flex-start; /* Aligns the logo container to the left */
  width: 100%;
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.2); /* light black with some transparency */
  padding-bottom: 0.625rem; /* about 10px */
}

.logo-icon {
  width: 3.1875rem;
  height: 2.5rem;
  margin-right: 0.625rem;
}

.logo-text-top {
  font-family: 'Josefin Slab', serif;
  font-size: 1.5rem;
}

.logo-text-bottom {
  font-size: 0.9rem;
  line-height: 1.3em;
  font-family: "Courier New", Courier, Arial, Helvetica, Verdana, Trebuchet MS, Geneva, Lucida Sans, sans-serif;
}

/* For debugging */
/*
* {
  outline: 1px solid red;
}
*/
