/* RESET DEFAULT BROWSER SETTINGS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button {
    border: initial;
    background-color: initial;
    color: inherit;
    font: inherit;
}


/* KEYFRAMES */

@keyframes fade-in-from-top {
    0% {
        opacity: 0;
        transform: translateY(-3.125rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
    
}


@keyframes fade-in-from-left {
    0% {
        opacity: 0;
        transform: translateX(-3.125rem);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
    
}

@keyframes fade-in-from-right {
    0% {
        opacity: 0;
        transform: translateX(3.125rem);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
    
}

@keyframes make-smaller {
    0% {
        height: 100%;
        width: 100%;
    }

    100% {
        height: 75%;
        width: 78%;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
    
}

/* BASE STYLE */

.app {
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
    color: #fff;
    height: 100vh;
    width: 100vw;
}

.app__container {
    height: calc(100vh - 3.4375rem);
    display: flex;
}

/* HEADER */

.header {
    background-image: linear-gradient(to right, #18A0BE, #622DB9);
    height: 3.4375rem;
    display: flex;
}

.logo {
    align-self: center;
    margin-left: 1.25rem;
    margin-right: 1.875rem;
    animation: fade-in-from-top 0.5s;
}

.dd-toggle {
    color: rgba(225, 225, 225, 0.7);
    padding: 0 0.8125rem;
    cursor: pointer;
    transition: all 0.4s;
    outline: none;
    animation: fade-in-from-top 0.5s;

}

.dd-toggle:hover {
    color: white;
    background-color: rgba(225, 225, 225, 0.07);
}

.dd-toggle:focus {
    color: white;
    background-color: rgba(225, 225, 225, 0.07); 
}

.dd-toggle:nth-of-type(4) {
    margin-left: auto;
}

.dd-toggle:last-child {
    display: flex;
    align-items: center;
}

.dd-toggle__icon {

}

.dd-toggle__img {
    height: 1.875rem;
    width: 1.875rem;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0.4375rem;
}

.dd-toggle__text {

}

/* ------------------------------------- */

.sidebar {
    background-color: #10171A;
    width: 4.6875rem;
    display: flex;
    flex-direction: column;
    

.menu {

}

.menu__button {
    padding: 1.1875rem 0;
    color: rgba(225, 225, 225, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: all 0.4s;
    animation: fade-in-from-left 0.5s;
}
}

.menu__button:hover {
    background-color: #2B363B;
    color: white;
    cursor: pointer;
}

.menu__button:focus {
    background-color: #2B363B;
    color: white;
    cursor: pointer;
}

.menu__button--active {
    background-color: #2B363B;
    color: white;
    position: relative;
}

.menu__button--active::before {
    content: '';
    width: 0.1875rem;
    height: 100%;
    background-color: #375BB6;
    position: absolute;
    left: 0;
    top: 0;
}

.menu__icon {
    font-size: 1.125rem;
    margin-bottom: 0.1875rem;
}

.menu__text {
    font-weight: 500;
    font-size: 0.75rem;
}

.footer {
    margin-top: auto;
    margin-bottom: 2.5rem;
    transform: rotate(-90deg);
}

.copyright {
    color: rgba(225, 225, 225, 0.15);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ------------------------------------- */

.panel {
    background-color: #2B363C;
    width: 21.875rem;
    padding: 0.9375rem 1.9375rem;
}

.panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.0625rem solid #4b5155;
    padding-bottom: 0.75rem;
}

.first-heading {
    font-size: 1.125rem;
    font-weight: 400;
}

.panel-collaps-icon {
    color: #6B7276;
    cursor: pointer;
}

.panel__images {
    padding: 1.5625rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel__img {
    width: 7.5rem;
    height: 7.5rem;
    object-fit: cover;
    cursor: pointer;
    border-radius: 0.4375rem;
    transition: all 0.2s;
    animation: fade-in 1s;   
}

.panel__img:nth-child(2) {
    animation: fade-in 1s 0.1s backwards;
}

.panel__img:nth-child(3) {
    animation: fade-in 1s 0.2s backwards;
}

.panel__img:nth-child(4) {
    animation: fade-in 1s 0.3s backwards;
}

.panel__img:nth-child(5) {
    animation: fade-in 1s 0.4s backwards;
}



.panel__img:hover {
    transform: scale(1.05);
}

.panel__btn {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 0.4375rem;
    background-color: #333e44; 
    cursor: pointer;
    transition: all 0.2s;
    animation: fade-in 1s 0.5s backwards;
}

.panel__btn:hover, .panel__btn:focus {
    background-color: #404c52;
}

.panel-upload-icon {
    font-size: 1.5625rem;
    color: #21292d;
}

/* ------------------------------------- */

.main {
    background-color: #EDF1F3;
    flex: 1;
}

.info-bar {
    height: 3.125rem;
    color: #fff;
    border-bottom: 0.0625rem solid #d6dde1;
    padding: 0 1.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumbs {
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    font-size: 0.75rem;
}

.breadcrumbs__link {
    color: #A6ADB1;
    text-decoration: none;
}

.breadcrumbs__icon {
    color: #A6ADB1;
    margin: 0 0.8125rem; 
}

.breadcrumbs__name {
    color: #2E3335;
    font-weight: 500;
}

.button {
    background-color: #375bb6;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: 31.25rem;
    transition: all 0.4s;
}

.button:hover, .button:focus {
    background-color: #26438D;
}

.artboard {
    height: calc(100vh - 3.125rem - 3.4375rem);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -1.5625rem;
    gap: 0.3125rem;

}

.canvas {
    height: 57.5vh;
    width: 48.6vw;
    position: relative;
    border: 0.0625rem solid #fff;
    border-radius: 0.1875rem;
}

.canvas__bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.canvas__fg-img {
    height: 75%;
    width: 78%;
    object-fit: cover;
    border-radius: 0.1875rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0.0625rem solid #fff;
    cursor: grab;
    animation: make-smaller 1s 0.2s backwards;
}

.canvas__circle {
    width: 0.9375rem;
    height: 0.9375rem;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    animation: fade-in 1s 1s backwards;
}

.canvas__circle:nth-of-type(1) {
    top: 11.5%;
    left: 10.4%;
    cursor: nw-resize;
}

.canvas__circle:nth-of-type(2) {
    top: 11.5%;
    right: 10.4%;
    cursor: sw-resize; 
}

.canvas__circle:nth-of-type(3) {
    bottom: 11.5%;
    left: 10.4%;
    cursor: sw-resize; 
}

.canvas__circle:nth-of-type(4) {
    bottom: 11.5%;
    right: 10.4%;
    cursor: nw-resize; 
}

.tools {
    height: 57.5vh ;
    display: flex;
    flex-direction: column;
    row-gap: 0.3125rem;
    animation: fade-in-from-right 0.5s;
}

.tool {
    background-color: #e1e6e9;
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 0.5rem;
    color: #404446;
    transition: all 0.4s;
}


.tool--active {
    background-color: #2b363b;
    color: #fff;
}


.tool:last-child {
    margin-top: auto;
}

.tool:hover, .tool:focus {
    background-color: #2b363b;
    color: #fff; 
}

.tool__icon {

}

/* MEDIA QUERIES */

@media (max-width: 1200px) {
    .panel {
        display: none;
    }

    .canvas {
        width: 67vw;
    }

}

@media (max-width: 1000px) {
    .app__container {
        height: initial;
        min-height: 100vh;
    }

    .sidebar {
        display: none;
    }

    .info-bar {
        padding: 0 1.25rem;
    }

    .artboard {
        padding: 3.125rem 1.25rem;
        margin-top: 0;
        height: initial;

    }

    .canvas {
        width: 100%;
        height: 31.25rem;
    }

    .tools {
        height: 31.25rem;
    }
}

@media (max-width: 580px) {
    .dd-toggle:nth-of-type(1),
    .dd-toggle:nth-of-type(2),
    .dd-toggle:nth-of-type(3) {
        display: none;
    }

    .artboard {
        flex-direction: column;
    }

    .canvas {
        order: 2;
        height: 28.125rem;
    }

    .canvas__circle:nth-of-type(1) {
        top: 11.5%;
        left: 9.8%;
    }
    .canvas__circle:nth-of-type(2){
        top: 11.5%;
        right: 9.8%;
    }
    .canvas__circle:nth-of-type(3){
        bottom: 11.5%;
        left: 9.8%;
    }
    .canvas__circle:nth-of-type(4){
        bottom: 11.5%;
        right: 9.8%;
    }

    .tools {
        flex-direction: row;
        column-gap: 0.3125rem;
        order: 1;
        height: initial;
        margin-bottom: 0.9375rem;
        align-self: flex-start;
        animation: fade-in-from-top 0.5s;
    }

    .tool:last-child {
        margin: 0;
    }
}

@media (max-width: 440px) {

    .header {
        justify-content: space-between;
    }

    .dd-toggle:nth-of-type(4),
    .dd-toggle:nth-of-type(5) {
        display: none;
    }

    .breadcrumbs__link, .breadcrumbs__icon {
        display: none;
    }

    .canvas {
        height: 25rem;
    }

    .tools {
        animation: fade-in-from-top 0.5s;
    }
}

