/* reset & regular css here */

:root {
    --white-color: #fff;
    --dark-color: #000;
    --text-color: #6D6D6D;
}

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

body {
    background: #fff;
    color: var(--text-color);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1440px;
    padding-inline: 20px;
    margin-inline: auto;
}

/* reset & regular css here */



/* main css start here */

header {
    padding-block: 40px;
}

.header__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file__flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.file__flex img {
    width: 40px;
}

.dark-mode .file__flex img {
    filter: brightness(999);
}

.file__flex span {
    font-size: 24px;
}

.visual__mode img {
    width: 50px;
}

.section__link {
    margin-top: 40px;
}

.link__list,
.folder__container {
    max-width: 1168px;
    margin-inline: auto;
    padding-inline: 70px;
    padding-top: 68px;
}

.link__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link__list ul li a {
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
    position: relative;
    text-wrap: nowrap;
}

.link__list ul li {
    margin-bottom: 25px;
}

.link__list ul li a::after {
    position: absolute;
    content: '';
    background-color: var(--text-color);
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
}

.folder__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 120px;
}

.single__folder {
    text-align: center;
}

.folder__name span {
    font-size: 20px;
    line-height: 100%;
    color: var(--text-color);
    display: block;
    margin-top: 15px;
}

.single__folder a {
    text-decoration: none;
}

.folder__icon img {
    transition: transform .4s;
}

.single__folder:hover .folder__icon img {
    transform: scale(1.06);
}

.preview__panel {
    padding: 50px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-inline: auto;
    min-height: 650px;
}

.preview__link {
    position: relative;
}


.preview__link__title {
    text-align: center;
}

.preview__link__title h2 {
    font-size: 35px;
    margin-bottom: 80px;
    padding-bottom: 10px;
    position: relative;
    display: none;
    font-weight: 600;
}

.preview__link__title h2::after {
    background-color: var(--text-color);
    position: absolute;
    content: '';
    height: 2px;
    bottom: 0;
    left: 0;
    width: 70%;
    right: 0;
    margin-inline: auto;
}

.preview__back button {
    padding: 0;
    border: none;
    background-color: transparent;
    font-size: 20px;
    cursor: pointer;
}

.preview__back button svg {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview__back {
    position: absolute;
    left: 0;
    top: 0;
}
li.folder-description {
    font-size: 24px;
}
.folder-title {
	font-size: 32px;
}












/* dark mode css start here */

body.dark-mode {
    background: var(--dark-color);
    color: var(--white-color);
}

body.dark-mode .visual__mode img {
    filter: invert(100%);
}

body.dark-mode .link__list ul li a {
    color: var(--white-color);
}

body.dark-mode .link__list ul li a:after {
    background-color: var(--white-color);
}

body.dark-mode .folder__icon img {
    filter: brightness(999);
}

body.dark-mode .folder__name span {
    color: var(--white-color);
}

body.dark-mode .preview__link__title h2::after {
    background-color: var(--white-color);
}

body.dark-mode .preview__back button svg path {
    fill: var(--white-color);
}

body.dark-mode .preview__panel {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.16);
}


/* dark mode css end here */

/* main css end here */









/* responsive css start here */

@media (min-width: 992px) and (max-width: 1199px) {
    .folder__grid {
        gap: 80px;
    }

    .link__list,
    .folder__container {
        padding-inline: 0px;
    }
}

@media (max-width: 991px) {
    .folder__grid {
        gap: 50px;
    }

    .link__list,
    .folder__container {
        padding-inline: 0px;
    }
}
@media (max-width: 767px){
    .folder__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    .folder__icon {
	width: 100px;
	margin: auto;
}

}
@media (max-width: 575px) {
    .visual__mode img {
        width: 35px;
    }

    .file__flex img {
        width: 35px;
    }

    .file__flex span {
        font-size: 18px;
    }
li.folder-description {
    font-size: 16px;
}
    .preview__panel {
        padding: 25px;
        border-radius: 10px;
        min-height: 500px;
    }

    .folder__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .folder__name span {
        font-size: 16px;
    }

    .preview__link__title h2 {
        font-size: 24px;
        margin-bottom: 50px;
    }

    .link__list ul li a {
        font-size: 16px;
    }

    .link__list ul li a::after {
        height: 1px;
    }

    .link__list ul li {
        margin-bottom: 15px;
    }

    .preview__back button svg {
        width: 30px;
        height: 30px;
    }
}

/* responsive css end here */