/* Global styles */
html,
body {
  height: 100%;
  margin: 0;
}

body {
	background: rgb(135, 127, 190);
    color: black;
    line-height: 130%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
	min-width: 375px;
	position: relative;
}

.content {
    flex: 1
}

.container {
	max-width: 1720px;
	margin: 0 auto;
	padding: 0 60px;
}

a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.header {
    background-color: blueviolet;
    padding: 30px 0;
    margin-bottom: 30px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__list {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer {
    background-color: blueviolet;
    padding: 30px 60px;
    width: 100%;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer .container {
    display: flex;
    gap: 20px;
    flex-direction: column-reverse;
}

/* Index styles */

.anchor {
    width: 100px;
    height: 100px;
    display: block;
    border: 2px solid black;
    background-color: black;
    margin: 0 auto;
    align-content: center;
    text-align: center;
    color:  rgb(135, 127, 190);
    border-radius: 50%;
    margin-bottom: 30px;
    margin-top: 30px;
}

.title {
    font-size: 32px;
    margin: 30px 0;
    font-weight: 700;
}

.hero-section__text p:not(p:first-child) {
    margin-top: 15px;
}

.btn {
    width: 150px;
    height: 30px;
    display: block;
    border: 2px solid black;
    background-color: black;
    margin: 0 auto;
    margin-top: 30px;
    align-content: center;
    text-align: center;
    color:  rgb(135, 127, 190);
    cursor: pointer;
    font-size: 18px;
}

.table__main  tr {
    border: 2px solid black;
}

.table__main  th {
    padding: 5px 15px;
    text-align: center;
    border: 2px solid black;
    background-color: rgb(79, 137, 155);
}

.table__main  td {
    padding: 0 5px;
    text-align: center;
    border: 2px solid black;
    align-content: center;
    background-color: white;
}

.form-section {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
}

.form-section__list {
    display: flex;
    border: 2px solid black;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 30px;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.form-section__name {
    display: flex;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    align-items: center;
}

.form-section__name input{
    font-size: 20px;
}

.form-section__btn {
    width: 150px;
    height: 30px;
    display: block;
    border: 2px solid black;
    background-color: black;
    align-content: center;
    text-align: center;
    color:  rgb(135, 127, 190);
    cursor: pointer;
    font-size: 18px;
}

/* about styles */


/* articles styles */

.hero-section__discription-title {
    margin: 10px 0;
    font-weight: 700;
    font-size: 22px;
}

.article-btn {
    width: 150px;
    height: 30px;
    display: block;
    border: 2px solid black;
    background-color: black;
    align-content: center;
    text-align: center;
    color:  rgb(135, 127, 190);
    cursor: pointer;
    font-size: 18px;
    margin-bottom: 50px;
}

/* gallery styles */
.gallery__text {
    color: black;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.gallery__list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gallery__card {
    border: 2px solid black;
    display: grid;
    justify-items: center;
    align-items: center;
    width: 30%;
    text-align: center;
    padding: 10px;
}

.gallery__img {
    width: 400px;
    height: 500px;
}

/* contacts section */

.contacts__text {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.contacts__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts__information {
    font-size: 20px;
    color: white;
    font-weight: 700;
}

/* Table homework */

.table-container {
    padding-right: calc(50vw - 250px);
    padding-left: calc(50vw - 250px);
    margin: 70px 0 100px 0;
}

.table-hw {
    background: white;
    border: 10px solid black;
    width: 100%;
    border-collapse: collapse;
    width: 600px;
    height: 600px;
    table-layout: fixed;
}

.table-hw td {
    border: 10px solid black;
    text-align: center;
    vertical-align: middle;
}

.yellow {
    background: yellow;
}

.red {
    background: red;
}

.blue {
    background: blue;
}

.black {
    background: black;
}

/* hw_7 styles */

.link-list {
    font-weight: 700;
}

.link-style {
    font-size: 16px;
    font-weight: 400;
    vertical-align: top;
    color: greenyellow;
}

/* hw_8 styles */

.hero-section > div {
    margin: 20px 0 20px 0;
}

.hero-section div div {
    background-color: thistle;
    border: 1px solid black;
}

.first-line {
    background-color: blueviolet;
    border: 2px solid black;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.first-line__box {
    width: 200px;
    height: 75px;
}

.second-line {
    background-color: rgb(42, 115, 136);
    border: 2px solid black;
    display: grid;
    padding: 10px 20px;
    grid-template-columns: 200px 1fr repeat(3, 200px);
    grid-template-rows: 75px ;
    grid-auto-flow: row;
    gap: 0 22px;
}

.second-line__item-a {
  grid-column: 1;
}
.second-line__item-b {
  grid-column: 3;
}
.second-line__item-c {
  grid-column: 4;
}
.second-line__item-d {
  grid-column: 5;
}

.third-line {
    background-color: rgb(147, 52, 158);
    border: 2px solid black;
    display: grid;
    padding: 10px 20px;
    grid-template-columns: repeat(2, 200px) 1fr repeat(2, 200px);
    grid-template-rows: 75px ;
    grid-auto-flow: row;
    gap: 0 22px;
}

.third-line__item-a {
  grid-column: 1;
}
.third-line__item-b {
  grid-column: 2;
}
.third-line__item-c {
  grid-column: 4;
}
.third-line__item-d {
  grid-column: 5;
}

.fourth-line {
    background-color: rgb(146, 102, 44);
    border: 2px solid black;
    display: grid;
    padding: 10px 20px;
    grid-template-columns: 2fr repeat(3, 200px);
    grid-template-rows: 75px 75px;
    gap: 22px;
}

.fourth-line__item-a {
    grid-column: 3;
    grid-row: span 2;
}
.fourth-line__item-b {
    grid-column: 4;
    grid-row: 1;
}
.fourth-line__item-c {
    grid-column: 4;
    grid-row: 2;
}

.fifth-line {
    background-color: rgb(166, 32, 88);
    border: 2px solid black;
    display: grid;
    padding: 10px 20px;
    grid-template-columns: 2fr repeat(3, 200px) 1fr;
    grid-template-rows: 75px 75px;
    gap: 22px;
}

.fifth-line__item-a {
    grid-column: 2;
    grid-row: span 2;
}
.fifth-line__item-b {
    grid-column: 3;
    grid-row: 1;
}
.fifth-line__item-c {
    grid-column: 3;
    grid-row: 2;
}

/* Homework 13 */

.sprite-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    margin: 50px;
    
}

.sprite-box svg {
   cursor: pointer;
   transition: 2s;
}

.checkbox {
    width: 100px;
    height: 100px;
    fill: rgb(120, 6, 61);
    stroke:rgb(180, 177, 13);
    stroke-width: 5px;
}

@keyframes spinColor {
  0% {
    transform: rotate(0deg);
    fill: rgb(120, 6, 61);
    stroke:rgb(180, 177, 13);   
  }

  25% {
    fill: blue;
    stroke: red;;
  }

  50% {
    fill: green;
    stroke: yellow;
  }

  75% {
    fill: yellow;
    stroke: green;
  }

  100% {
    transform: rotate(360deg);
    fill: rgb(120, 6, 61);
    stroke: rgb(180, 177, 13);
  }
}

.checkbox:hover {
    animation: spinColor 3s linear infinite;
}


.square {
    width: 100px;
    height: 100px;
    fill: aquamarine;
    stroke:rgb(28, 137, 68);
    stroke-width: 5px;
}

@keyframes rotates-animation {
  to { transform: rotate(90deg); 
    fill: rgb(80, 6, 30);
    stroke:rgb(237, 119, 9) }
    
    50% {
    fill: aquamarine;
    stroke:rgb(28, 137, 68);
  }
    100% {
    fill: rgb(80, 6, 30);
    stroke:rgb(237, 119, 9)
  }

}

.square:hover {
    animation: rotates-animation 2s linear infinite;
}

.cross {
    width: 100px;
    height: 100px;
    fill: rgb(233, 9, 139);
    stroke:rgb(157, 243, 8);
    stroke-width: 5px;
}

.cross:hover {
    fill: rgb(22, 1, 12);
    stroke:rgb(134, 11, 206);
}

.circle {
    width: 100px;
    height: 100px;
    stroke:rgb(108, 25, 16);
    stroke-width: 5px;
}

.circle:hover {
    stroke:rgb(244, 248, 249);
}