* {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    list-style: none;
}

:root {
    --primary-color: rgb(247, 247, 247);
    --secondary-color: rgb(230, 230, 230);
    --background-color: rgb(255, 255, 255);
    --text-color: rgb(0, 0, 0);

    --darktext-color: rgb(242, 242, 242);
    --darkbackground-color: rgb(15, 15, 15);
    --darkprimary-color: rgb(30, 30, 30);
    --darksecondary-color: rgb(51, 51, 51);


}

.themeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    max-width: 80px;
    border-radius: 40px;
    padding: 8px;

}

#lightMode,
#darkMode {
    background-color: rgb(254, 254, 254);
    width: 40px;
    border: none;
    max-width: 60px;
    padding: 8px;
    border-radius: 40px;
    cursor: pointer;

}

#lightMode:hover,
#darkMode:hover {
    background-color: var(--secondary-color);
}

#lightMode.active,
#darkMode.active {
    background-color: var(--secondary-color);
}

.lightModeIcon,
.darkModeIcon {
    font-size: 16px;
}

body {
    font-family: "Archivo", sans-serif;
    padding-top: 136px;
    padding-bottom: 60px;
    background-color: var(--background-color);
    min-height: 80vh;
}


body.start {
    background: linear-gradient(315deg,
            rgba(50, 61, 74, 1) 1%,
            rgba(92, 90, 105, 1) 47%,
            rgba(159, 151, 166, 1) 100%);
}



/* background: #6155a3;
    background: radial-gradient(circle, rgba(97, 85, 163, 1) 1%, rgba(232, 218, 218, 1) 47%, rgba(46, 40, 59, 1) 100%); */



a {
    color: var(--text-color);
}

.signUpButton {
    font-size: 16px;
    border: none;
    background-color: black;
    color: white;
    padding: 8px 40px;
    border-radius: 40px;
    text-decoration: none;
}

.signUpButton:hover {
    background-color: rgb(28, 28, 28);
}

.startScreen {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 38px;
    text-align: center;
    min-height: calc(100vh - 300px);

}

h1 {
    position: relative;
    z-index: 1;
    font-size: 68px;
    letter-spacing: 0.3px;
    text-shadow: 0 0.6px 0.6px rgba(0, 0, 0, 0.2);
}

.brand-name {
    font-size: 28px;
    letter-spacing: 1px;
    padding-bottom: 20px;


}

h1:before {
    content: "";
    position: absolute;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 1000px;
    height: 1000px;

    background: radial-gradient(circle, rgba(239, 223, 255, 0.2), transparent 70%);

    filter: blur(50px);
    z-index: -1;
}


.headerBar {
    position: fixed;
    height: 64px;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* background: var(--primary-color); */
    padding: 10px 20px;

    background: rgba(229, 229, 229, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}

.navigation ul {
    display: flex;
    flex-direction: row;
    gap: 18px;
    padding-left: 40px;
}

.bottomNav {
    box-sizing: border-box;
    display: none;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    /* background: var(--primary-color); */

    width: 100%;
    padding: 24px 24px 24px 24px;
    z-index: 9999;

    background: rgba(229, 229, 229, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}

.bottomNav ul {
    display: none;
    flex-direction: row;
    align-items: center;

    width:100%;

    padding: 0;
    margin: 0;
    gap: clamp(43px, 4vw, 60px);
}

.bottomNav nav ul li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottomNavSearchBar {
    display: none;
    align-items: center;
    background-color: var(--secondary-color);
    width: 90%;
    max-width: 500px;
    height: 50px;
    border: none;
    border-radius: 12px;
    z-index: 9999;

}

.bottomNavSearchBarContainer {
    display: none;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    /* background-color: var(--primary-color); */
    z-index: 9999;
    width: 100%;
    padding: 20px 20px;

    background: rgba(229, 229, 229, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);


}

.homeIconAtom svg {
    display: flex;
    align-items: center;
    justify-content: center;
}


.navigation ul {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: center;
    padding-left: 40px;

}

.navigation li {
    display: flex;
    align-items: center;
}

.searchBarContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
    margin: 0 auto;

}

.nav-left {
    flex: 1;
}

.center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.right {
    flex: 1;
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-left: 28px;
}


.dot {
    width: 28px;
    height: 28px;
    display: inline-block;
    border-radius: 50%;
    position: relative;
    top: 1px;


    background: #150230;
    background: linear-gradient(139deg, rgba(21, 2, 48, 1) 1%, rgba(46, 31, 145, 1) 36%, rgba(157, 75, 201, 1) 100%);
    transition: transform 0.2s ease;
}

.dot:hover {
    transform: scale(1.1);


    box-shadow:
        0 0 0 6px rgba(214, 214, 214, 0.68),
        0 8px 20px rgba(137, 137, 137, 0.15);
}


.dot-container {
    display: flex;
    justify-content: center;
    flex: 1;
}

.dot-container a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favoritesNav ul {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 24px;
    padding-bottom: 40px;
}

.favoritesHeading,
.favoritesBoards {
    background-color: var(--primary-color);
    max-height: fit-content;
    border-radius: 40px;
    padding: 12px 24px;

}

.favoritesHeading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background-color: var(--secondary-color);
    gap: 8px;
}

