/* =========================================
   REUSABLE COMPONENTS
   Buttons, Lines, Lists, Floating Elements
   ========================================= */

/* Buttons */
/* Standard button styling with hover effects */
.buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1rem;
    font-weight: bold;  
    background-color: transparent;
    border: .15rem solid var(--flavorColor);
    border-radius: .5rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.buttons:hover {
    background-color: var(--flavorColor);
    color: white;
}

/* Lines */
/* Decorative vertical line using border */
.line {
    border: none;
    border-left: .15em solid var(--flavorColor);
    height: 3rem;
    font-weight: bold;
    filter: drop-shadow(0 0 .5rem var(--flavorColor));
}

/* Lists */

ul {
    position: relative;
    color: var(--flavorColor);
    list-style: inside;
    left: .5rem;
}

ul li {
    position: relative;
    right: .7rem;
    font-weight: bold;
}

/* Loading Screen */

.loader {
    animation: spin 1s linear infinite;
}

.loading-screen {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        img {
            height: 4rem;
        }
    }

progress {
        width: 15rem;
        height: .5rem;
        border: none;
        border-radius: 1rem;
        background-color: transparent;
        overflow: hidden;
    }

    progress::-webkit-progress-bar {
        background-color: transparent;
        border-radius: 1rem;
    }

    progress::-webkit-progress-value {
        background-color: var(--flavorColor);
        border-radius: 1rem;
        transition: width 0.3s ease-in-out;
    }

    progress::-moz-progress-bar {
        background-color: black;
        border-radius: 1rem;
        transition: width 0.3s ease-in-out;
    }

.flavorList {
    display: none;
    flex-direction: column;
    background-color: #e9e9e9;
    border-radius: .5rem;
    padding: 1rem;
    gap: 1rem;
    position: absolute;
    top: .5rem;
    animation: renderRight .3s ease-in-out;
    z-index: 1;
}

.flavorButtons {
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.flavorButtons:hover {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}
/* Popup menu list styles */
.optionsList {
    position: absolute;
    display: none;
    flex-direction: column;
    background-color: #e9e9e9;
    border-radius: .5rem;
    padding: 1rem;
    gap: 1rem;
    top: 5rem;
    right: 1rem;
    animation: renderRight .3s ease-in-out;
    z-index: 1;
}

.optionsList button {
    cursor: pointer;
    background-color: transparent;
    color: #000;
    border: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}
.optionsList button:hover {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.lightdarkmodeButton {
    animation: renderDown 1s ease-in-out;
}

.flavorButton {
    animation: renderUp 1s ease-in-out;
}

/* Floating Elements */
.updownButton {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    background-color: #b8b8b8;
    color: #161616ff;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.updownButton:hover {
    background-color: var(--flavorColor);
    color: #161616ff;
    filter: drop-shadow(0 0 .5rem var(--flavorColor));
}

.sideOptionsButtons {
    display: none;
    position: fixed;
    bottom: 5rem;
    anchor-name: --sideOptionsButton;
    right: 1.5rem;
    z-index: 100;
    background-color: #b8b8b8;;
    color: #161616ff;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.sideOptionsButtons:hover {
    background-color: var(--flavorColor);
    color: #161616ff;
    filter: drop-shadow(0 0 .5rem var(--flavorColor));
}

.sideOptionsList {
    position: fixed;
    top: auto;
    bottom: 1rem;
    right: 5rem;

}

.sideProjectsList {
    display: none;
    position: fixed;
    top: auto;
    bottom: 1rem;
    right: 5rem;
}
