@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@media (max-width: 780px) {
  :root {
    --body: 0px;
    --vh: 100vh;
  }

  .dev {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(250, 101, 101, 0.18);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 1, 1, 0.32);

    width: 75%;
    height: 40px;
  }

  body {
    width: 100dvw;

    height: 100dvh;

    background: url('/images/bgimg.jpg') no-repeat center center fixed;
    background-size: cover;
  }

  #useful {
    position: absolute;

    display: none;

    object-fit: cover;

    top: 50%;
    left: 50%;
    border-radius: 75px;

    width: 105dvw;
    height: 100%;

    z-index: -1;
    transform: translate(-50%, -50%);
  }

  * {
    color: white !important;
    font-family: "Roboto", sans-serif !important;
    font-optical-sizing: auto !important;
  }

  :root {
    --height: 35px;
    --size: 150px;
    --animation-time: 0.6s;
    --logo-size: 70px;
  }

  #error {
    background: rgba(250, 101, 101, 0.18);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 1, 1, 0.32);

    margin-left: 5% !important;
    margin-right: 5% !important;

    text-align: center;
    padding: 10px;
  }

  .error {
    transition: var(--animation-time);
    width: 7.5%;
    height: auto;

    opacity: 1;

    position: absolute;
    top: 50%;
    right: 15px;

    z-index: 2;

    transform: translateY(-50%);
  }

  .box1 {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 75%;

    text-align: center;

    transform: translate(-50%, -50%);

    opacity: 0;
  }

  #box1.xx {
    transition: 1s;
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box1.x {
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box1.opa {
    opacity: 1;
    transition: 1s;
    transform: translate(-50%, -50%);
  }

  .logo-box {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 15%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.32);

    margin-left: 50%;
    transform: translate(-50%, 0);

    height: calc(var(--logo-size) + var(--logo-size) / 3);
    width: calc(var(--logo-size) + var(--logo-size) / 3);
    margin-bottom: 5px;
    position: relative;

    transition: margin-bottom 1s ease-in-out;
  }


  .logo-box.move {
    transform: translate(-50%, 0);
  }

  .authenticate.move {
    transform: translate(0, 60px);
  }

  .logo {
    margin-left: 50%;
    margin-right: 50%;
    margin-top: 50%;

    width: var(--logo-size);

    transform: translate(-50%, -50%);
  }

  .checkmark-box {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 15%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.32);

    margin-left: 50%;
    transform: translate(-50%, 0);

    height: calc(var(--logo-size) + var(--logo-size) / 3);
    width: calc(var(--logo-size) + var(--logo-size) / 3);
    /*margin-bottom: 5px;*/
    position: relative;

    /*transition: margin-bottom 1s ease-in-out;*/
  }

  .box2 {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 75%;

    text-align: center;

    transform: translate(-50%, -50%);

    opacity: 0;
  }

  #box2.xx {
    transition: 0.6s;
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box2.x {
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box2.opa {
    opacity: 1;
    transition: 0.6s;
    transform: translate(-50%, -50%);
  }

  .popup {
    display: none;

    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
  }

  .header-tekst {
    margin-top: 8px !important;
    margin-bottom: 8px;
  }

  .tekst {
    margin-top: 0;
    margin-bottom: 0;
  }

  .przycisk {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9.9px);
    -webkit-backdrop-filter: blur(9.9px);
    border: 1px solid rgba(255, 255, 255, 0.32);

    height: var(--height);
    width: var(--size);

    z-index: 9999 !important;
    cursor: pointer;

    margin-top: 3%;
  }

  .przycisk:disabled {
    opacity: 0;
  }

  .przycisk:enabled {
    opacity: 1;
    transition: 0.6s;
  }
}

@media (min-width: 780px) and (max-width: 1280px) {
  body {
    background-color: wheat;
  }
}

