* {
  margin:0;
  padding:0;
  box-sizing: border-box;
}

header {
  height: 64px;
  background-color: rgba(242, 242, 242, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#dropDownIcon {
  display: none;
}

#navigation {
  width: 200px;
  margin-right: 16px;
  display: flex;
  justify-content: space-between;
}

#navigation a {
  color:rgba(29, 53, 87, 1);
  text-decoration: none;
  font-family: "Open Sans";
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
}

#logoAsLink {
  display: flex;
  align-items: center;
}

#supportUkrainebanner {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(84, 116, 201, 1);
  color: rgba(242, 242, 242, 1);
  font-family: "Open Sans";
  font-style: normal;
  font-size: 14px;
}

#supportUkrainebanner p {
  margin-right: 10px;
}

#flagOfUkraine {
  width: 30px;
  height: auto;
  margin: 10px;
}

#linkToTheSupport {
  color: rgba(242, 242, 242, 1);
}

#keymLogo {
  margin-left: 8px;
  width: 132px;
  height: 32px;
}

#firstBlock {
  height: 732px;
  background: linear-gradient(180deg, #1D3557 0%, rgba(29, 53, 87, 0) 139.7%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#mainPhrase {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-size: 32px;
  line-height: 54px;
  margin-bottom: 32px;
  color:rgba(242, 242, 242, 1);
}

#whiteLine {
  height: 100px;
  width: 1040px;
  background-color: rgba(242, 242, 242, 1);
  filter: drop-shadow(0px 4px 7px rgba(0, 0, 0, 0.25));
  border-radius: 8px;
  display: grid;
  grid-template: 1fr / 1fr 1fr 0.3fr 0.1fr 0.6fr;
}

#passwordArea {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 49px;
  grid-area: 1 / 2 / 2 / 3;
  background-color: rgba(242, 242, 242, 1);
  text-align: center;
  justify-self: center;
  align-self: center; 
}

::selection {
  color: none;
  background: none;
}

button {
  background-color: rgba(230, 57, 70, 1);
  color: rgba(242, 242, 242, 1);
  border-radius: 8px;
  width: 156px;
  height: 54px;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 49px;
  cursor: pointer;
  border: none;
  grid-area: 1 / 5 / 2 / 6;
  justify-self: center;
  align-self: center;
}

button:hover {
  background-color: rgba(242, 242, 242, 1);
  color: rgba(230, 57, 70, 1);
  outline: 2.4px solid rgba(230, 57, 70, 1);
}

#generateButtonForMobile {
  display: none;
}

#checkMark {
  grid-area: 1 / 3 / 2 / 4;
  align-self: center;
  justify-self: right;
  margin-right: 24px;
  opacity: 0;
}

#copyButton {
  grid-area: 1 / 4 / 2 / 5;
  cursor: pointer;
  align-self: center;
  justify-self: right;
}

#lineWithRangeandNumbers {
  display: grid;
  grid-template: 50px / 600px 56px;  
  margin-top: 16px;
  margin-bottom: 16px;
}

#charachterRange {
  -webkit-appearance: none;
  grid-area: 1 / 1 / 2 / 2;
  align-self: center;
  width: 600px;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(242, 242, 242, 1);
}

#charachterRange::-webkit-slider-thumb {
  -webkit-appearance: none; 
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background-color: rgba(29, 53, 87, 1);
  cursor: pointer;
}

/*For Firefox*/
#charachterRange::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background-color: rgba(29, 53, 87, 1);
  cursor: pointer;
}

#numbersFromRange {
  grid-area: 1 / 2 / 2 / 3;
  align-self: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin-left: 12px;
  width: 44px;
  height: 44px;
  background-color: rgba(242, 242, 242, 1);
  font-family: "Open Sans";
  font-style: normal;
  font-size: 18px;
  line-height: 18px;
  font-weight: 600;
}

#lineWithCheckboxes {
  display: flex;
  justify-content: center;
}

.boxForCheckbox {
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-right: 20px;
  font-family: 'Open Sans';
  font-weight: 600;
  font-size: 20px;
  color:rgba(242, 242, 242, 1);
 }

.boxForCheckbox label {
  margin-left: 8px;
 }

 .checkmarkTwo {
  appearance: none;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background-color:rgba(242, 242, 242, 1);
  transition: background-image 5s;
 }

 .checkmarkTwo:checked {
  background-image: url("images/checkmark.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#secondBlock {
  height: 616px;
  background-color: rgba(242, 242, 242, 1);
}

#mainPhraseTwo {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-size: 32px;
  line-height: 54px;
  text-align: center;
  padding-top: 24px;
  margin-bottom: 24px;
}

