@font-face {
    font-family: "open-sans";
    src: url("./OpenSansVariableFont.ttf") format("truetype");
  }
  * {
    box-sizing: border-box;
  }
  body,
  html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .aspect-container {
    position: relative;
    border-style: solid;
    border-color: #164c5a;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    background-color: white;
    width: 100vw;
    height: auto;
    max-height: 100vh;
    max-width: calc(100vh * 16 / 9);
  }
  canvas { 
    border: 1px solid #aaa;
     touch-action: none; 
    }
  .titleHeader {
    font-size: 1.6rem;
    font-family: "open-sans", Arial, Helvetica, sans-serif;
    font-weight: 500;
    display: inline-block;
    padding: 0.4rem;
    padding-left: 1rem;
    color: white;
  }
  .topBar {
    min-height: 2.2rem;
    background-color: #164c5a;
    height: fit-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .buttonsBar {
    display: flex;
    gap: 1rem;
    margin-right: 1em;
  }
  .topButton {
    order: 2;
    margin: 0.1em;
    font-size: 2em;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    margin-bottom: auto;
    background-color: #fff;
    color: #164c5a;
    font-weight: bolder;
    padding: 0;
    font-family: "Courier New", Courier, monospace;
    transition-duration: 500ms;
    border-style: solid;
    outline: black;
    right: 15px;
  }
  .topButton:hover {
    background-color: #b7e6ec;
    color: #3a3a3a;
  }
  .topButton:active {
    transition-duration: 250ms;
    background-color: #90e6f1;
    color: #000;
    scale: 0.9;
  }
  .topButton:focus-visible {
    background-color: #b7e6ec;
    color: black;
  }
  .main-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    min-height: 80%;
    margin-top: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .swal2-html-container {
    font-family: "open-sans", Arial, Helvetica, sans-serif;
  }
  .swal2-title {
    font-family: "open-sans", Arial, Helvetica, sans-serif;
  }

  #subTitle {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "open-sans", Arial, Helvetica, sans-serif;
    margin-bottom: 1rem;
  }
  @media screen and (max-width: 1200px) {

    .titleHeader {
        font-size: 1.2rem;
    }
    #subTitle {
        font-size: 1.2rem;
        margin-bottom: 0rem;
    }
    .main-container{
      margin-top: 0;
    }
  }
  @media screen and (max-width: 800px) {

    .titleHeader {
        font-size: 0.9rem;
    }
    #subTitle {
        font-size: 0.9rem;
        margin-bottom: 0rem;
    }
  }

  #fullscreenButton{
    position: absolute;
    bottom: 1rem;
    right: 0.3rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: transparent;
    transition-duration: 500ms;
    border: none;

    right: 15px;
    opacity: 0.5;
  }

  #fullscreenButton:hover {
    transform: scale(1.1);
    opacity: 1;
    cursor: pointer;
  }
