@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --black: #1f1f1f;
    --blue: #04D9FF;
    --white: #FFFFFF;
}

body {
    background-color: var(--black);
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    display: flex;
}

@keyframes sidebarAnimation {
    from {left: -40%;}
    to {left: 0;}
}

.sidebar {
    width: 32%;
    height: 1000vh;
    background-color: #111111;
    border-right: 3px solid #303030;
    box-shadow: 0 0 30px #21beda;
    transition: 0.2s ease;
    position: relative;
    animation-name: sidebarAnimation;
    animation-duration: 0.4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
}

.sidebar-profile {
    min-height: 130px;
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-direction: column;
    border-bottom: 2px solid #303030;
    position: relative;
}

.user-profile {
    margin-left: 5%;
    width: 95%;
    border-left: 2px solid #303030;
}

.family {
    border: none;
}

.sidebar-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 150px;
    padding: 0px 40px 0px 30px;
    background-color: #1d1d1d;
}

.sidebar-user-profile-top {
    height: 130px;
}

.family-top {
    border-bottom: 2px solid #303030;
}

.sidebar-profile-top-left {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
}

.sidebar-user-profile-top-left {
    column-gap: 18px;
}

.sidebar-profile-top-left-name {
    color: #e9e9e9;
    font-size: 22px;
    font-weight: 500;
}

.sidebar-user-profile-top-left-name {
    font-size: 20px;
}

.sidebar-profile-top-right-icon {
    color: #7e7e7e;
    font-size: 24px;
}

.sidebar-profile-bottom {
    height: 60px;
    width: 100%;
    background-color: #1d1d1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 25px 0px 40px;
}

.family-bottom {
    width: 100%;
}

.sidebar-profile-bottom-situation {
    font-size: 18px;
    font-weight: 500;
    color: #e9e9e9;
    position: relative;
    width: 70px;
    padding-left: 10px;
}

.sidebar-profile-bottom-situation-color {
    height: 12px;
    width: 12px;
    border-radius: 100%;
    background-color: #00e632;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0;
}

.sidebar-profile-bottom-remaining-time {
    color: #7e7e7e;
    font-weight: 500;
    text-align: center;
}

.sidebar-profile-top-right-warning {
    color: #d33535;
    font-size: 25px;
    margin-right: 10px;
}

@keyframes removeBtn {
    from{opacity: 0; right: 25px;}
    to{opacity: 1; right: -25px;}
}

.sidebar-profile-buttons {
    animation-name: removeBtn;
    animation-duration: 0.2s;
    animation-iteration-count: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    right: -22.5px;
    top: 50%;
    bottom: 50%;
    transform: translate(50%, -50%);
    height: 100px;
    width: 45px;
    row-gap: 5px;
    display: none;
}

.sidebar-profile-buttons-remove {
    background-color: #1d1d1d;
    height: 45px;
    width: 45px;
    border: 3px solid #303030;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f50c0c;
    font-size: 30px;
    font-weight: 500;
    cursor: pointer;
}

.sidebar-profile-buttons-date {
    background-color: #1d1d1d;
    height: 45px;
    width: 45px;
    border: 3px solid #303030;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f50c0c;
    font-size: 30px;
    font-weight: 500;
    cursor: pointer;
}

.sidebar-profile-buttons-date::after {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12px;
    width: 12px;
    background-color: #00e632;
    border-radius: 100%;
}

.family-buttons-date::after {
    content: "+";
    color: #00e632;
    background-color: transparent;
    font-size: 25px;
}

.sidebar-profile:hover > .sidebar-profile-buttons {
    display: flex;
}

.control-panel {
    width: 68%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-panel-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 40%;
}

.control-panel-btn {
    padding: 25px 90px;
    border-radius: 30px;
    border: 3px solid #303030;
    box-shadow: 0 0 20px var(--blue);
    background-color: #1d1d1d;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: 0.12s ease;
}

.control-panel-btn:hover {
    transform: scale(0.95);
    box-shadow: 0 0 12px var(--blue);
}

