*{
    padding: 0;
    margin: 0;
    border: 0;
}
header {
    height: 58px;
    background-color: #a3c6c0;
    border: 1px solid #b5b7ba;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-decoration: none;
    border-radius: 0px 0px 20px 20px;
}

header a {
    font-size: 20px;
    color: #4d4d4d;
    text-decoration: none;
}

body {background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
	height: 100vh;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}

}
main {
    margin-top: 200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5em;
    min-height: 50%;
    display: -webkit-flex;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-decoration: none;
}
/*Всплывающая фотка*/
#related {
    position: fixed;
    right: 0px;
    height: 100%;
    width: 250px;
    overflow: hidden;
}

.related_lastvideo {
    display: none;
    position: absolute;
    height: 100px;
    width: 20px;
    margin-top: -200px;
    right: 0px;
    cursor: pointer;
    opacity: 0;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.related_lastvideo:hover {

    width: 178px;
    height: 178px;
}

@media only screen and (max-device-width: 480px) {
    .related_lastvideo {
        display: none;
    }
}

/*Всплывающая фотка*/

h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 40px;
    font-weight: 300;
    color: #2e353d;
    text-align: center;
}

main img {
    width: 450px;
}

a {
    color: inherit;
}

/*какая-то канитель с оформлением инфы*/
a:hover {
    color: rgb(58, 166, 174);
    transition: color 0.5s linear;
}

.b-page {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 50px 0;
    display: -webkit-flex;
    display: flex;
    
    }

.b-content {
    width: 100%;
    max-width: 300px;
    margin: auto;
    background-color: white;
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    transform: translate(30px, 20px) rotate(10deg);
}

.b-name {
    /*display: inline-block;*/
    font-size: 2em;
    line-height: 1em;
    margin-bottom: 15px;
    position: relative;
    padding: 0 20px;
}

.b-name a:hover {
    color: inherit;
}

.b-circle {
    width: 42px;
    height: 42px;
    border: 4px solid #D24D57;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    left: 100%;
    margin-left: 0px;
    bottom: 100%;
    margin-bottom: -10px;
    font-size: 18px;
    line-height: 42px;
    font-weight: normal;
}

.b-circle:hover {
    border-color: #E82736;
    
}

.b-cmtt {
    margin-bottom: 15px;
}

.b-cmtt__tj {
    border-bottom-color: #EB9532;
}

.b-cmtt__vc {
    border-bottom-color: #DB0A5B;
}

.b-cmtt__dtf {
    border-bottom-color: #4183D7;
}

.b-cmtt__spark {
    border-bottom-color: #2C3E50;
}

.b-email {
    margin-bottom: 15px;
}

.b-social {
    font-size: 14px;
}

.b-social__item:after {
    content: ' ? ';
}

.b-social__item:last-child:after {
    content: '';
}

.b-social__item a {
    border-bottom: 0;
}

@media only screen and (min-width : 320px) and (max-width : 374px) and (orientation : portrait) {

    .b-cmtt,
    .b-email {
        font-size: 80%;
    }

    .b-social {
        font-size: 12px;
    }

    .b-name {
        font-size: 1.4em;
    }
}

@media only screen and (min-width : 375px) and (max-width : 413px) and (orientation : portrait) {

    .b-cmtt,
    .b-email {
        font-size: 90%;
    }

    .b-name {
        font-size: 1.6em;
    }
}

.b-circle {
    animation: animationFrames linear 3s;
    animation-iteration-count: infinite;
    transform-origin: 50% 50%;
    -webkit-animation: animationFrames linear 3s;
    -webkit-animation-iteration-count: infinite;
    -webkit-transform-origin: 50% 50%;
    -o-animation: animationFrames linear 3s;
    -o-animation-iteration-count: infinite;
    -o-transform-origin: 50% 50%;
}

@keyframes animationFrames {

    0%,
    44% {
        transform: rotate(0) scaleX(1) scaleY(1)
    }

    4%,
    8% {
        transform: rotate(-3deg) scaleX(.8) scaleY(.8)
    }

    12%,
    20%,
    28%,
    36% {
        transform: rotate(3deg) scaleX(1.2) scaleY(1.2)
    }

    16%,
    24%,
    32% {
        transform: rotate(-3deg) scaleX(1.2) scaleY(1.2)
    }

    40% {
        transform: rotate(0) scaleX(1.2) scaleY(1.2)
    }
}

@-webkit-keyframes animationFrames {

    0%,
    44% {
        -webkit-transform: rotate(0) scaleX(1) scaleY(1)
    }

    4%,
    8% {
        -webkit-transform: rotate(-3deg) scaleX(.8) scaleY(.8)
    }

    12%,
    20%,
    28%,
    36% {
        -webkit-transform: rotate(3deg) scaleX(1.2) scaleY(1.2)
    }

    16%,
    24%,
    32% {
        -webkit-transform: rotate(-3deg) scaleX(1.2) scaleY(1.2)
    }

    40% {
        -webkit-transform: rotate(0) scaleX(1.2) scaleY(1.2)
    }
}

@-o-keyframes animationFrames {

    0%,
    44% {
        -o-transform: rotate(0) scaleX(1) scaleY(1)
    }

    4%,
    8% {
        -o-transform: rotate(-3deg) scaleX(.8) scaleY(.8)
    }

    12%,
    20%,
    28%,
    36% {
        -o-transform: rotate(3deg) scaleX(1.2) scaleY(1.2)
    }

    16%,
    24%,
    32% {
        -o-transform: rotate(-3deg) scaleX(1.2) scaleY(1.2)
    }

    40% {
        -o-transform: rotate(0) scaleX(1.2) scaleY(1.2)
    }
}

/*какая-то канитель с оформлением инфы*/
.items {
    display: grid;
    grid-template-columns: repeat(3, 484px);
    gap: 24px;
    margin-top: 60px;
    position: absolute center;
    justify-content: space-around;
    align-items: center;
}
.item {
    padding: 30px;
    background: #a3c6c0;
    border-radius: 6px;
    border: 1px solid a3c6c0;
    margin-bottom: 60px;
}
.item-image {
    height: 250px;
    margin-bottom: 110px;
}

.item-image img {
    max-width: 100%;
}

.item-image iframe {
    max-width: 100%;
    max-height: 100%;
}
footer {
    height: 58px;
    background-color: lightsteelblue;
    border: 1px solid #b5b7ba;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-decoration: none;
    border-radius: 20px;
    margin-top: 200px;
}