/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  /* = 1rem */
}

body {
  min-height: 100vh;
}

/* I use these variables as the font so all fonts have the same font stack */
:root {
  --font-sans: "EuclidCircularB", "San Francisco", "Roboto", "Helvetica", sans-serif;
  --font-serif: "Gascogne", "Times New Roman", serif;
  --error-color: #E60000;
}

@font-face {
  font-family: 'EuclidCircularB';
  src: url('/assets/fonts/EuclidCircularB-Regular-WebXL.woff2') format('woff2'),
    url('/assets/fonts/EuclidCircularB-Regular-WebXL.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EuclidCircularB';
  src: url('/assets/fonts/EuclidCircularB-Bold-WebXL.woff2') format('woff2'),
    url('/assets/fonts/EuclidCircularB-Bold-WebXL.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  min-height: 100vh;
  margin: 0 auto;
  font-family: var(--font-sans);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1600px;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  main {
    max-width: 900px;
  }
}

@media (max-width: 920px) {
  main {
    padding: 0px 16px;
  }
}

main {
  width: 100%;
  max-width: 900px;
  margin-left: 16px;
  margin-right: 16px;
  padding-top: 16px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 767px) {
  .header {
    flex-direction: column;
    gap: 8px;
    padding: 12px 5% 0;
    margin-bottom: -8px;
  }
}

.hidden {
  display: none !important;
}

h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
}

p {
  font-family: var(--font-sans);
}

header {
  width: 100%;
  height: 108px;
  display: flex;

  height: fit-content;
  margin: 0px auto 0px auto;
  padding-top: 24px;
  padding-bottom: 16px;
  padding-left: 5%;
  padding-right: 5%;
}

#cricut-help-logo {
  width: 126px;
  height: auto;
}

header .nav-bar {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.banner {
  position: relative;
  text-align: left;
  color: #000;
  width: 100%;
}

.banner-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  color: #000;
}

.banner-text .back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #97B7C2;
  text-decoration: none;
  font-size: 14px;
}

.banner-text .back-link:hover {
  text-decoration: underline;
}

.banner-text h1 {
  margin: 0;
  font-size: 32px;
}

.banner-text p {
  font-size: 16px;
  margin-top: 5px;
}

.breadcrumbs-wrapper {
  width: 100%;
  display: flex;
  justify-content: start;
}

.page-title {
  margin-bottom: 24px;
}

.page-description {
  margin-bottom: 32px;
}


  .bread-crumb-nav {
    padding-top: 8px;
    padding-bottom: 72px;
  }



.search-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 64px;
  width: 100%;
  max-width: 600px;
}

.search-bar-and-button {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: end;
  width: 100%;
}

.search-bar-and-error {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#error-message {
  color: var(--error-color);
  margin-left: 4px;
  min-height: 20px;
}

#serialInput {
  font-family: var(--font-sans);
  width: 100%;
  max-width: 350px;
  min-width: 300px;
  font-size: 18px;
  display: flex;
  /* Why does the text look off? */
}

.search-area button,
.ad-btn {
  font-family: var(--font-sans);
  display: flex;
  height: 48px;
  padding: 14px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;

  border-radius: 50px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.2s ease;
}

/* Hover state */
.search-area button:hover,
.ad-btn:hover {
  background: #6B6B6B;
}

/* Active/clicked state */
.search-area button:active,
.ad-btn:active {
  background: #909090;
  transition: none;
}

/* Disabled state */
.search-area button:disabled {
  background: #6B6B6B;
  color: #AAAAAA;
  transform: none;
}

/* Prevent hover/active effects when disabled */
.search-area button:disabled:hover,
.search-area button:disabled:active,
.ad-btn:active {
  background: #6B6B6B;
  color: #AAAAAA;
  transform: none;
}

.search-area button .search-icon {
  width: 24px;
  height: 24px;
}

