:root {
    --white: #fff;
    --black: #242424;
    --muted: #555;
    --gray: #d6d6d6;
    --lightgray: #fafafa;
    --green: #22c55e;
    --red: #e82c1c;
    --red-hover: #b8190a;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


* {
    box-sizing: border-box;
}

img {
    width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--lightgray);
    color: var(--black);
    font-size: 16px;
    width: 100vw;
    background: url(img/bg-desk.webp) no-repeat center center fixed;
    background-size: cover;
    position: relative;
}
@media screen and (max-width: 991px) {
    body {
        background: url(img/bg-mob.webp) no-repeat center center fixed;
        background-size: cover;
    }
}
body:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}
.container {
    width: calc(100% - 2rem);
    max-width: 400px;
    border: 1px solid var(--gray);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    background: var(--white);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.profile {
    margin: 2rem auto 1rem;
}
.profile-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.25rem 1rem;
    width: 100%;
    font-weight: 600;
}
.profile-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
}
.profile-header-avatar-online {
    display: flex;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
    margin-left: 0.5rem;
    position: absolute;
    bottom: 0;
    right: 0;
}
.profile-header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.profile-image {
    width: 100%;
}
.profile-image img {
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
}

.profile-info {
    background: var(--lightgray);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    margin-top: -1rem;
    position: relative;
    
}
.profile-social-buttons {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    right: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.profile-social-buttons a {
    border: 1px solid var(--gray);
    background: var(--white);
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--red);
    transition: all 0.2s linear;
}
.profile-social-buttons a:hover {
    background: var(--red-hover);
    color: var(--white);
    border: 1px solid var(--red-hover);
}
.profile-info-name {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem;
    display: flex;
    align-items: center;
}
.profile-info-name-online {
    display: flex;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
    margin-left: 0.5rem;
}
.profile-info-name-online::after,
.profile-header-avatar-online::after {
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    background: var(--green);
    animation: onlinePulse 1.8s infinite;
    opacity: .6;
}
@keyframes onlinePulse{
    0%{
        transform: scale(1);
        opacity: .6;
    }
    70%{
        transform: scale(2.5);
        opacity: 0;
    }
    100%{
        opacity: 0;
    }
}
.profile-info-about {
    font-size: 0.875rem;
    color: var(--muted);
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.profile-info-about div {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 100rem;
    background: var(--white);
    border: 1px solid var(--gray);
}
.profile-info-about img {
    margin-right: 0.35rem;
    width: 16px;
    height: 16px;
}

.controll {
    padding: 0;
    background: transparent;
    border: 0;
    display: grid;
    grid-template-columns: 4fr 2fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 0;
}
.btn-real {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 0.35rem;
    transition: all 0.2s linear;
}
.btn-real:hover {
    background: var(--red-hover);
    border: 1px solid var(--red-hover);
}
.btn-outline {
    background: var(--white);
    color: var(--red);
    border: 1px solid var(--red);
}
.btn-outline:hover {
    background: var(--red-hover);
    color: var(--white);
}


@media screen and (max-width: 767px) {
    .profile {
        margin: 1rem auto;
    }
}