/* * {
  border: 1px solid red;
} */

body {
  box-sizing: border-box;
  margin: 0;
  background: url(../images/bg_summer.jpg) 50% 0 no-repeat,
    url(../images/bg_pattern_summer.jpg) repeat;
}

@keyframes rotate {
  from {
    transition: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

.my-element {
  animation: fadeIn 1s ease-in;
}

#logo {
  border: 7px solid rgba(104, 104, 104, 1);
  border-radius: 50%;
  position: absolute;
  margin: 0.3rem 0 0 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#logo:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  border-color: rgba(104, 104, 104, 1);
}

#partnershipName {
  font-size: 2.5rem;
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  color: #232323;
}

.gardenSign {
  font-family: 'Great Vibes';
  font-size: 1.5rem;
  text-align: right;
  color: #000;
}

.gridContainer {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr 8fr 1fr;
  grid-template-columns: 0.3fr 2fr 1fr 0.3fr;
  min-height: 97vh;
  gap: 15px 20px;
  grid-template-areas:
    'header      header      header      header'
    'spaceLeft   main        info        spaceRight'
    'footer      footer      footer      footer';
}

.logo,
.nameOfPartnership,
.infoOfPartnership,
.space-footer-right {
  background-color: #fbfbfb;
}

.header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background-color: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.logo {
  margin-right: 114px;
}

.space-header-right {
  width: 0.3fr;
  margin-left: 114px;
}

.nameOfPartnership {
  width: 2fr;
  align-self: center;
  justify-self: center;
  background-color: #fbfbfb;
}

.infoOfPartnership {
  width: 1fr;
  align-self: end;
  justify-self: start;
  background-color: #fbfbfb;
  font-size: 0.7rem;
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: left;
  display: flex;
  gap: 0.5rem;
}

button#circle {
  position: relative;
  border-radius: 50%;
  border: #686868 solid 1px;
  width: 4em;
  height: 4em;
  top: 1em;
  right: 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: none;
}

.spaceLeft {
  grid-area: spaceLeft;
}

.main {
  grid-area: main;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

.contentName {
  margin: 0 1.5rem 0.3rem;
  color: #686868;
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}

.contentPart {
  margin: 0 1.5rem 0.7rem;
  font-family: 'Charis SIL', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}

.title {
  border-bottom: 1px solid #e4e4e4;
  padding: 7px 20px 8px;
  text-align: center;
  margin: 0 0 10px 0;
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  color: #686868;
}

.moduleCustomLink {
  border-bottom: 1px solid #e5e5e5;
  margin: 0 1.5rem 0.7rem;
}

.info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0px 0px;
}

#nameChairman,
.namePersonal {
  margin: 0 1.5rem;
  text-align: center;
  font-family: 'Charis SIL', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.2rem;
  color: #232323;
  line-height: 1.2;
}

.contacts {
  margin: 0 1.5rem 0.7rem;
  text-align: center;
  font-family: 'Charis SIL', serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1rem;
  color: #232323;
}

ul.personalList {
  list-style-type: none;
}

.flexBox {
  background-color: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.flexBox:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.spaceRight {
  grid-area: spaceRight;
  opacity: 0.5;
}

.footer {
  grid-area: footer;
  display: flex;
  justify-content: start;
  color: #fff;
  background-color: #232323;
}

.footer > .flex-footer {
  margin: 1em 1em;
}

.flex-footer {
  font-family: 'Charis SIL', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.7rem;
}

.flex-footer > div {
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 0.7rem;
}

@media (max-width: 800px) {
  .gridContainer {
    margin: 0;
    font-size: 1.5rem;
    display: grid;
    grid-template-rows: 1fr 8fr 1fr;
    grid-template-columns: 0.2fr 2fr 0.2fr;
    min-height: 100vh;
    gap: 15px 20px;
    grid-template-areas:
      'header      header      header'
      'spaceLeft   main        spaceRight'
      'spaceLeft   info        spaceRight'
      'footer      footer      footer';
  }

  .info {
    display: none;
    /* position: relative;
    z-index: -1;
    top: -1000; */
  }

  .header {
    width: 100%;
    gap: 0;
  }

  button#circle {
    display: block;
  }
}

@media (max-width: 500px) {
  .gridContainer {
    margin: 0;
    font-size: 1.5rem;
    display: grid;
    grid-template-rows: 1fr 8fr 1fr;
    grid-template-columns: 0.2fr 2fr 0.2fr;
    min-height: 100vh;
    gap: 15px 20px;
    grid-template-areas:
      'header      header      header'
      'spaceLeft   main        spaceRight'
      'spaceLeft   info        spaceRight'
      'footer      footer      footer';
  }

  /* .infoOfPartnership {
    display: none;
  } */

  .header {
    justify-content: space-evenly;
  }

  button#circle {
    display: block;
  }

  /* .info {
    display: none;
    position: absolute;
    top: -100%;
    left: 50%;
  } 

  @keyframes move {
    from {
      translate: 0% 100px;
    }
    to {
      translate: 50% 110%;
    }
  }

  .info:hover {
    animation-name: move;
    animation-duration: 3s;
    animation-timing-function: ease;
    animation-delay: 2s;
    animation-iteration-count: 1;
    animation-direction: normal;
  }*/
}
