@font-face {
  font-family: "Oswald";
  src: url("fonts/oswaldregular.woff2") format("woff2"), url("fonts/oswaldregular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Oswald";
  src: url("fonts/oswaldmedium.woff2") format("woff2"), url("fonts/oswaldmedium.woff") format("woff");
  font-weight: 500;
  font-style: normal; 
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.title-reset {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

.title-middle {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 24px;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
}

body {
  margin: 0 auto;
  padding: 0;
  min-width: 320px;
  background-color: #eeeff0;
  font-family: "Oswald", "Arial", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #372f2d;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.main-header {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 30px;
  padding-bottom: 0;
}

.promo {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 5px 0;
  text-align: center;
  border-bottom: 1px solid #956b38;
}

.promo__title {
  margin-bottom: 15px;
  padding-top: 15px;
  font-size: 36px;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
}

.promo__slogan {
  margin: 0;
  margin-bottom: 10px;
  padding: 0;
  font-size: 20px;
  line-height: 1.25;
}

.index-main {
  margin: 0 auto;
  padding: 30px;
  padding-top: 10px;
  text-align: center;
}

.nodes, .nomination, .contact {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
}

.nodes__list {
  box-sizing: border-box;
  margin: 0 auto;
}

.nodes__item {
  position: relative;
  box-sizing: border-box;
  margin: 20px 0;
  padding: 0 25px;
  padding-top: 90px;
  background-color: #cbe2ef;
  border-radius: 10px;
}

.nodes__item::before {
  content: "";

  position: absolute;
  top: 15px;
  left: calc(50% - 33px);

  width: 66px;
  height: 66px;

  border-radius: 50%;
  background-color: #85c1e5;
}

.nodes__item--knight::after {
  content: "";

  position: absolute;
  top: 17px;
  left: calc(50% - 27px);

  width: 60px;
  height: 60px;

  background-image: url("img/knight_good.svg");
  background-repeat: no-repeat;
}

.nodes__item--rook::after {
  content: "";

  position: absolute;
  top: 17px;
  left: calc(50% - 21px);

  width: 60px;
  height: 60px;

  background-image: url("img/rook.svg");
  background-repeat: no-repeat;
}


.nodes__item__data-wrapper {
  box-sizing: border-box;
}

.nodes__item__data,
.nodes__item__value,
.nodes__item__field {
  margin: 0;
  padding: 0;
  border: 0;
}

.nodes__item__value {
  margin-bottom: 10px;
  color: #555555;
}

.nodes__item__field, .rank-link-style {
  font-size: 18px;
  line-height: 1.5;
  word-break: break-all;
  min-height: 18px;
}


.rank-link-style {
  color: #372f2d;
  cursor: pointer;
}

.address-wrapper {
  display: flex;
  justify-content: center;
}

.copy-button {
  display: block;
  box-sizing: border-box;
  margin: 0 10px;

  padding: 3px;
  border: 0;

  min-height: 40px;
  min-width: 40px;

  color: #372f2d;
  background-color: transparent;

  cursor: pointer;
}

.nodes__item__data-wrapper {
  box-sizing: border-box;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #956b38;
}

.nodes__item__data-wrapper:last-child {
  border-bottom: 0;
}

.button-blue {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 10px;
  border: 0;
  border-radius: 2px;

  text-transform: uppercase;
  font-family: "Oswald", "Arial", sans-serif;
  font-size: 16px;
  text-align: center;
  font-weight: 400;

  min-height: 40px;
  width: 260px;

  color: #372f2d;
  background-color: #5584b1;
}

.nomination-button {
  margin-top: 20px;
  margin-bottom: 25px;
}


.nomination-text {
  margin: 10px auto;
  line-height: 1.5;
}

.nomination-link, .rank-link-style {
  color: #024f94;
  text-decoration: underline;
}

.social__link {
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-text {
  display: block;
  box-sizing: border-box;
  margin-left: 5px;
  color: #372f2d;
}

@media (min-width: 768px) {

  body {
    font-size: 20px;
  }

  .title-middle {
    font-size: 30px;
  }

  .promo__title {
    margin-bottom: 15px;
    padding-top: 15px;
    font-size: 44px;
    line-height: 1.5;
    text-align: center;
    font-weight: 700;
  }
  
  .promo__slogan {
    margin: 0;
    margin-bottom: 10px;
    padding: 0;
    font-size: 24px;
  }  

  .nodes__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .nodes__item {
    width: 35%;
    margin: 20px 15px;
  }

  .nodes__item__field, .rank-link-style {
    font-size: 22px;
    min-height: 30px;
  }

  .button-blue {
    font-size: 20px;
  }

  .social__link--element svg {
    width: 50px;
    height: 50px;
  }

  .contact-text {
    font-size: 20px;
  }
  
}

@media (min-width: 1024px) {
  .copy-button:hover rect{
    stroke: #956b38;
  }

  .nomination-button:hover {
    background-color: #68a0d4;
  }
}