@font-face {
    font-family: Shabnam;
    src: url(Shabnam-Bold.woff2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #C0D8C0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Shabnam;
    transition: .5s;
}

.bx {
    font-size: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #D3DEDC;
    border-radius: 15px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, .1);
    max-width: 300px;
    width: 100%;
    transform: .5s;
}

.card__header {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.card__toggle {
    display: flex;
    width: 40px;
    height: 40px;
    position: relative;
    background: #CCD1E4;
    border-radius: 50%;
    transition: .5s;
    text-decoration: none;
}

.card__toggle .bx {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .5s;
}

.bx-moon {
    color: #459d9f;
}

.bx-sun {
    color: #FEECE9;
    opacity: 0;
    visibility: hidden;
}

.card__img {
    display: flex;
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    margin-bottom: 25px;
}

.card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__name {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #459d9f;
    margin-bottom: 10px;

}

.card__position {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #459d9f;
    margin-bottom: 25px;
    transition: .5s;
}

.card__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card__item {
    padding: 0 10px;
}

.card__icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: #CCD1E4;
    border-radius: 50%;
    color: #459d9f;
    transition: .5s;
    text-decoration: none;
}

.card__icon:hover {
    transform: translateY(-5px);
}

.is-dark {
    background: #041C32;
}

.is-dark .card {
    background: #04293A;
}

.is-dark .card__toggle {
    background: #30475E;
}

.is-dark .bx-moon {
    opacity: 0;
    visibility: hidden;
}

.is-dark .bx-sun {
    opacity: 1;
    visibility: visible;
}

.is-dark .card__position {
    color: #459d9f;
}

.is-dark .card__icon {
    background: #30475E;
    color: #FEECE9;
}
