@import url(./themes/dark.css);
@import url(./themes/light.css);

body {
    background-color: var(--page-background);
    font-family: 'Stolzl', sans-serif;
    color: var(--primary-color);
}


.container {
    max-width: 968px;
    padding: 0 20px;
    margin: 0 auto;
}

.header {
    padding-top: 17px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 0 0 12px 12px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7ecf2;
}

.header__nav {
    display: flex;
    gap: 0 16px;
}

.header__link {
    color: var(--link-color);
    font-size: 14px;
    line-height: 1.5;
}

.header__link.active {
    color: var(--secondary-color);
}

.logo {
    display: flex;
    gap: 0 10px;
    align-items: center;
    font-size: 20px;
    font-family: "Eurocine", sans-serif;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1;
}

.switcher {
    display: flex;
    width: 44px;
    height: 24px;
    border-radius: 9999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7.25px;
    background: var(--switcher-background);
    position: relative;
}

.switcher::after {
    content: '';
    width: 16px;
    height: 16px;
    position: absolute;
    border-radius: 50%;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.4), 0px 6px 6px -6px rgba(0, 0, 0, 0.16);
    background: #ffffff;
    transition: .2s left ease-in-out;
}

.switcher.dark::after {
    left: calc(100% - 20px);
}

.result {
    padding: 22px 16px;
    max-width: 808px;
    margin: 0 auto;
}

.result__title {
    text-align: center;
    font-weight: 600;
    font-size: 17px;
}

.result__box {
    margin-top: 12px;
    background-color: var(--box-background);
    border: var(--box-border);
    border-radius: 16px;
    padding: 24px 26px;
}

.result__text {
    font-weight: 350;
    font-size: 14px;
    line-height: 1.5;
}

.result__bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 12px 24px;
    margin-top: 24px;
    line-height: 1.5;
}

.result__button {
    padding: 12px;
    border-radius: 12px;
    color: var(--secondary-color);
    border: 1.6px solid var(--secondary-color);
}

.result__button.new-task {
    grid-column: 1 / 3;
}

.result__comment {
    grid-column: 1 / 5;
    padding: 16px;
    border-radius: 16px;
    background-color: var(--comment-background);
    line-height: 1.5;
    margin-top: 12px;
}

.result__comment-title {
    font-weight: 500;
    color: var(--comment-title-color);
}

.result__comment-text {
    font-weight: 350;
    margin-top: 12px;
    font-size: 14px;
    color: var(--comment-title-text);

}

.result__delete-info {
    grid-column: 1 / 5;
    color: var(--delete-info-color);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.footer {
    padding-top: 22px;
}

.footer__inner {
    border-top: 1px solid rgb(231, 236, 242);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright-notice {
    font-size: 12px;
    line-height: 1.2;
    color: #9DA8B5;
    font-weight: 350;
}

.footer__socials {
    display: flex;
    gap: 0 18px;
}

.footer__social {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #9DA8B5;
}


@media (max-width:968px) {
    .header__link {
        font-size: 10px;
    }
}


@media (max-width:768px) {
    .header {
        padding-top: 12px;
    }

    .header::before {
        display: none;
    }

    .header__nav {
        display: none;
    }

    .result {
        padding: 24px 16px 10px;
    }

    .result__box {
        padding: 18px;
        margin-top: 14px;
    }

    .result__bottom {
        gap: 24px 16px;
        grid-template-columns: repeat(2, 1fr);
    }

    .result__comment {
        margin-top: 0;
        grid-column:  1 / 3;
    }

  
    .result__button.new-task {
        grid-column: 1/ 3;
        grid-row: 4 / 5;
        text-transform: capitalize;
        background-color: var(--new-task-background);
        color: #fff;
        border: 0;
    }

    .result__button.new-task span {
        display: none;
    }

    .result__delete-info {
        position: relative;
        grid-column: 1  / 3;
    }

    .result__delete-info::after {
        content: '';
        bottom: -16px;
        left: -16px;
        right: -16px;
        height: 1px;
        position: absolute;
        background-color: var(--line-color);
    }

    .footer {
        display: none;
    }
}