.favoritesBoards:hover {
    background-color: var(--secondary-color);
    cursor: pointer;
}

.favoritesMarkerDot {
    background-color: rgb(150, 150, 150);
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    border-width: 1px;
}

.boardsMarkerDot {
    display: none;
    background-color: rgb(202, 202, 202);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border-width: 1px;
}

.profileHeaderDotContainer {

    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 52px;
    padding-bottom: 24px;

}

.profileHeaderDot {
    width: 82px;
    height: 82px;
    display: inline-block;
    border-radius: 50%;
    top: 1px;


    background: #150230;
    background: linear-gradient(139deg, rgba(21, 2, 48, 1) 1%, rgba(46, 31, 145, 1) 36%, rgba(157, 75, 201, 1) 100%);
    transition: transform 0.2s ease;
}

.username {
    font-size: 24px;
}

.profileButton {
    font-size: 16px;
    border: none;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 40px;
    padding: 12px 24px;
    cursor: pointer;

}


.profileButton:hover {
    background-color: var(--secondary-color);
}

.profileButtonContainer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding-left: 50px;
}


.searchWrapper {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    width: 100%;
    max-width: 500px;
    height: 50px;
    border: none;
    border-radius: 12px;
    /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */

}



.searchInput {
    flex: 1;
    font-size: 14px;
    background: transparent;
    width: 500px;
    height: 40px;
    border: none;
    caret-color: black;
    /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */
}

*:focus {
    outline: none;
}

/* .searchWrapper:focus-within {
    box-shadow: 0 0 0 1px black;
} */


input[type=text] {
    padding-left: 12px;
}



#resultsContainer {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 40px 36px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}


.iconContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    border-radius: 0px 12px 12px 0px;
    cursor: pointer;
}

.iconContainer:hover {
    background: black;
}

.iconContainer:hover .searchIcon1 path {
    stroke: white;
}

.bottomNav .searchIcon1 {
    position: relative;
    bottom: 3px;
    width: 20px;
    height: 20px;
}


.searchIcon1 {
    width: 20px;
    height: 20px;
}

.searchIcon1 svg {
    width: 100%;
    height: 100%;
}


.searchIcon {
    font-size: 24px;
}

.profileIcon,
.homeIcon {
    font-size: 18px;
}



#errorMessage,
#noResultsMessage {
    padding-top: 8px;
    text-align: center;
    color: black;
}

.albums {
    position: relative;
    width: 100%;
}

.albums img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    padding-bottom: 8px;
}

.album-card,
.favorites-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;

}

.fav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
}


.fav-icon i {
    color: rgb(255, 255, 255);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.fav-icon i:hover {
    transform: scale(1.2);
}

.loader {
    display: none;
    width: 22px;
    border: 1px solid #000000;
    border-width: 1px;
    border-radius: 8px;
    animation: spin 1.3s linear infinite;
    margin: 20px auto;
}



@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


#favoritesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px 36px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;

}

.footer {

    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(220, 220, 220, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    color: #000000;
    text-align: center;

    padding: 16px 20px;
   

    font-family: "Archivo", sans-serif;
    font-size: 0.8rem;
}

.footer p {
    margin: 0;
}

.hidden {
    display: none !important;
}

.separator {
    display: inline-block;
    margin: 0 12px;
}



body.dark {
    background-color: var(--darkbackground-color);
    color: var(--darktext-color);

}

body.dark button {
    background-color: var(--darkprimary-color);
    color: var(--darktext-color);

}

body.dark button:hover {
    background-color: var(--darksecondary-color);

}

body.dark #lightMode,
body.dark #darkMode {
    background-color: var(--darksecondary-color);
    color: var(--darktext-color);
}


body.dark #lightMode:hover,
body.dark #darkMode:hover {
    background-color: rgb(61, 61, 61);
    color: var(--darktext-color);
}


