.app {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.app-scroll {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 3rem;
  background-color: var(--background);
  border-radius: 1rem;
}

.header-title {
  color: var(--primary);
  font-size: var(--h4);
  transform: translateY(0.2rem);
  margin: 1rem;
}

.header-subtitle {
  font-size: var(--h6);
  color: var(--accent);
}

.ticket-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(50vh - 5rem);
}

.step-selector {
  display: grid;
  grid-template-columns: 1fr 0.1rem 1fr 0.1rem 1fr 0.1rem 2fr;
  align-items: center;
  text-align: center;
  background-color: var(--background);
  width: 52rem;
  height: 5rem;
  border-radius: 1rem;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.step.selected {
  text-decoration: underline;
}

.step-separator {
  width: 0.1rem;
  height: 80%;
  background-color: var(--secondary);
}

.confirm-wrapper {
  width: 100%;
  height: 80%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.confirm-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  border-radius: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  box-sizing: border-box;
  cursor: pointer;
}

.confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--primary);
  border-radius: 1rem;
}

.confirm-icon svg {
  fill: var(--background);
}

.step-panel {
  margin-top: 2rem;
  background-color: var(--background);
  width: 52rem;
  border-radius: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

.harbour-list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket {
  display: grid;
  grid-template-columns: 7rem auto 1fr auto;
  gap: 1rem;
  height: 7rem;
  padding: 1rem;
  box-sizing: border-box;
  background-color: var(--secondary);
  border-radius: 1rem;
}

.ticket-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.ticket-divider {
  margin-top: -1.25rem;
  margin-bottom: -1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.ticket-divider-dot {
  width: 0.5rem;
  height: 0.5rem;
  min-width: 0.5rem;
  min-height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--background);
}

.ticket-divider-line {
  height: 80%;
  border-left: 0.1rem dashed var(--background);
}

.ticket-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

.ticket-input {
  height: 2rem;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--background);
  color: var(--text);
  border-radius: 1rem;
  border: none;
  outline: none;
  padding: 0.2rem 0 0 1rem;
  font-family: inherit;
}

.ticket-price {
  align-self: end;
  justify-self: end;
}

.ticket-price-text {
  transform: translateY(0.5rem);
}

.create-ticket {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 100%;
  background-color: var(--secondary);
  color: var(--text);
  box-sizing: border-box;
  border-radius: 1rem;
  border: 0.1rem dashed transparent;
  cursor: pointer;
}

.create-ticket:hover {
  background-color: var(--accent);
  border: 0.1rem dashed var(--primary);
}

.select-variant {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 100%;
  background-color: var(--background);
  color: #888;
  box-sizing: border-box;
  border-radius: 1rem;
  border: 0.1rem dashed transparent;
  cursor: pointer;
}

.select-variant:hover {
  background-color: var(--accent);
  border: 0.1rem dashed var(--primary);
}

.select-variant-text {
  width: 100%;
  height: 100%;
  text-align: center;
  transform: translateY(0.3rem);
}

.departure {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.25rem;
  border-radius: 1rem;
}

.departure-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--secondary);
  box-sizing: border-box;
  border: 0.1rem dashed transparent;
  cursor: pointer;
  border-radius: 1rem;
}

.departure-item:hover {
  color: var(--text);
  background-color: var(--accent);
  border-color: var(--primary);
}

.departure-day {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.departure-day-item {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 4rem;
  box-sizing: border-box;
  border: 0.1rem dashed transparent;
  border-radius: 1rem;
}

.departure-day-item:hover {
  color: var(--text);
  background-color: var(--accent);
  border-color: var(--primary);
  cursor: pointer;
}

.departure-day-item.selected {
  background-color: var(--primary);
  color: var(--background);
}

.departure-day-item-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.departure-day-item-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.week-number-departure-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--text);
  background-color: var(--secondary);
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 1rem;
}

.radio-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  box-sizing: border-box;
  background-color: var(--secondary);
  color: var(--text);
  border-radius: 1rem;
  border: 0.1rem dashed transparent;
  cursor: pointer;
}

.radio-button.selected {
  background-color: var(--primary);
  color: var(--background);
}

.radio-button:hover {
  color: var(--text);
  background-color: var(--accent);
  border-color: var(--primary);
}

.radio-button-label {
  transform: translateY(0.2rem);
}

.dropdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.dropdown-text {
  width: 100%;
  height: 100%;
  transform: translateY(0.3rem);
}

.dropdown {
  display: none;
}

.dropdown.selected {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  width: 100%;
  margin-top: 0.5rem;
  background-color: var(--background);
  box-sizing: border-box;
  border-radius: 1rem;
  border: 0.1rem solid var(--primary);
  cursor: pointer;
}

.dropdown-option {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  width: 100%;
  height: 2rem;
  box-sizing: border-box;
  color: var(--text);
  border-radius: 1rem;
  border: 0.1rem dashed transparent;
  cursor: pointer;
  padding-left: 0.5rem;
}

.dropdown-option:hover {
  color: var(--text);
  background-color: var(--accent);
  border-color: var(--primary);
}

.dropdown-option-text {
  transform: translateY(0.1rem);
}

@font-face {
  font-family: "Alyamama";
  src: url("font/Alyamama-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
}

body {
  margin: 0;
  font-family: "Alyamama", sans-serif;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}

/* Chrome / Chromium / Safari */
*::-webkit-scrollbar {
  width: 0.5rem;
  background: transparent;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 1rem;
}

*::-webkit-scrollbar-thumb:hover {
  background: #d9d9d9;
}

input[type="date"]::-webkit-datetime-edit {
  color: #888;
}

input[type="date"]:valid::-webkit-datetime-edit {
  color: inherit;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

:root {
  --font-family: "Alyamama";
  --font-size-base: 16px;
  --font-weight: 400;
  --line-height: 1.6;

  --text: #292929;
  --background: #f7f7f7;
  --primary: #063b74;
  --secondary: #d9d9d9;
  --accent: #b0c4de;

  --h1: 3.815rem;
  --h2: 3.052rem;
  --h3: 2.441rem;
  --h4: 1.953rem;
  --h5: 1.563rem;
  --h6: 1.25rem;
  --p: 1rem;
  --small: 0.8rem;
  --x-small: 0.64rem;
}