.textBlock {
  max-width: 1264px;
  margin: 0 auto;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
}

footer {
  height: 67px;
  background-color: rgba(29, 53, 87, 1);
  color: rgba(242, 242, 242, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

@media only screen and (max-width: 1180px) {
  .textBlock {
    font-size: 20px;
    line-height: 32px;
    width: 88%;
    text-align: justify;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 1024px) {
  #firstBlock {
    height: 548px;
    justify-content: center;
  }

  #mainPhrase {
    margin: 0 auto;
    margin-bottom: 32px;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
  }
  
  #whiteLine {
    width: 70%;
    height: 64px;
    grid-template: 1fr / 1fr 1fr 0.2fr 0.1fr 0.7fr;
  }

  #passwordArea {
    font-size: 15px;
    line-height: 51px;
    grid-area: 1 / 2 / 2 / 3;
  }

  button {
    width: 86%;
    height: 44px;
    font-size: 16px;
    line-height: 16px;
    grid-area: 1 / 5 / 2 / 6;
    justify-self: center;
    align-self: center;
  }

  button:hover {
    background-color:rgba(230, 57, 70, 1); 
    color: rgba(242, 242, 242, 1);
    outline: none;
  }

  #copyButton {
    grid-area: 1 / 4 / 2 / 5;
    cursor: pointer;
    align-self: center;
    justify-self: center;
    width: 26px;
    height: 26px;
  }

  #checkMark {
    grid-area: 1 / 3 / 2 / 4;
    justify-self: right;
    margin-right: 10px;
  }

  #lineWithRangeandNumbers {
    display: grid;
    grid-template: 50px / 300px 56px; 
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  
  #charachterRange {
    -webkit-appearance: none;
    grid-area: 1 / 1 / 2 / 2;
    width: 300px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(242, 242, 242, 1);
  }

  .boxForCheckbox {
    margin-top: 0;
  }

  #mainPhraseTwo {
    margin: 0 auto;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    padding-top: 18px;
    margin-bottom: 18px;
  }

  #secondBlock {
    height: 574px;
  }

  footer {
    font-size: 16px;
  }
}

@media only screen and (max-width: 768px) {
  #firstBlock {
    height: 516px;
  }
  
  #whiteLine {
    width: 91%;
    grid-template: 1fr / 1fr 1fr 0.2fr 0.1fr 0.7fr;
  }

  button {
    font-size: 18px;
    line-height: 18px;
    grid-area: 1 / 5 / 2 / 6;
  }

  .boxForCheckbox {
    font-size: 18px;
    margin-top: 16px;
   }
  
  .textBlock {
    font-size: 16px;
    line-height: 24px;
  }

  #secondBlock {
    height: 474px;
  }

  footer {
    font-size: 12px;
  }
}

@media only screen and (max-width: 480px) {

  #supportUkrainebanner {
    height: 64px;
  }

  #supportUkrainebanner p {
    font-size: 12px;
    text-align: justify;
  }

  #firstBlock {
    height: 516px;
    background: linear-gradient(180deg, #1D3557 0%, rgba(29, 53, 87, 0) 139.7%);
  }

  #mainPhrase {
    width: 300px;
  }

  #mainPhraseTwo {
    width: 82%;
  }
  
  #whiteLine {
    width: 88%;
    grid-template: 1fr / 1.3fr 36px 26px 64px;
  }

  #passwordArea {
    grid-area: 1 / 1 / 2 / 2;
  }

  button {
    display: none;
  }

  #generateButtonForMobile {
    background-color: rgba(230, 57, 70, 1);
    color: rgba(242, 242, 242, 1);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    border: none;
    grid-area: 1 / 4 / 2 / 5;
    justify-self: center;
    align-self: center;
    display: block;
  }

  #dropDownIcon {
    display: block;
    margin-right: 10px;
  }

  #navigation {
    display: none;
  }

  #copyButton {
    grid-area: 1 / 3 / 2 / 4;
  }

  #checkMark {
    grid-area: 1 / 2 / 2 / 3;
    margin-right: 10px;
  }

  #lineWithRangeandNumbers {
    grid-template: 50px / 200px 56px;
    margin-bottom: 8px;
  }

  #charachterRange {
    width: 200px;
  }

  #lineWithCheckboxes {
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: 0 auto;
  }

  .boxForCheckbox {
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
    font-size: 18px;
  }

  #secondBlock {
    height: 774px;
  }
}
