* {
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
}
body {
  background-color: #1d1c21;
}
body::-webkit-scrollbar {
  width: 7px;
  background-color: #494949;
  box-shadow: inset 0 0 3px black;
  border-radius: 10px;
}
body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 3px black;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #825432 0%, #684227 100%);
  border: 0.2px solid black;
}
ul {
  list-style-type: none;
}

ul li::before {
  content: "•";
  font-size: 19px;
  margin-right: 5px;
}

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 80px;
}
header > * {
  margin: auto 0;
  text-shadow: 0 0 3px white;
}
header h1 {
  color: white;
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  display: none;
}
.container-title {
  padding: 30px 0;
  width: 100%;
  height: 500px;
  background-color: #825432;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-title .my-photo {
  position: relative;
  padding-top: 190px;
}
.container-title .my-photo .Photo {
  position: relative;
  width: 470px;
  height: 600px;
  overflow: hidden;
}
.container-title .my-photo .Photo div {
  /* background-image: url(./img/photo.jpg); */
  background-color: rgba(0, 0, 0, 0.478);
  border: 2px solid black;
  background-position: top center;
  background-size: cover;
  height: 100%;
}
.container-title .my-photo .title-portfolio {
  text-shadow: 0 0 3px white;
  letter-spacing: 15px;
  color: white;
  position: absolute;
  font-size: 70px;
  right: -200px;
  bottom: 10px;
}

.container-title .my-info {
  text-shadow: 0 0 1.5px black;
  padding-left: 100px;
  width: 500px;
  color: black;
}
.container-title .my-info .my-profession {
  font-size: 35px;
}
.container-title .my-info .my-name {
  font-size: 50px;
  padding-bottom: 20px;
}
.container-title .my-info .my-descr {
  font-size: 25px;
}

.container-designer {
  width: 700px;
  margin: auto;
  padding: 250px 0;
  color: #f9ffff;
}
.container-designer .designer-title {
  text-shadow: 0 0 3px white;
  letter-spacing: 8px;
  font-size: 50px;
}
.container-designer .designer-subtitle {
  text-shadow: 0 0 2px white;
  font-size: 25px;
  padding-bottom: 30px;
}
.container-designer .designer-descr {
  text-shadow: 0 0 3px white;
  letter-spacing: 2px;
  padding-bottom: 30px;
}
.button {
  width: 280px;
  height: 50px;
  font-size: 20px;
  transition: 0.2s;
  background: rgb(254, 240, 67);
  background: linear-gradient(
    0deg,
    rgba(254, 240, 67, 1) 0%,
    rgba(236, 177, 68, 1) 100%
  );
  box-shadow: 0 0 15px rgb(254, 240, 67);
}
.button:hover {
  font-size: 25px;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 30px rgb(254, 240, 67);
}
.button:active {
  background: linear-gradient(
    180deg,
    rgba(254, 240, 67, 1) 0%,
    rgba(236, 177, 68, 1) 100%
  );
}

.container-gallery {
  margin: auto;
  width: 1170px;
  height: auto;
  padding-bottom: 100px;
}
.container-gallery .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.container-gallery .cards .card {
  margin: 10px;
  width: 20em;
  height: 20em;
  border: 3px solid white;
  box-shadow: 0 0 15px white;
  overflow: hidden;
  color: white;
  position: relative;
}