.control-panel-family {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: 100vh;
}

@keyframes familyAdd {
    from {transform: scale(0);}
    to {transform: scale(1);}
}

.control-panel-family-add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 800px;
    width: 600px;
    border: 3px solid #303030;
    border-radius: 30px;
    background-color: #111111;
    box-shadow: 0 0 30px #21beda;
    position: relative;
    transition: 0.2s ease;
    animation-name: familyAdd;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
}

.control-panel-family-add-header {
    position: absolute;
    top: 30px;
    font-size: 40px;
    color: var(--white);
}

.control-panel-family-add-family-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    position: absolute;
    top: 130px;
}

.control-panel-family-add-family-name {
    height: 60px;
    width: 370px;
    border-radius: 12px;
    border: 3px solid #303030;
    background-color: #1f1f1f;
    padding: 15px;
    color: white;
    font-size: 18px;
    transition: 0.2s ease;
}

.input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--blue);
}

.control-panel-family-add-user-count-input {
    height: 60px;
    width: 60px;
    border-radius: 12px;
    border: 3px solid #303030;
    background-color: #1f1f1f;
    text-align: center;
    color: white;
    font-size: 18px;
    transition: 0.2s ease;
}

.control-panel-family-add-name-list {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    width: 440px;
    position: absolute;
    top: 250px;
}

.control-panel-family-add-name-list-input-container {
    display: flex;
    align-items: center;
    justify-content: left;
    column-gap: 15px;
}

.control-panel-family-add-name-list-input {
    height: 55px;
    width: 300px;
    border-radius: 12px;
    border: 3px solid #303030;
    background-color: #1f1f1f;
    padding: 15px;
    color: white;
    font-size: 18px;
    transition: 0.2s ease;
}

.control-panel-family-add-name-list-dot {
    height: 16px;
    width: 16px;
    background-color: #1f1f1f;
    border-radius: 100%;
    border: 2px solid #303030;
    box-shadow: 0 0 5px var(--blue);
}

.control-panel-family-add-send {
    padding: 14px 90px;
    border-radius: 20px;
    border: 3px solid #303030;
    box-shadow: 0 0 10px var(--blue);
    background-color: #1d1d1d;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: 0.12s ease;
    position: absolute;
    bottom: 50px;
}

.control-panel-family-add-send:hover {
    transform: scale(0.95);
    box-shadow: 0 0 12px var(--blue);
}

.user-add-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(0, 0, 0, 0.35);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes userAddAnimation {
    from {transform: scale(0);}
    to {transform: scale(1);}
}

.user-add {
    height: 300px;
    width: 700px;
    background-color: #111111;
    position: relative;
    border: 3px solid #303030;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 15px;
    border-radius: 10px;
    animation-name: userAddAnimation;
    animation-duration: 0.3s;
    animation-iteration-count: 1;
    animation-timing-function: ease;
}

.user-add-input {
    height: 55px;
    width: 300px;
    border-radius: 12px;
    border: 3px solid #303030;
    background-color: #1f1f1f;
    padding: 15px;
    color: white;
    font-size: 18px;
    transition: 0.2s ease;
}

.user-add-btn {
    height: 55px;
    width: 150px;
    border-radius: 10px;
    border: 3px solid #303030;
    box-shadow: 0 0 6px var(--blue);
    background-color: #1d1d1d;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    transition: 0.12s ease;
}

.user-add-btn:hover {
    transform: scale(0.95);
}

.user-add-exit {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1d1d1d;
    border: none;
    border-left: 3px solid #303030;
    border-bottom: 3px solid #303030;
    color: var(--white);
    cursor: pointer;
    border-radius: 0px 10px 0px 10px;
    font-size: 20px;
    color: var(--white);
}

.display {
    display: none;
}

.disabled {
    visibility: hidden;
}

.rotate {
    transform: rotate(180deg);
}

.red {
    background-color: #f50c0c;
}

@media only screen and (max-width: 550px){
    .sidebar {width: 100%; border: none;}
    .sidebar-profile-top-left-name {width: 50%;}
}