@media(min-width: 1280px) and (max-width: 200000px) {

  :root {
    --body: 0px;
    --vh: 100vh;
  }

  body {
    overflow: hidden;
    /*position: fixed;*/
    width: 100%;

    height: 100dvh;

    background-color: rgb(9, 9, 11);
  }

  #useful {
    position: absolute;

    top: 0;
    left: 44%;
    border-radius: 75px;

    height: 100dvh !important;

    z-index: -1;
    transform: translate(0, 0);
  }

  * {
    color: white !important;
    font-family: "Roboto", sans-serif !important;
    font-optical-sizing: auto !important;
  }

  :root {
    --height: 35px;
    --size: 150px;
    --animation-time: 0.6s;
    --logo-size: 70px;
  }

  #error {
    background: rgba(250, 101, 101, 0.18);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 1, 1, 0.32);

    margin-left: 5% !important;
    margin-right: 5% !important;

    text-align: center;
    padding: 10px;
  }

  .dev {
    position: absolute;
    left: 22%;
    transform: translateX(-50%);

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(250, 101, 101, 0.18);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 1, 1, 0.32);

    width: 25%;
    height: 40px;
  }

  .error {
    transition: var(--animation-time);
    width: 7.5%;
    height: auto;

    opacity: 1;

    position: absolute;
    top: 50%;
    right: 15px;

    z-index: 2;

    transform: translateY(-50%);
  }

  .box1 {
    position: absolute;
    left: 22%;
    top: 50%;

    height: 141px;

    text-align: center;

    transform: translate(-50%, -50%);

    opacity: 0;
    display: none;
  }

  #box1.xx {
    transition: 1s;
    z-index: -1;
    display: none;
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box1.x {
    display: none;
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box1.opa {
    display: unset;
    opacity: 1;
    z-index: 0;
    transition: 1.5s;
    transform: translate(-50%, -50%);
  }

  .logo-box {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 15%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.32);

    margin-left: 50%;
    transform: translate(-50%, 0);

    height: calc(var(--logo-size) + var(--logo-size) / 3);
    width: calc(var(--logo-size) + var(--logo-size) / 3);
    margin-bottom: 5px;
    position: relative;

    transition: margin-bottom 1s ease-in-out;
  }

  .logo-box.move {
    transform: translate(-50%, 0);
  }

  .authenticate.move {
    transform: translate(0, 60px);
  }

  .username {
    margin: 0 0 10px 0;
  }

  .username input {
    text-align: center;
    border-radius: 10px;
    border: 2px dashed;
    background: transparent;
  }

  .logo {
    margin-left: 50%;
    margin-right: 50%;
    margin-top: 50%;

    width: var(--logo-size);

    transform: translate(-50%, -50%);
  }

  .checkmark-box {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 15%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.32);

    margin-left: 50%;
    transform: translate(-50%, 0);

    height: calc(var(--logo-size) + var(--logo-size) / 3);
    width: calc(var(--logo-size) + var(--logo-size) / 3);
    /*margin-bottom: 5px;*/
    position: relative;

    /*transition: margin-bottom 1s ease-in-out;*/
  }

  .checkmark-box.shake {
    animation: shake 0.5s ease-in-out;
  }

  @keyframes shake {
    0% { transform: translateX(-50%); }
    20% { transform: translateX(-65%); }
    40% { transform: translateX(-35%); }
    60% { transform: translateX(-65%); }
    80% { transform: translateX(-35%); }
    100% { transform: translateX(-50%); }
  }

  .box2 {
    position: absolute;
    left: 22%;
    top: 50%;
    z-index: -1;

    text-align: center;

    transform: translate(-500%, -50%);

    opacity: 0;
  }

  #box2.xx {
    z-index: -1;
    transition: 2s;
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box2.x {
    opacity: 0;
    transform: translate(-80%, -50%);
  }

  #box2.opa {
    z-index: 0;
    opacity: 1;
    transition: opacity 1s;
    transform: translate(-50%, -50%);
  }

  .popup {
    display: none;

    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
  }

  .header-tekst {
    margin-top: 8px !important;
    margin-bottom: 8px;
  }

  .tekst {
    margin-top: 0;
    margin-bottom: 0;
  }

  .przycisk {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9.9px);
    -webkit-backdrop-filter: blur(9.9px);
    border: 1px solid rgba(255, 255, 255, 0.32);

    height: var(--height);
    width: var(--size);

    z-index: 9999 !important;
    cursor: pointer;

    margin-top: 3%;
  }

  .przycisk:disabled {
    opacity: 0;
  }

  .przycisk:enabled {
    opacity: 1;
    transition: 0.6s;
  }
}
