* {
    margin: 0;
    padding: 0;
    transition: all .1s;

    button {
        cursor: pointer;

        &:hover {
            filter: brightness(1.1);
        }
    }
}

:root {
    font-family: sans-serif;
    --blue-white: #cfe7ff;
    --blue-white-hover: #c0cbff;
    --blue-black: #003449;
    --blue-black-hover: #0d5470;
    --blue: #8CCDF1;
    --purple-black: #312B4D;
    --purple-black-hover: #484169;
    --purple-white: #C8BFEC;
}

body {
    background: url('../images/background1.jpg') center/cover fixed;
    animation: bg-animation .3s;

    &::-webkit-scrollbar {
        display: none;
    }

}

@keyframes card-animation {
    0% {
        transform: translateY(5%);
        opacity: 0;
    }

}

@keyframes bg-animation {
    0% {
        backdrop-filter: blur(50px);

    }

}

@keyframes dock-animation {
    0% {
        transform: translateY(50%);
        opacity: 0;
    }

}

@keyframes window-animation {
    0% {
        opacity: 0;
        width: 50%;
        height: 50%;

    }

}

.container {
    width: 90%;
    margin: auto;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: end;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding: 10px;
    overflow: auto;

    &::-webkit-scrollbar {
        display: none;
    }

}

.window {
    width: 80%;
    height: 80%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--blue);
    z-index: 0;
    border-radius: 10px;
    overflow: hidden;
    resize: both;
    transition: all .3s;
    animation: window-animation .5s;

    .window-header {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 10px;
        background: var(--purple-black);
        color: var(--purple-white);
        justify-content: space-between;

        i {
            font-size: 1rem;
        }

        .window-btns {
            display: flex;
            gap: 5px;

            button {
                width: 30px;
                height: 30px;
                border-radius: 50%;
                border: none;
                background: transparent;
                background: var(--purple-white);
                color: var(--purple-black);
                cursor: pointer;
            }
        }
    }
}