.search-area h1 {
  color: #000;
  font-family: "EuclidCircularB";
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.search-area input {
  padding: 12px 16px;
  border-radius: 100px;
  border: 1px solid black;
}

.card {
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  /* margin: 20px auto; */
  padding: 24px 24px 32px 24px;
}

.card.hidden {
  display: none;
}

.card h2 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 500;
}

.machine-info {
  display: flex;
  align-items: center;
  margin: 20px 0px;
  gap: 16px;

}

.machine-img {
  height: 106px;
  width: auto;
}

.machine-details {
  font-size: 16px;
  gap: 8px;
  display: flex;
  flex-direction: column;
}

.machine-details .model-name {
  display: flex;
  padding: 4px 16px;
  justify-content: center;
  align-items: center;
  /* gap: 8px; */
  align-self: stretch;
  border-radius: 8px;
  background: #000000;
  font-weight: bold;
  font-size: 30px;
  color: #ffffff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.machine-details .serial-number {
  display: flex;
  padding: 4px 16px;
  justify-content: center;
  align-items: center;
  /* gap: 8px; */
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid #000;
  font-size: 30px;
  font-weight: 400;
  /* margin: 5px 0; */
  color: #000;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.status-columns {
  display: flex;
  /* gap: 20px; */
  padding-top: 32px;
}

.status-block {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-right: 16px;
}

.status-icon {
  width: 48px;
  height: 48px;
  margin-right: 16px;
}

.status-block h3 {
  margin: 8px 0px;
  font-size: 30px;
  font-weight: 400;
}

.status-block p {
  margin: 0;
  /* font-size: 14px; */
  line-height: 1.4;
}

#statusBlock1 h3 {
  color: #008619;
}

#statusBlock2 h3 {
  color: #008619;
}

#statusBlock1 p {
  color: #000000;
}

#statusBlock2 p {
  color: #000000;
}

.back-link {
  color: #0072EF;
  font-family: "EuclidCircularB";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
}

.new-machine-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
  gap: 32px;
  width: 100%;
}

.ad-copy {
  font-size: 20px;
}

/* more styling applied to button from rules on buttons above */
.ad-btn {
  text-decoration: none;
}

#copyright {
  font-size: 12px;
  color: #fff;
}

.copyright-break {
  display: none;
}

.copyright-spacer {
  padding: 0px 16px;
  display: inline;
}

footer {
  background-color: #737373;
  padding: 30px;
  border-top: 1px solid #ddd;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .bread-crumb-nav {
    padding-bottom: 24px;
  }
}

@media (max-width: 600px) {
  .banner-text {
    position: static;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
  }

  .search-area {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-bar-and-button {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .search-bar-and-error {
    width: 100%;
  }

  #serialInput {
    width: 100%;
    max-width: none;
    font-size: 16px;
  }

  .search-area input {
    width: 100%;
    margin-bottom: 0;
  }

  .search-area button {
    width: 100%;
    justify-content: center;
  }

  .card {
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
  }

  .machine-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .machine-details .model-name,
  .machine-details .serial-number {
    font-size: 24px;
  }

  .status-columns {
    flex-direction: column;
  }

  .status-block {
    margin-bottom: 15px;
    padding-right: 0;
  }

  .status-block h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  main {
    margin-left: 8px;
    margin-right: 8px;
    padding-top: 8px;
  }

  .search-area {
    padding-top: 8px;
    padding-bottom: 32px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .search-bar-and-button {
    gap: 12px;
  }

  .card {
    padding: 12px;
  }

  .machine-details .model-name,
  .machine-details .serial-number {
    font-size: 20px;
    padding: 8px 12px;
  }

  .status-block h3 {
    font-size: 20px;
  }

  .search-area h1 {
    font-size: 32px;
  }

  .banner-text h1 {
    font-size: 28px;
  }
}

@media (max-width: 530px) {
  .copyright-break {
    display: inline;
  }

  .copyright-spacer {
    display: none;
  }
}