/* Atlassian design system styles */


* {
  box-sizing: border-box;
}

:root {
  --primary-color: #1d71f5;
  --secondary-color: #0ec5e3;
  --background-color: white;
  --text-color: #444444;
}

.pageContent {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.field {
  display: flex;
  flex-direction: column;
  /*flex-wrap: wrap;*/
  justify-content: center;
  align-content: center;
    text-align: center;
    color: var(--text-color);
    background-color: whitesmoke;
    /*box-shadow: 10px 10px 8px #d3d3d3;*/
    box-shadow: var(--box-shadow) 0px 2px 8px 0px;
    padding: 2.25rem;
    /*padding-top: 1vh;
    padding-bottom: 35px;
    padding-left: 3vw;
    padding-right: 3vw;*/
    /*margin-right: 5vw;
    margin-top: 3vh;
    margin-bottom: 2.5vh;
    margin-left: 5vw;*/
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    /*margin-top: 4vh;*/
    /*margin-top: 2.5rem;*/
    border-spacing: 25px;
    /*grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;*/
    border-radius: 2px;
    align-self: center;
    width: 82%;
    /*width: 75rem;
    line-height: 0.1rem;*/
}

.firstField {
  padding-top: 1.1rem !important;
}

/*.firstLine {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0px
}*/

p {
  margin: 0;
}

@media (min-width: 3000px) and (min-height: 1500px){
  /*4k breakpoint*/
  .field {
    max-width: 50% !important;
  }
  .buttonWrapper::after {
    width: 35rem !important;
    height: 9rem !important;
  }
  .measureSelect {
      font-size: 1.1rem !important;
  }
  input[type="number"], input[type="text"], .bmiValue, .measureSelect {
      height: 2.3rem !important;
  }
  .contentButton {
    max-width: 20% !important;
  }
}

@media (min-width: 2000px) and (max-width: 2999px) and (min-height: 1100px) and (max-height: 1499px){
  /*2k breakpoint*/
  :root, p {
    font-size: 1.2rem !important;
  }
  .field {
    max-width: 50% !important;
  }
  .buttonWrapper::after {
    width: 32rem !important;
    height: 8rem !important;
  }
  input[type="number"], input[type="text"] {
      height: 2.2rem !important;
  }
  .contentButton {
    max-width: 23% !important;
  }
}

@media (min-width: 1921px) and (max-width: 4800px) {
  /*ultrawide breakpoint bellow 4k*/
  .contentButton {
    max-width: 15% !important;
  }
  .field {
    max-width: 45% !important;
  }
  p {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 600px){
  .field {
    height: 21.5dvh !important;
    min-height: 100px !important;
    width: 82vw !important;
    font-size: 15px !important; 
    padding-left: 2dvh !important;
    padding-right: 2dvh !important;
    padding-top: 2.8dvh !important;
    padding-bottom: 2.8dvh !important;
    /*margin-top: 4dvh !important;*/
    /*padding-top: 2.5dvh;
    padding-bottom: 2.5dvh;*/
    /*justify-items:  center;*/
    box-sizing: border-box;
  }
  .pageContent {
    gap: 0px !important;
    justify-content: space-evenly;
  }
  .firstField {
    padding-top: 0.5rem !important;
  }
}


@media (max-height: 750px){
  .field{
    font-size: 15px;
    padding-left: 2dvh;
    padding-right: 2dvh;
    padding-top: 2.1dvh;
  }
}

/*p.resultLine {
  margin-top: 1vh;
}*/

  input[type="text"] {
    border: 1px solid #ccc;
    /*padding: 0.5rem; CHECK LATER*/
    /*margin-top: 0.5rem !important; CHECK LATER */
    /*font-size: 1rem; CHECK LATER*/
    border-radius: 3px;
    width: 10rem;
    height: 2rem;
    text-align: center;
  }

  input[type="number"] {
    border: 1px solid #ccc;
    /*padding: 0.5rem; CHECK LATER*/
    /*margin-top: 0.5rem !important; CHECK LATER */
    /*font-size: 1rem; CHECK LATER*/
    border-radius: 3px;
    width: 10rem;
    height: 2rem;
    text-align: center;
    border: 1px solid var(--textborder-color);
    /* padding: 0.5rem; */
    font-size: 18px;
    border-radius: 3px;
    /* text-align: center; */
    color: var(--text-color);
    -moz-appearance: textfield;
  }

  input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

  @media (max-width: 600px) {
    input[type="text"] {
      font-family: 'DM Sans', sans-serif;
      height: 1.7rem;
      width: 18vw;
      font-size: 16px;
      padding: 0;
      margin: 0;
    }
    input[type="number"] {
      font-family: 'DM Sans', sans-serif;
      height: 1.7rem;
      width: 18vw;
      font-size: 16px;
      padding: 0;
      margin: 0;
    }
  }

  .resultCombined{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 11rem;
    height: 2rem !important;
    background-color:  var(--alternate-color);
    border: 1px solid var(--textborder-color);
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

@media (max-width: 600px) {
  .resultCombined{
    width: 26vw;
    height: 1.7rem !important;
    justify-content: space-between;
  }
}

.copyIcon{
  justify-self: flex-end;
  text-indent: -999px;
  height: 1rem;
  width: 1rem;
  /*margin-right: 0.5rem;*/
  fill: var(--svg-color);
}

@media (max-width: 600px) {
  .copyIcon{
    height: 0.85rem;
  }
}

.copyButton {
  border: 0;
  background-color: transparent;
  cursor: pointer;
}

  .resultField {
    width: 8.5rem !important;
    height: 0.99rem;
    background-color:  transparent;
    text-align: center;
    font-weight: 500;
    justify-self: center;
    border: 0 transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  @media (max-width: 600px) {
    .resultField{
      width: 18vw !important;
    }
  }

  .resultLine {
    display: flex;
    flex-direction: row;
    font-weight: 500;
    margin-top: 0.7rem !important;
    justify-content: center;
    align-items: center;
    gap: 1vw;
  }

  @media (max-height: 750px){}
  .resultLine{
    margin-top: 1.5vh;
  }

  @media (max-width: 600px) {
    .resultLine{
      margin-top: 1.8vh !important;
    }
  }

  /*@media (max-width: 600px){
    .resultField{
      width: 30vw !important;
    }
  }*/

  .contentButton {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 !important;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    width: 11vw;
    min-width: 8rem;
    height: 2.4rem;
    min-height: 24px;
    font-size: 18px;
    letter-spacing: 1.3px;
    font-family: 'DM Sans', sans-serif;
    color: --var(--text-color);
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    align-self: center;
}

.contentButton:hover {
  background-color: #0052cc;
}

/*button:active {
  box-shadow: #03419e 10px 0px 8px 0px inset;
}*/

@media (max-width: 600px){
  .contentButton{
    height: 3.7dvh;
    /*width: 40vw;*/
    width: 10rem !important;
    font-size: 16px;
    vertical-align: middle;
    margin-top: 1.5dvh;
  }
}

  .contentButton:active {
    box-shadow: #0343a3 0px 0px 20px 5px inset;
  }

  input[type="text"] {
    margin-top: 1vh;
  }

  @media (min-width: 601px) and (max-width: 1200px) {
    input[type="number"] {
      width: 7rem !important;
    }
    .resultCombined {
      width: 8rem !important;
    }
    .resultField {
      width: 6rem !important;
    }
  }

  .infoWrapper {
    align-self: flex-end;
    justify-self: flex-end;
    flex-shrink: 4;
}

.buttonWrapper {
    background: none !important;
    border: none !important;
    cursor: pointer;
    align-self: flex-end;
    width: 0px;
    height: 0px;
    position: relative;
    flex-shrink: 4;
    flex-basis: 0 !important;
}

@media (min-width: 601px) and (max-width: 1200px) {
    .buttonWrapper {
        /*right: -53dvw;
        top: -33dvh;*/
    }
}

@media (max-width: 600px) {
    .buttonWrapper {
        /*right: -72dvw;
        top: -33.8dvh;*/
    }
    .buttonWrapper::after {
        width: 85dvw !important;
        right: -2rem !important;
    }
}

.buttonWrapper::after {
    content: "This is a free Percentage Calculator. In the first field you can calculate the percentage difference between two numbers. Use the second field to find what percentage a number is equal to. You can use the last field to find how much x% of a number is equal to.";
    position: absolute;
    top: 1.9rem;
    right: -4rem;
    width: 23rem;
    height: 7rem;
    background-color: var(--background-color);
    z-index: 3;
    color: var(--text-color);
    background-color: var(--alternate-color);
    border-radius: 3px;
    display: none;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.buttonWrapper::before {
    content: " ";
    position: absolute;
    top: 1.3rem;
    left: 120%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--alternate-color) transparent transparent transparent;
    transform: scaleY(-1);
    display: none;
}

.buttonWrapper:hover::after, .buttonWrapper:hover::before {
    display: flex;
  }

.infoSvg {
    color: var(--svg-color);
}

.copiedToast {
    position: absolute;
    top: 50%;
    left: calc(50%-15dvw);
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: var(--box-shadow) 0px 2px 8px 0px;
    display: none;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadein {
  from {opacity: 0;}
  to {opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {opacity: 1;}
  to {opacity: 0;}
}

@keyframes fadeout {
  from {opacity: 1;}
  to {opacity: 0;}
}