.layout-container {
    width: 100%;
    display: none;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 50px;
    opacity: 0;
    animation: card-animation .3s;
    z-index: 1;

    section {
        background: transparent;
        display: flex;
        border-radius: 25px;

    }

    .power-option {
        visibility: hidden;
        flex: 1 100px;
        height: 250px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 15px;
        background: var(--blue-white);

        button {
            border-radius: 20px;
            border: solid 1px #212121;
            background: transparent;
            background: var(--blue-black);
            color: var(--blue-white);
            display: flex;
            gap: 5px;
            align-items: center;
            width: 100%;
            padding: 0 15px;
            cursor: pointer;

            i {
                font-size: 1.1rem;
            }

            span {
                font-size: 1.1rem;
                white-space: nowrap;
            }

            &:hover {
                background: var(--blue-black-hover);
            }

        }

        h1 {
            text-align: center;
            font-size: 1.3rem;
            color: var(--blue-black);
            padding: 4px 0;
        }

        .btn {
            flex: 1;
        }

        .db-btn {
            gap: 5px;
            flex: 1;
            display: flex;

            button {
                justify-content: center;
                background: var(--purple-black);

                &:hover {
                    background: var(--purple-black-hover);
                }
            }

        }

    }

    .start-app {
        visibility: hidden;
        flex: 3 100px;
        height: 500px;
        display: flex;
        gap: 10px;
        background: var(--blue-white);
        padding: 15px;

        .apps {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 5px;
            background: var(--blue);
            border-radius: 20px;

            .app-btn {
                flex: 1;
                border-radius: 10px;
                border: solid 0px #329cff54;
                background: transparent;
                padding: 5px 10px;
                margin-right: 5px;
                background: var(--blue);
                display: flex;
                align-items: center;
                gap: 10px;

                i {
                    font-size: 1.4em;
                    width: 30px;
                    height: 30px;
                    background: var(--blue-white);
                    padding: 5px;
                    border-radius: 50%;
                    display: grid;
                    place-content: center;
                    color: var(--blue-black);
                }

                span {
                    font-size: 1.3rem;
                    text-transform: capitalize;
                    color: var(--blue-black);
                }

                &:hover {
                    filter: brightness(1.07);

                }

            }
        }

        .collections {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;

            span {
                border-radius: 10px;
            }

            .search {
                display: flex;
                gap: 5px;
                background: var(--blue);
                justify-content: start;
                align-items: center;
                padding: 5px;

                i {
                    font-size: 1.2em;
                    color: var(--blue-black);
                    width: 30px;
                    height: 30px;
                    background: var(--blue-white);
                    display: grid;
                    place-content: center;
                    border-radius: 50%;
                    padding: 5px;
                }

                input {
                    flex: 1;
                    background: transparent;
                    border: none;
                    padding: 0 10px;

                    font-size: 1.2rem;

                    &::placeholder {
                        color: var(--blue-black);
                        font-size: 1.2rem;
                    }

                    &:focus {
                        outline: none;
                    }
                }

            }

            .coll {
                flex: 1 100px;
                display: flex;
                gap: 5px;
                justify-content: center;
                align-items: center;

                button {
                    border: solid 0px #212121;
                    background: var(--blue);

                    i {
                        font-size: 1.3rem;

                    }

                    font-size: 1.1rem;

                }

                .btn {
                    flex: 9;
                    height: 100%;
                    border-radius: 10px;

                }

                .circle-btn {
                    width: 50px;
                    height: 50px;
                    border-radius: 50%;

                }

            }

            .dbl-coll {

                flex: 9 200px;
                display: flex;
                flex-wrap: wrap;
                gap: 5px;

                .music-player {
                    padding: 5px;
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: space-evenly;
                    gap: 10px;
                    border-radius: 10px;
                    background: var(--blue);

                    .albem-art {
                        width: 100%;
                        height: 80px;
                        border-radius: 10px;
                        overflow: hidden;

                        img {
                            width: 100%;
                            object-fit: cover;
                        }

                    }

                    .btns {
                        width: 100%;
                        gap: 5px;
                        display: flex;
                        justify-content: space-around;

                        button {
                            width: 40px;
                            height: 40px;
                            border-radius: 50%;
                            background: var(--blue-white);
                            border: solid 0px #212121;

                            &:hover {
                                filter: brightness(1.2);
                            }
                        }

                    }
                }

                .weath {
                    flex: 1;
                    background: var(--purple-white);
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                    justify-content: center;
                    align-items: center;
                    font-size: 2rem;
                    color: var(--blue-black);

                    border-radius: 20px;

                }

                .circle-btn {
                    width: 100px;
                    height: 100px;
                    border-radius: 50%;
                    border: solid 0px;
                    background: var(--blue);
                    font-size: 1.5rem;
                    color: var(--blue-black);
                }

                .btn {
                    flex: 1;
                    height: 100%;
                    border-radius: 10px;
                    border: solid 0 #212121;
                    background: var(--blue);
                    font-size: 1.5rem;
                    color: var(--blue-black);
                }

            }

            .recently-file {
                display: flex;
                flex-wrap: wrap;
                background: var(--blue);
                padding: 5px;

                .btn {
                    flex: 1;
                    border: 0;
                    background: var(--blue-white);
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 5px;
                    padding: 10px;

                    i {
                        font-size: 1.5rem;
                        color: var(--blue-black);
                    }

                    span {
                        font-size: 1rem;
                        color: var(--blue-black)
                    }
                }

            }
        }

    }

    .notification-bar {
        visibility: hidden;
        flex: 1 50px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 10px;
        background: var(--blue-white);

        .times {

            section {
                display: flex;
                flex-direction: column;
                border: none;
                color: var(--blue-black);

                .time {
                    width: 100%;
                    height: 30px;
                    border-radius: 10px;
                    font-size: 2rem;
                    font-weight: bold;
                    color: var(--blue-black);

                }

                .date {
                    width: 50%;
                    height: 30px;
                    border-radius: 10px;
                    margin: 5px 0;
                    font-size: 1.1rem;
                    white-space: nowrap;

                }
            }

        }

        .brightness {
            margin: 10px 0;
            display: flex;
            gap: 5px;
            align-items: center;

            input {
                flex: 1;
                -webkit-appearance: none;
                background: var(--purple-black);
                height: 30px;
                border-radius: 30px;

            }

            input::-webkit-slider-thumb {
                -webkit-appearance: none;
                height: 30px;
                width: 100px;
                background: var(--purple-white);
                border-radius: 30px;
            }

            span {
                font-size: 1.2rem;
                border-radius: 50%;

                width: 40px;
                height: 40px;
                background: var(--purple-black);
                color: var(--blue-white);
                display: grid;
                place-content: center;
            }

        }

        .wrap-btns {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;

            .btn {
                cursor: pointer;
                flex: 1 50px;
                height: 60px;
                border-radius: 10px;
                background: var(--blue-black);
                border: solid 1px #212121;
                color: var(--blue-white);
                display: flex;
                gap: 5px;
                align-items: center;
                padding: 0 5px;
                white-space: nowrap;

                i {
                    font-size: 1.1rem;
                }

                span {
                    font-size: 1.1rem;
                    text-transform: capitalize;
                }

                &:hover {
                    background: var(--blue-black-hover);
                }
            }

            .active {
                background-color: var(--purple-black-hover);
                color: var(--blue-white);
            }
        }

    }

}

footer {
    margin: 10px 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 20px;

    .dock {
        animation: dock-animation 1s;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        section {
            padding: 10px;
            display: flex;
            gap: 5px;
            align-items: center;
            justify-content: center;

            button {
                background: transparent;
                border: none;
                background: var(--blue);
                cursor: pointer;

                i {
                    color: var(--blue-black);
                    font-size: 1.5rem;

                }

            }

            .btn {
                width: 50px;
                height: 50px;
                border-radius: 10px;
            }

            .dbl-btn {
                width: 160px;
                height: 50px;
                border-radius: 10px;
                display: flex;
                gap: 10px;
                align-items: center;
                padding: 0 5px;

                i {
                    font-size: 1.3rem;
                    margin: 0 2px;
                }

                span {
                    font-size: 1rem;
                    white-space: wrap;
                }

                input {
                    width: 100%;
                    height: 100%;
                    background: transparent;
                    border: none;

                    &:focus {
                        outline: none;
                    }

                    &::placeholder {
                        color: var(--blue-black);

                        font-size: 1.2rem;
                    }
                }
            }

            .circle-btn {
                width: 50px;
                height: 50px;
                border-radius: 50%;
            }
        }
    }
}

@media (max-width: 908px) {
    .container {
        width: 96%;
    }



    footer {
        .dock {
            section {
                button {
                    i {
                        color: var(--blue-black);
                        font-size: 1.2rem;
                    }

                }

                .dbl-btn {
                    height: 35px;
                    gap: 5px;

                    i {
                        font-size: 1.1rem;
                    }

                    span {
                        font-size: 1rem;
                        white-space: nowrap;
                    }

                    input {
                        &::placeholder {
                            font-size: 1rem;
                        }
                    }
                }

                .circle-btn {
                    width: 35px;
                    height: 35px;
                }
            }
        }
    }

}
