/* XQ-1 */
.xq-1 {
  font-size: 6vw;
  line-height: initial;
  font-size: 24px;
}

/* XQ-2 */
.xq-2 {
  line-height: initial;
}

.xq-2 p:first-child {
  font-size: 12px;
}

.xq-2 p:nth-child(2) {
  font-size: 24px;
}

/* XQ-3 */
.xq-3 {
  font-size: 24px;
  line-height: initial;
}

/* XQ-4 */
.xq-4 {
  line-height: initial;
}

.xq-4 p {
  text-align: center;
}

.xq-4 p:first-child {
  font-size: 20px;
  line-height: 24px;
}

.xq-4 p:nth-child(2) {
  font-size: 32px;
}

.xq-4 p:nth-child(3) {
  font-size: 54px;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--secondary);
  color: transparent;
}

/* XQ-5 */
.xq-5 .container {
  display: grid;
}

.xq-5 .container .pattern {
  font-size: 28px;
  line-height: 24px;
  text-align: center;
  word-break: break-all;
}

.xq-5 .container .switch-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--main-font);
  margin: auto;
  padding: var(--size-1) var(--size-4);
  position: sticky;
  top: 34px;
  background-color: var(--primary);
  justify-content: center;
}

/* Switch Styles */
.xq-5 .container .switch {
  position: relative;
  display: inline-block;
  width: var(--size-5);
  height: var(--size-2);
}

.xq-5 .container .switch input {
  display: none;
}

.xq-5 .container .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  outline: var(--main-border);
  transition: 0.4s;
  border-radius: 24px;
}

.xq-5 .container .slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  background-color: var(--secondary);
  border-radius: 50%;
  bottom: 2px;
  left: 3px;
  transition: 0.4s;
}

.xq-5 .container input:checked + .slider:before {
  transform: translateX(22px);
}

.xq-5 .container .pattern.xquare-pattern {
  word-wrap: break-word;
  color: rgba(0, 0, 0, 0);
  -webkit-text-stroke: 1px var(--secondary);
  word-break: break-all;
}

/* Type Structure */
.type-structure {
  display: flex;
  align-items: center;
  justify-content: center; /* From @mixin center-center */
  height: 76px;
  position: relative;
}

.type-structure-cap-height {
  display: flex;
  align-items: center;
  justify-content: space-between; /* From @mixin justify-content-space-between */
  position: absolute;
  top: 0;
  width: var(--full-size);
  height: 1px;
}

.type-structure-cap-height::before {
  content: 'Cap Height';
  position: relative;
  top: calc(-1 * var(--another-size-3));
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-cap-height::after {
  content: '700';
  position: relative;
  top: calc(-1 * var(--another-size-3));
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-x-height {
  display: flex;
  align-items: center;
  justify-content: space-between; /* From @mixin justify-content-space-between */
  position: absolute;
  top: 102px;
  width: var(--full-size);
  height: 1px;
}

.type-structure-x-height::before {
  content: 'x Height';
  position: relative;
  top: 102px;
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-x-height::after {
  content: '350';
  position: relative;
  top: -6px;
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-base-line {
  display: flex;
  align-items: center;
  justify-content: space-between; /* From @mixin justify-content-space-between */
  position: absolute;
  bottom: 44px;
  width: var(--full-size);
  height: 1px;
}

.type-structure-base-line::before {
  content: 'Baseline';
  position: relative;
  top: calc(-1 * var(--another-size-4));
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-base-line::after {
  content: '0';
  position: relative;
  top: calc(-1 * var(--another-size-4));
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-descender {
  display: flex;
  align-items: center;
  justify-content: space-between; /* From @mixin justify-content-space-between */
  position: absolute;
  bottom: -5px;
  width: var(--full-size);
  height: 1px;
}

.type-structure-descender::before {
  content: 'Descender';
  position: relative;
  top: calc(-1 * var(--another-size-4));
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-descender::after {
  content: '-200';
  position: relative;
  top: calc(-1 * var(--another-size-4));
  font-size: var(--size-1);
  font-family: var(--main-font);
}

.type-structure-text {
  font-size: var(--size-9);
  text-align: center;
  opacity: 0;
}

.type-structure-text-try {
  line-height: 248px;
}

/* Xquare Font Face */
@font-face {
  font-family: 'Xquare';
  src: url('https://alenlobeiras.com/api/font?filename=xquare.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.xquare {
  font-family: 'Xquare';
}

/* White Theme */
.white-theme .xq-4 p:nth-child(3) {
  -webkit-text-stroke-color: var(--primary);
}

.white-theme .xq-5 .switch-container {
  background-color: var(--secondary);
}

.white-theme .xq-5 .slider:before {
  background-color: var(--primary);
}

.white-theme .xq-5 .pattern.xquare-pattern {
  word-wrap: break-word;
  color: rgba(0, 0, 0, 0);
  -webkit-text-stroke: 1px var(--primary);
  word-break: break-all;
}

/*Responsive*/
@media (max-width: 1023px) {
  .xq-5 .container .switch-container {
    top: var(--size-5);
  }

  .type-structure-text-try {
    line-height: 248px;
  }
}

@media (min-width: 1023px) {
  .xq-3 {
    font-size: 64px;
  }

  .type-structure {
    height: 206px;
  }

  .type-structure-cap-height::before,
  .type-structure-cap-height::after,
  .type-structure-x-height::before,
  .type-structure-x-height::after,
  .type-structure-base-line::before,
  .type-structure-base-line::after,
  .type-structure-descender::before,
  .type-structure-descender::after {
    top: calc(-1 * var(--another-size-3));
  }

  .type-structure-base-line {
    bottom: 44px;
  }

  .type-structure-text {
    font-size: 12rem;
  }

  .type-structure-descender {
    bottom: -5px;
  }
}