@font-face {
  font-family: "DelaGothicOne_Regular";
  src: url("assets/font/DelaGothicOne_Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Product_Regular";
  src: url("assets/font/Product_Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Product_Bold";
  src: url("assets/font/Product_Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Mejiro-Semibold";
  src: url("assets/font/Mejiro-Semibold.ttf") format("truetype");
}

@font-face {
  font-family: "Mejiro-Regular";
  src: url("assets/font/Mejiro-Regular.ttf") format("truetype");
}

* {
  font-family: "Product_Regular", "Mejiro-Regular";
  font-weight: normal;
}

a {
  color: #adc6ff;
}

h1 {
  font-family: "DelaGothicOne_Regular";
}

.gradient-banner {
  border: 2px solid #102f60;
  border-radius: 24px;
  background-image: linear-gradient(
    -60deg, #2b4678 0%, #102f60 50%, #2b4678 100%
  )
}

.main-logo {
  width: 90vmin;
}

.main-title {
  font-size: 10vmin;
  text-wrap-mode: nowrap;
}

.main-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-blue {
  font-family: "Product_Bold", "Mejiro-Semibold";
  font-size: 24px;
  border: 4px solid #445e91;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: #445e91;
  background: #d8e2ff;
  margin: 12px;
}

.devices-container {
  display: block;
}

.device-link {
  padding: 16px;
  margin: 8px 0 8px 0;
  font-size: 1.5em;
  display: grid;
  justify-items: start;
  grid-auto-flow: column;
}

.device-link a {
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "RookeryNew-Bold";
}

.device-link span {
  justify-self: end;
}

.device-image-container {
  width: 100%;
  height: 30vmax;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 16px 0;
}

.device-image-container .logo {
  height: 25vmin;
  position: absolute;
  margin-left: 0vmin;
  opacity: 0;
  animation:
    0.4s ease 0.1s 1 alternate forwards zoom-in-effect,
    1s ease 1s 1 alternate forwards slide-in-effect-to-left;
}

.device-image-container #device_icon {
  height: 25vmax;
  position: absolute;
  margin-left: 45vmin;
  opacity: 0;
  animation-name: slide-in-effect-to-right;
  animation-delay: 1s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes zoom-in-effect {
    0% {
        opacity: 0;
        height: 0;
        margin-left: 0vmin;
    }
    50% {
        opacity: 0.5;
        height: 32vmin;
    }
    100% {
        opacity: 1;
        height: 25vmin;
    }
}

@keyframes slide-in-effect-to-left {
    from {
        margin-left: 0vmin;
    }
    to {
        margin-left: -45vmin;
    }
}

@keyframes slide-in-effect-to-right {
    from {
        opacity: 0;
        margin-left: 0vmin;
    }
    to {
        opacity: 1;
        margin-left: 45vmin;
    }
}

.device-ota-details {
  width: 100%;
  font-size: 20px;
  border: 1px solid #102f60;
  border-radius: 8px;
}

.device-ota-details th, td {
  padding: 8px;
  border: 1px solid #102f60;
  line-height: 40px;
}

.device-ota-details th {
  text-align: left;
  font-family: "RookeryNew-Bold", "Mejiro-Semibold";
}

.device-ota-details td {
  text-align: right;
}

code, pre {
  background: #3f4759;
  font-family: monospace;
}

pre {
  text-wrap: wrap;
}

#device_changelog {
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px;
}

.pre-scrollable {
  max-height: 260px;
  overflow-y: auto;
}

.warning-copy-partitions {
  font-size: 20px;
  background: #93000a;
  display: none;
  padding: 16px;
  border-radius: 16px;
  animation-name: fade-in-effect, warning-blink-effect;
  animation-duration: 0.5s, 1s;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
}

@keyframes warning-blink-effect {
    0% {
        background: #750008;
    }
    100% {
        background: #93000a;
    }
}

@keyframes fade-in-effect {
    0% {
        opacity: 0;
        transform: scaleY(0%);
    }
    100% {
        opacity: 100;
        transform: scaleY(100%);
    }
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    height: 3.2rem;
    width: auto;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #445e91;
  --md-accent-fg-color:  #445e91;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #445e91;
  --md-accent-fg-color:  #445e91;
}