/* fonts */

/* copperplate font */
@font-face {
    font-family: "Bank Gothic Light";
    src: url("https://db.onlinewebfonts.com/t/dcecb26c9fdaa7b8520c80ffb00bf790.eot");
    src: url("https://db.onlinewebfonts.com/t/dcecb26c9fdaa7b8520c80ffb00bf790.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/dcecb26c9fdaa7b8520c80ffb00bf790.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/dcecb26c9fdaa7b8520c80ffb00bf790.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/dcecb26c9fdaa7b8520c80ffb00bf790.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/dcecb26c9fdaa7b8520c80ffb00bf790.svg#Bank Gothic Light")format("svg");
}

/* palantir font */
@font-face {
    font-family: "Alliance No.2 Light";
    src: url('fonts/DegarismStudio-AllianceNo.2Light.otf')format('opentype');
}
@font-face {
    font-family: "Alliance No.2";
    src: url('fonts/Alliance No.2 Regular.otf')format('opentype');
}
@font-face {
    font-family: "Alliance No.1 Light";
    src: url('fonts/DegarismStudio-AllianceNo.1Light.otf')format('opentype');
}

/* global */

body {
    /* light mode */
    /* background-color: #f5f5f5;  */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1c2127; 
}

h1 {
    font-family: "Alliance No.2";
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    line-height: 0.9;
    letter-spacing: -0.05em; 
    text-rendering: optimizeLegibility;
    font-size: 30px;
    margin-bottom: 10px;
    padding-bottom: 25px;
    /* #000000 in light mode */
    color: #e3e3e3; 
}

p {
    font-family: "Alliance No.2 Light";
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

a:link{
    text-decoration: none!important;
}

/* card container */

.card-container {
    width: 900px;
    height: 506px;
    padding: 22px;
    background-color: #1c2127;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* left side, name and sub */

.left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding-left: 2px;
    color: #ffffff;
    height: 100%; 
    transform: translateY(-10px);
}

.left-content h1 {
    font-size: 96px;
    margin-bottom: 1px;
    padding-bottom: 1px;
}

.left-content .subtitle {
    font-size: 34px;
    color: #9c9899;
    transform: translateX(8px);
}

/* buttons, right side */

.right-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 2px;
    padding-left: 4px;
    gap: 30px;
}

.button-item {
    position: relative; 
}

.button-text {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    font-family: "Alliance No.2 Light";
    position: relative;
}

.label {
    font-size: 50px;
    color: #9c9899;
    position: relative;
}

.label::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #9c9899;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.button-item a:hover .label::after {
    transform: scaleX(1);
}

.arrow-icon {
    height: 40px; 
    width: auto;
    margin-bottom: -2px; 
    filter: brightness(0.7); 
}

/* temp for notes page */

.wip {
    color: #ffffff;
    font-size: 30px;
}

/* responsive */

/* phones (up to 480px) */
@media (max-width: 480px) {
  .left-content h1 {
    font-size: 52px;
  }

  .left-content .subtitle {
    font-size: 19px;
    transform: translateX(2px);
  }

  .label {
    font-size: 24px;
    transform: translateX(7px);
  }

  .arrow-icon {
    height: 18px;
    transform: translateX(7px);
    transform: translateY(-1px);
  }

  .card-container {
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .right-buttons {
    align-items: flex-start;
    padding: 0;
  }
}

/* small tablets (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .left-content h1 {
    font-size: 64px;
  }

  .left-content .subtitle {
    font-size: 24px;
    transform: translateX(2px);
  }

  .label {
    font-size: 30px;
    transform: translateX(7px);
  }

  .arrow-icon {
    height: 28px;
    transform: translateX(7px);
    transform: translateY(-1px);
  }

  .card-container {
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .right-buttons {
    align-items: flex-start;
    padding: 0;
  }
}

/* medium screens (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .left-content h1 {
    font-size: 80px;
  }

  .left-content .subtitle {
    font-size: 30px;
    transform: translateX(3.5px);
  }

  .label {
    font-size: 42px;
  }

  .arrow-icon {
    height: 34px;
  }

  .card-container {
    width: 800px;
  }

  .card-content {
    flex-direction: row;
  }

  .right-buttons {
    align-items: flex-end;
  }
}

/* light/dark mode toggle */

.switch {
    position: relative;
    display: inline-block;
    /* margin-top: 130px; */
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #363636;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 15px;
    left: 4px;
    bottom: 3px;
    background-color: #bababa;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ccc;
}

input:checked + .slider:before {
    transform: translateX(17px);
    background-color: #fff;
}

body.light-mode {
  background-color: #ffffff;
}

body.light-mode .card-container {
  background-color: #ffffff;
}

body.light-mode h1,
body.light-mode .left-content {
  color: #1b1c1e;
}

body.light-mode .subtitle,
body.light-mode .label {
  color: #444444;
}

body.light-mode .label::after {
  background-color: #444444;
}

body.light-mode .arrow-icon {
  background-image: url("arrowupright-lightmode.svg");
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

@media (max-width: 480px) {
  .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
}


@media (min-width: 481px) {
  .theme-toggle {
    top: 20px;
    right: 20px;
  }
}
