/* Base Styles */
body {
  margin: 0 auto;
  width: 100%;
  padding: 0;
  max-width: 30rem;
  color: #eee;
  position: relative;
  font-family: sans-serif;
  background-color: #117f3a;
}

p {
  line-height: 1.5;
  margin: 0;
}

h2, h3 {
  margin: 0;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
}

a {
  text-decoration: none;
  user-select: none;
}

/* Theme Colors */
.closeColor {
  filter: invert(1);
}

.iconColor {
  color: #eee;
  font-weight: bold;
}

.cardColor,
.textColor {
  color: #222 !important;
}

.seekbarColor {
  background: #117f3a80 !important;
}

/* Modal Styles */
#modal {
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 1;
  width: 100%;
  bottom: 0;
  transition: top 0.2s ease-out, opacity 0.1s ease-out;
  transform: translateZ(0);
  background-color: #ddd;
}

#close {
  align-self: end;
  padding: 1rem;
  cursor: pointer;
  line-height: 0;
}

#keyView,
#copyView,
#qrView {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1rem;
  text-align: center;
}

#keyView p,
#copyView p,
#qrView p {
  margin: 2rem;
  text-align: center;
}

#copyURL,
#dlKey {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 5rem;
  padding: 1rem 1.5rem;
  border: none;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  background-color: #117f3a;
}

#copyURL span,
#dlKey span {
  margin-left: 0.5rem;
}

#qrView h3 {
  margin: 2rem 2rem 0;
}

#qrView p {
  margin: 0.5rem 2rem 0;
}

#qr {
  margin: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 0.5rem;
}

/* Header Styles */
header {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
}

.headerImgC {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  overflow: hidden;
}

#cover {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 20rem;
  object-position: top center;
  object-fit: cover;
}

#topActions {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
}

#topActions > div {
  display: flex;
}

#topActions a {
  padding: 1rem;
  cursor: pointer;
  line-height: 0;
}

/* Main Content Styles */
main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ddd;
}

#profilePhoto {
  width: 10rem;
  height: 10rem;
  border-radius: 100%;
  box-sizing: content-box;
  pointer-events: none;
  user-select: none;
  margin-top: -6rem;
}

#info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  line-height: 1.25;
  word-break: break-word;
}

.name {
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0;
}

.bizname {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  opacity: 0.8;
}

.bizaddr {
  font-size: 0.8rem;
  opacity: 0.6;
}

.sub {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  opacity: 0.8;
  white-space: pre-line;
  line-height: 0.7;
}

/* CTA Button Styles */
#cta {
  display: flex;
  align-items: center;
  border-radius: 5rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  line-height: 0;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  background-color: #117f3a;
}

#cta .icon {
  margin-right: 0.5rem;
}

#cta p {
  margin: 0;
}

/* Action Buttons Styles */
.actions {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.actionsC {
  width: 33.33%;
}

.actionBtn {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.actionBtn a {
  border-radius: 100%;
  padding: 1rem;
  line-height: 0;
  background-color: #117f3a;
}

.actionBtn p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

/* Secondary Action Buttons */
.secBtn {
  padding: 1rem;
}

.secondary .actionBtn a[aria-label="Instagram"] {
  background: #fff;
}

.secondary .actionBtn a[aria-label="Facebook"] {
  background: #1877f2;
}

/* Footer Styles */
footer {
  padding: 4rem 1rem 2rem;
  font-size: 0.9rem;
  text-align: center;
  background-color: #ddd;
}

footer a {
  text-decoration: underline;
  color: inherit;
}

/* Range Input Styles */
input[type='range']::-moz-range-track {
  background: none;
}

input[type='range']::-moz-range-thumb {
  -moz-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 100%;
  border: none;
  background: #117f3a;
  z-index: 3;
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 100%;
  border: none;
  background: #117f3a;
  z-index: 3;
  cursor: pointer;
}
