@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;800&display=swap");

/* VARIABLES */
:root {
  --text-dark: #202428;
  --text-light: #f5f5f5;
  --primary: teal;
  --scrollbar: #004242;
}

* {
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
}

body {
  background-color: #333;
  height: calc(100vh - 2rem);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: var(--text-light);
}

#copyright{
  margin: 0;
  font-size: 0.5rem;
  color: #666;
}

main {
  /* height: calc(100vh - 2rem); */
  transition: 1s;
}
.card-header{
  padding-right: 0;
}
.card-body{
  max-height: calc(100vh - 8.5rem);
  overflow: auto;
}

@media screen and (max-width: 991px) {
  .card-body{
    max-height: none;
  }
}

.saxx-line {
  display: flex;
  animation: typing 2s steps(22), blink .5s step-end infinite alternate;
}
.saxx-line > h1 {
  font-size: 9vw;
  font-weight: 900;
  display: flex;
  pointer-events: auto;
}
.saxx-line > p {
  font-size: 4vw;
  font-weight: 900;
  display: flex;
  pointer-events: auto;
}

#mycanvas {
  width: 100%;
  height: 100%;
}

main .card {
  animation: animatePopOpen 0.5s ease-in-out;
}

.form-label{
  color: var(--text-light);
}

.form-control{
  background-color: transparent;
  color: var(--text-light);
}
.form-control:focus{
  background-color: transparent;
  border:1px solid teal;
  box-shadow: 0 0 5px teal;
  color: var(--text-light);
}

textarea{
  overflow-y: scroll;
  resize: none;
}

#info p{
  font-size: smaller;
}

@keyframes animatePopOpen {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Button */

.btn-primary {
  color: var(--text-light);
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  color: var(--text-light);
  background-color: var(--primary);
  border-color: var(--primary);
  opacity: 0.9;
}
.btn-check:focus + .btn-primary,
.btn-primary:focus {
  color: var(--text-light);
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem var(--primary), 0.5;
}
.btn-check:active + .btn-primary,
.btn-check:checked + .btn-primary,
.btn-primary.active,
.btn-primary:active,
.show > .btn-primary.dropdown-toggle {
  color: var(--text-light);
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-check:active + .btn-primary:focus,
.btn-check:checked + .btn-primary:focus,
.btn-primary.active:focus,
.btn-primary:active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem var(--primary);
}
.btn-primary.disabled,
.btn-primary:disabled {
  color: var(--text-light);
  background-color: var(--primary);
  border-color: var(--primary);
  opacity: 0.5;
}

/* Scroll Bar */
*::-webkit-scrollbar {
  width: 1em;
}
 
*::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}
 
*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar);
  border-radius: 3px;
}

.typing {
  overflow: hidden;
  border-right: .15em solid var(--primary); 
  white-space: nowrap; 
  margin: 0 auto; 
  animation: 
    typing 1.5s steps(15, end),
    blink-caret 1s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary) }
}

.img{
  width: 100%;
  object-fit: fill;
  margin-bottom: 1.8rem;
  border-radius: 0.5rem;
  box-shadow: 
  0 2.8px 2.2px rgba(0, 0, 0, 0.034),
  0 6.7px 5.3px rgba(0, 0, 0, 0.048),
  0 12.5px 10px rgba(0, 0, 0, 0.06),
  0 22.3px 17.9px rgba(0, 0, 0, 0.072),
  0 41.8px 33.4px rgba(0, 0, 0, 0.086),
  0 100px 80px rgba(0, 0, 0, 0.12);
}

.p-text-sm p{
  font-size: 0.8rem;
  color: #aaa;
  margin: 0.5rem;
}
.p-text-sm h5{
  margin: 0.5rem;
}
.p-text-sm a{
  margin: 0.5rem;
  font-size: smaller;
}
.p-text-sm img{
  margin-bottom: 1rem;
}
.p-text-sm .lang{
  margin-left: 0.5rem;
}

.lang{
  display: inline-block;
}
.lang img{
  height: 24px;
}

header{
  z-index: 999;
}

#background{
  pointer-events: none;
}

@media screen and (max-width: 991px) {
  #background{
    z-index: -1;
  }
}