@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight:500;
    font-style: normal;
    background: #ffffff;
    background: linear-gradient(160deg, rgba(255, 255, 255, 1) 0%, rgba(238, 238, 238, 1) 50%, rgba(153, 153, 153, 1) 100%);
    height: 100%;
    
}
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
[popover]:popover-open {
	opacity: 1;
	transform: scaleX(1);
}
[popover] {
    font-size: 0.9rem;
    padding: 10px;
    border: 1px solid black;
    border-style: outset;
    border-radius: 5px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible;
    height: fit-content;
    opacity: 0;
    transform: scaleX(0);
    align-content: center;
    z-index: 2;
    transition:
    opacity 0.7s,
    transform 0.2s,
    overlay 0.7s allow-discrete,
    display 0.2s allow-discrete;
}
[popover]::backdrop {
    background-color: rgb(0 0 0 / 0%);
    transition:
        display 0.7s allow-discrete,
        overlay 0.7s allow-discrete,
        background-color 0.7s;

}
[popover]:popover-open::backdrop {
    background-color: rgb(0 0 0 / 25%);
}

@starting-style {
    [popover]:popover-open::backdrop {
        background-color: rgb(0 0 0 / 0%);
    }
}

@starting-style {
    [popover]:popover-open {
        opacity: 0;
        transform: scaleX(0);
    }
}

.mainContainer {
    display: grid;
    grid-template-columns: 0.12fr 1fr;
    gap: 5rem;
    height: 100vh;
    .nav {
        display: grid;
        grid-template-rows: repeat(5, 5rem);
        gap: 0.2rem;
        height: fit-content;
        .navButton {
            align-content: center;
            border-bottom-right-radius: 5px;
            border-top-left-radius: 5px;
            transition: 0.7s;
            /* transition-delay: 0.2s; */
            background-color: #ddd;
            text-align: right;
            letter-spacing: 4px;
            font-size: larger;
        }
        .navButton:hover {
            background-color: transparent;
            color: blue;
            cursor: pointer;
            transform: translateX(10%);
        }
    }
    .selectedContent {
        padding: 10px;
        box-shadow: 0px 1px 40px 1px silver;
        border: 1px none transparent;
        border-radius: 5px;
        background-color: white;
        max-height: 90vh;
        margin-right: 30px;

        & .contentHeader {
            background-color: white;
            border-bottom: 1px dotted silver;
            padding: 20px;
            font-size: xx-large;
            animation: fadein 1.5s;

        }
        & .contentActual {
            margin-top: 20px;
            padding: 20px;
            animation: fadein 1.5s;

            & ul {
                list-style: none;
                padding-left: 0.2em;
                line-height: 1.5em;
            }

            & ul li::before {
                content: "";
                display: inline-block;
                width: 0.6em;
                height: 0.6em;
                margin-right: 0.6em;
                background-color: blue;
                border-radius: 50%;
            }
        }
        & .upcomingProjects {
            & h3 {
                margin-bottom: 0px;
            }
        }
        & .project {
            box-shadow: 0px 1px 5px 1px #eee;
            margin-bottom: 10px;
            & .projectHeader {
                border-left: 1px solid silver;
                border-top: 1px solid silver;
                border-right: 1px solid silver;
                border-top-right-radius: 3px;
                border-top-left-radius: 3px;
                padding: 5px;
                background-color: #eee;
                font-size: large;
                display: grid;
                justify-content: space-between;
                grid-template-columns: 1fr 1fr;
                & span:last-child {
                    text-align: right;
                }
                & span:first-child {
                    font-weight: bold;
                    font-size: larger;
                }
                & span {
                    align-content: center;
                }
            }
            & .projectContent {
                display: grid;
                grid-template-columns: 1fr 0.5fr;
                border-bottom: 1px solid silver;
                border-left: 1px solid silver;
                border-right: 1px solid silver;
                border-bottom-right-radius: 3px;
                border-bottom-left-radius: 3px;
                background-color: white;
                padding: 10px;
                & span {
                    padding: 10px;
                    align-content: center;
                }
                & span:first-child {
                    border: 1px solid silver;
                    border-top-left-radius: 3px;
                    border-bottom-left-radius: 3px;
                }
                & span:last-child {
                    text-align: center;
                    border-top: 1px solid silver;
                    border-bottom: 1px solid silver;
                    border-right: 1px solid silver;
                    border-top-right-radius: 3px;
                    border-bottom-right-radius: 3px;
                    background-color: #eee;
                    
                }
                & button {
                    padding: 5px;
                    width: 100px;
                    border: 1px solid silver;
                    border-radius: 3px;
                    background-color: white;
                    margin-top: 10px;
                }
                & button:hover {
                    background-color: blue;
                    color: white;
                    transition: 0.5s;
                    cursor: pointer;
                }
            }
        }
    }
}
body {
    opacity: 1;
}