:root {
    /* for supporting mobile we use var and these are initial settings, js handles setting --vh,--vw*/
    --vh: 1vh;
    --vw: 1vw;
    --menu-open-height: calc(calc(var(--vh) * 100) - 40px - 2vmin);
    --menu-tabs-height: calc(16px + 2vmin);
}

#indexWidget {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

#textheaderContainer {
    position: absolute;
    top: 50%;
    margin-left: auto;
    margin-right: auto;

    color: ghostwhite;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#typeWriterContainer {
    display: flex;

}

.blink {
  animation: blink 0.5s infinite;
}

@keyframes blink{
  to { opacity: .0; }
}

#menuContainer {
    z-index: 1;

    width: 65vw;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

#logoImage {
    max-height: calc(32px + 2vmin);
    max-width: calc(90vw);
    object-fit: contain;
}

#menuContent {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    border: solid ghostwhite 2px;
    border-radius: 10px 10px 0 0;

    position: relative;

    overflow: hidden;

    transition: ease-in-out 0.4s;
}

.menuOpen {
    height: var(--menu-open-height);
}

.menuClose {
    height: var(--menu-tabs-height);
}

#menuTabsContainer {
    z-index: 1;
    width: calc(100% + 4px);
    height: var(--menu-tabs-height);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: black;
    color: ghostwhite;
    overflow: hidden;
}

.menuTab {
    font-size: calc(var(--menu-tabs-height) - 8px);
    width: 50%;

    border: solid 1px ghostwhite;

    text-align: center;
    cursor: pointer;

    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    white-space: nowrap;
}

#activeTab {
    background-color: ghostwhite;
    color: black;
}

#menuPagesContainer {
    height: calc(var(--menu-open-height) - var(--menu-tabs-height));
    width: 200%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    left: 0;
    bottom: 0;

    background-color: ghostwhite;

    transition: ease-in-out 0.4s;
}

.pageContainer {
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    overflow-y: scroll;
    overflow-x: hidden;
}

.projectCategoryContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    margin: calc(8px + 2vmin) calc(4px + 2vmin);

    width: 90%;

}

.categoryTitle {
    font-size: calc(16px + 2vmin);
    width: 100%;
    text-align: left;
    border-bottom: solid 2px gainsboro;
    line-height: 1.5;
    color: darkgray;
}

.projectPageRow {
    padding: calc(8px + 1vmin);
    margin: calc(16px + 1vmin) 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: calc(100% - 8px - 2vmin);
    border: solid gainsboro 2px;
    border-radius: 10px;
    box-shadow: 0 0 5px 2px gainsboro;
    cursor: pointer;
    position: relative;
}

.projectLogo {
    max-height: 10vh;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: calc(8px + 1vmin);
}

.projectDescription {
    font-size: calc(8px + 2vmin);
}

.projectLink {
    position: absolute;
    text-decoration: none;
    height: 100%;
    width: 100%;

}

.contactPageRow {
    font-size: calc(16px + 1vmin);
    text-align: center;
    margin: calc(8px + 4vmin) calc(4px + 2vmin);

}

#emailValue {
    border: solid 2px gainsboro;
    border-radius: 10px;
    padding: calc(8px + 2vmin) calc(8px + 2vmin);
    margin: calc(8px + 1vmin) 0;

    box-shadow: 0 0 5px 2px gainsboro;

    cursor: pointer;

}

/*When our screen is portrait or width is less than 750px we switch widget to mobile prefs*/
@media all and (orientation: portrait), (max-width: 750px) {
    #menuContainer {
        min-width: 80vw;
        width: auto;
    }


}

@media (hover: hover) {
    .projectPageRow:hover {
        box-shadow: inset 0 0 5px 2px gainsboro;
    }

    #emailValue:hover {
        box-shadow: inset 0 0 5px 2px gainsboro;
    }
}