.container-gallery .cards .card .info {
  position: absolute;

  transition: 0.3s ease-out;
  width: 100%;
  height: 100%;
  bottom: -100%;
  background-color: #1d1c21c9;
}
.container-gallery .cards .card:hover .info {
  bottom: 0;
}
/* .container-gallery .cards .card:active img {
  position: absolute;
} */
.container-gallery .cards .card img {
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

.container-gallery .cards .card .info h3 {
  text-shadow: 0 0 2px white;
  padding: 30px 50px;
}
.container-gallery .cards .card .info p {
  text-shadow: 0 0 3px white;
  padding: 10px 25px 0 25px;
}
.container-gallery .cards .card .info a {
  width: 200px;
  height: 40px;
  left: 50%;
  bottom: 2%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  position: absolute;
}
.container-gallery .cards .card .info a button {
  transition: 0.3s ease;
  border: solid #f9ffff 2px;
  background: none;
  background-color: #9c8d9768;
  color: white;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.container-gallery .cards .card .info a:hover button {
  background-color: #9c8d97;
  box-shadow: 0 0 3px white;
  text-shadow: 0 0 3px white;
}

footer {
  background-color: #825432;
  width: 100%;
  height: 630px;
  display: flex;
  justify-content: space-evenly;
}
footer .container-email {
  padding: 100px 0;
  width: 450px;
  display: flex;
  flex-wrap: wrap;
}
footer .container-email > div {
  width: 100%;
  position: relative;
}
footer .container-email input,
footer .container-email textarea,
footer .container-email button {
  padding: 5px 0 5px 5px;
  font-size: 20px;
  width: 100%;
  z-index: 2;
}
footer .container-email label {
  pointer-events: none;
}
footer .container-email label .text {
  letter-spacing: 2px;
  transition: 0.3s ease;
  position: absolute;
  font-size: 20px;
  top: 6px;
  margin-left: 5px;
  z-index: 0;
}
footer .container-email input:focus + label .text,
footer .container-email input:not([value=""]) + label .text,
footer .container-email textarea:focus + label .text,
footer .container-email textarea:not([value=""]) + label .text {
  letter-spacing: 5px;
  font-size: 15px;
  top: -15px;
}
footer .container-email input {
  background: none;
  border: none;
  border-bottom: 2px solid black;
  height: 25px;
  outline: none;
}
footer .container-email input::-webkit-input-placeholder {
  background-color: transparent;
}
footer .container-email input:focus,
footer .container-email textarea:focus {
  box-shadow: 0 3px 3px -3px rgb(0, 0, 0);
}
footer .container-email textarea {
  background: none;
  outline: none;
  resize: none;
  border: none;
  height: 150px;
  border-bottom: 2px solid black;
  margin: auto;
}
footer .container-email textarea::-webkit-scrollbar {
  height: 50%;
  width: 4px;
}
footer .container-email textarea::-webkit-scrollbar-track {
  box-shadow: inset 0 0 3px black;
}
footer .container-email textarea::-webkit-scrollbar-thumb {
  background: black;
  border: 0.2px solid black;
}
footer .container-email button {
  cursor: pointer;
  transition: 0.2s ease-in;
  height: 40px;
  border: 2px solid black;
  background: none;
}
footer .container-email button:hover {
  letter-spacing: 1px;
  box-shadow: 0 0 4px rgb(0, 0, 0);
  text-shadow: 0 0 1px rgb(0, 0, 0);
}

footer .container-contacts {
  width: 600px;
  padding: 100px 0;
}
footer .container-contacts h1 {
  font-size: 40px;
  font-weight: 450;
  letter-spacing: 3px;
}
footer .container-contacts .links {
  padding-top: 20px;
  width: 300px;
  display: flex;
}
footer .container-contacts .links a {
  padding-right: 50px;
}
footer .container-contacts .links a:hover svg {
  transition: 0.3s ease;
  opacity: 0.3;
}
footer .container-contacts .links {
  padding-bottom: 150px;
}
footer .container-contacts .container-nums {
  font-size: 25px;
  letter-spacing: 3px;
}
footer .container-contacts .container-nums h3 {
  font-weight: 350;
  padding: 10px;
}

@media (max-width: 1070px) {
  header h1 {
    display: block;
  }
  .container-title .my-photo {
    padding: 0;
  }
  .container-title .my-photo .Photo {
    width: 370px;
    height: 500px;
  }
  .container-title .my-photo .title-portfolio {
    display: none;
  }
  .container-title .my-info {
    padding: 50px 20px;
    text-align: center;
  }
  .container-title .my-info .my-profession {
    font-size: 1.5em;
  }
  .container-title .my-info .my-name {
    font-size: 2.5em;
    padding-bottom: 20px;
  }
  .container-title .my-info .my-descr {
    text-align: justify;
    font-size: 1.2em;
  }
  .container-title {
    flex-wrap: wrap;
    height: auto;
  }
  .container-designer {
    width: 80%;
    padding: 150px 0 100px 0;
  }
  .container-designer .designer-title {
    text-shadow: 0 0 3px white;
    letter-spacing: 5px;
    font-size: 2.5em;
  }
  .container-designer .designer-subtitle {
    text-shadow: 0 0 2px white;
    font-size: 1.5em;
    padding: 10px 0;
  }
  .container-designer .designer-descr {
    text-align: justify;
    text-shadow: 0 0 3px white;
    letter-spacing: 2px;
    padding-bottom: 20px;
  }
  .container-gallery {
    margin: auto;
    width: auto;
    height: auto;
    padding-bottom: 100px;
  }
  .container-gallery .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .container-gallery .cards .card {
    margin: 10px;
    width: 10em;
    height: 10em;
    border: 3px solid white;
    box-shadow: 0 0 15px white;
    overflow: hidden;
    color: white;
    position: relative;
  }

  .container-gallery .cards .card .info {
    position: absolute;

    transition: 0.3s ease-out;
    width: 100%;
    height: 100%;
    bottom: -100%;
    background-color: #1d1c21c9;
  }
  .container-gallery .cards .card:hover .info {
    bottom: 0;
  }
  .container-gallery .cards .card img {
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
  }

  .container-gallery .cards .card .info h3 {
    font-size: 1em;
    text-shadow: 0 0 2px white;
    padding: 10px auto;
  }
  .container-gallery .cards .card .info p {
    text-shadow: 0 0 3px white;
    display: none;
    padding-bottom: 5px;
  }
  .container-gallery .cards .card .info a {
    width: 200px;
    height: 50%;
    left: 50%;
    bottom: 0;
    margin-right: -50%;
    transform: translate(-50%, 0);
    position: absolute;
  }
  .container-gallery .cards .card .info a button {
    transition: 0.3s ease;
    border: none;
    border-top: solid #f9ffff 1px;
    background: none;
    background-color: #9c8d9768;
    color: white;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  footer {
    background-color: #825432;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
  }
  footer .container-email {
    padding: 100px 0;
    width: 80%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
  }
  footer .container-email > div {
    width: 100%;
    height: auto;
    margin: 15px 0;
  }
  footer .container-email input,
  footer .container-email textarea,
  footer .container-email button {
    padding: 5px 0 0 5px;

    font-size: 20px;
    width: 100%;
    z-index: 2;
  }
  footer .container-email button {
    min-height: 80px;
    padding: 0;
  }
  footer .container-email label {
    pointer-events: none;
    margin: 0;
  }
  footer .container-email label .text {
    letter-spacing: 2px;
    transition: 0.3s ease;
    position: absolute;
    font-size: 20px;
    top: 6px;
    margin-left: 5px;
    z-index: 0;
  }
  footer .container-email input:focus + label .text,
  footer .container-email input:not([value=""]) + label .text,
  footer .container-email textarea:focus + label .text,
  footer .container-email textarea:not([value=""]) + label .text {
    letter-spacing: 5px;
    font-size: 15px;
    top: -15px;
  }
  footer .container-email input {
    background: none;
    border: none;
    border-bottom: 2px solid black;
    height: 25px;
    outline: none;
  }
  footer .container-email input::-webkit-input-placeholder {
    background-color: transparent;
  }
  footer .container-email input:focus,
  footer .container-email textarea:focus {
    box-shadow: 0 3px 3px -3px rgb(0, 0, 0);
  }
  footer .container-email textarea {
    background: none;
    outline: none;
    resize: none;
    border: none;
    height: 150px;
    border-bottom: 2px solid black;
    margin: auto;
  }
  footer .container-email textarea::-webkit-scrollbar {
    height: 50%;
    width: 4px;
  }
  footer .container-email textarea::-webkit-scrollbar-track {
    box-shadow: inset 0 0 3px black;
  }
  footer .container-email textarea::-webkit-scrollbar-thumb {
    background: black;
    border: 0.2px solid black;
  }
  footer .container-email button {
    cursor: pointer;
    transition: 0.2s ease-in;
    height: 40px;
    border: 2px solid black;
    background: none;
  }
  footer .container-email button:hover {
    letter-spacing: 1px;
    box-shadow: 0 0 4px rgb(0, 0, 0);
    text-shadow: 0 0 1px rgb(0, 0, 0);
  }

  footer .container-contacts {
    text-align: center;
    width: 600px;
    padding: 100px 0;
  }
  footer .container-contacts h1 {
    font-size: 40px;
    font-weight: 450;
    letter-spacing: 3px;
  }
  footer .container-contacts .links {
    margin: auto;
    padding-top: 20px;
    width: 300px;
    display: flex;
  }
  footer .container-contacts .links a {
    padding: 0 25px 0 25px;
  }

  footer .container-contacts .links {
    padding-bottom: 150px;
  }
  footer .container-contacts .container-nums {
    font-size: 25px;
    letter-spacing: 3px;
  }
  footer .container-contacts .container-nums h3 {
    font-weight: 350;
    padding: 10px;
  }
}