body.dark #darkMode.active {
    background-color: rgb(72, 72, 72);
}



body.dark .themeContainer {
    background-color: var(--darkprimary-color);
}


body.dark .favoritesHeading {
    background-color: var(--darksecondary-color);
    color: var(--darktext-color);
}

body.dark .favoritesBoards {
    background-color: var(--darkprimary-color);

}

body.dark .favoritesBoards:hover {
    background-color: var(--darksecondary-color);

}

body.dark .headerBar {
    background: rgba(56, 56, 56, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.dark .homeIconAtom svg path {
    fill: var(--primary-color);
}

body.dark .dot:hover {

    box-shadow:
        0 0 0 6px rgba(63, 63, 63, 0.68),
        0 8px 20px rgba(137, 137, 137, 0.15);
}

body.dark .favoritesMarkerDot {
    background-color: var(--darkprimary-color);

}

body.dark .searchWrapper {
    background-color: var(--darksecondary-color);
}

body.dark .searchIcon1 svg path {
    stroke: var(--primary-color);
}

body.dark .searchInput {
    caret-color: var(--primary-color);
    ;
}

body.dark input[type=text] {
    color: var(--primary-color);
}

body.dark.start {
    background: var(--darkbackground-color);
}

body.dark .signUpButton {
    background-color: var(--darksecondary-color);
}

body.dark .signUpButton:hover {
    background-color: var(--darkprimary-color);
}

body.dark .loader {
    display: none;
    width: 22px;
    border: 1px solid #f6f6f6;
    border-width: 1px;
    border-radius: 8px;
    animation: spin 1.3s linear infinite;
    margin: 20px auto;
}





@media (max-width: 1028px) {

    .bottomNav,
    .bottomNav ul {
        display: flex;
    }

    .bottomNavSearchBar,
    .bottomNavSearchBarContainer {
        display: flex;
    }

    .headerBar {
        display: none;
    }

    .dot {
        width: 24px;
        height: 24px;
    }

    .dot-container {
        padding-left: 0px;
    }

    #resultsContainer {
        grid-template-columns: repeat(3, 1fr);
    }

    .album-card,
    .favorites-card {
        max-width: 250px;
    }

    body {
        padding-bottom: 86px;
    }

    .profileButtonContainer {
        margin-bottom: 40px;
    }

    

    body.dark .bottomNav {
        background: rgba(56, 56, 56, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }


    body.dark .bottomNavSearchBarContainer {
        background: rgba(56, 56, 56, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    body.dark .bottomNavSearchBar {
        background-color: var(--darksecondary-color);

    }


    body.dark .homeIconOutline svg path {
        fill: var(--primary-color);
    }


}

@media (max-width: 768px) {

    #resultsContainer {
        display: grid;
        justify-items: center;
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: 24px;
    }

    .headerBar {
        display: none;
    }



    .album-card,
    .favorites-card {
        width: 100%;
        max-width: none;
    }


    #resultsContainer img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    body {
        padding-bottom: 86px;
    }

    .dot-container {
        padding-left: 0px;
    }

    .profileButtonContainer {
        margin-bottom: 40px;
    }

    body.dark .bottomNav {
        background: rgba(56, 56, 56, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    body.dark .bottomNavSearchBarContainer {
        background: rgba(56, 56, 56, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    body.dark .bottomNavSearchBar {
        background-color: var(--darksecondary-color);

    }

    body.dark .homeIconOutline svg path {
        fill: var(--primary-color);
    }

      h1 {
        font-size: 56px;
        letter-spacing: 0.3px;
    }

    .brand-name {
        font-size: 24px;

    }


}

@media (max-width: 474px) {

    #resultsContainer {
        grid-template-columns: repeat(1, 1fr);
    }

    .headerBar {
        display: none;
    }

    body {
        padding-bottom: 86px;
    }

    .dot-container {
        padding-left: 0px;
    }

    #resultsContainer img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }


    .album-card,
    .favorites-card {
        width: 100%;
        max-width: 350px;
    }

    body.dark .bottomNav {
        background: rgba(56, 56, 56, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    body.dark .bottomNavSearchBarContainer {
        background: rgba(56, 56, 56, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }


    body.dark .homeIconOutline svg path {
        fill: var(--primary-color);
    }

    body.dark .bottomNavSearchBar {
        background-color: var(--darksecondary-color);

    }


    h1 {
        font-size: 48px;
        letter-spacing: 0.3px;
    }

    .brand-name {
        font-size: 20px;

    }

}