/*
    Following will stylize the main View that each View extends
*/
@font-face {
    font-family: Raleway;
    src: url(/fonts/raleway/Raleway-Regular.ttf);
}

:root {
    --navigation-height: 10vh;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: Raleway;
    margin: 0;
    padding: 0;

    background-color: ghostwhite;
}

/*
    Style our navigation
*/
#navigation {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navigation-height);  /* SUbtract 5px to offset 5px box shadow */
    /* min-height: 35px; */
    width: 100vw;
    box-shadow: 0 3px 5px 0px #D1D9E6, inset 0 -3px 5px 0px #D1D9E6;
    background-color: ghostwhite;
    z-index: 2;
    border-bottom: solid ghostwhite 4px;
    padding: 10px 0;
}

/* Style the link container for regular nav menu */
#navLinks {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Style all regular navigation containers */
#navigation ul li {
    float: left;
}

/* Style regular navigation link elements */
#navigation .navCell{
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2px 10px;
    margin: 0 10px;
    font-size: calc(14px + 1vh);
    border-radius: 5px;
    border: solid gainsboro 1px;
    color: black;
    box-shadow: 0 0px 5px 0px #D1D9E6;
}

#navigation #active.navCell {
    box-shadow: 0 0px 5px 0px blueviolet;/*, 0 -3px 5px 0px #2b83e2;*/
    border: solid blueviolet 2px;
}

/* Style the logos nav menu */
#logo {
    margin-left: 5px;
    height: calc(25px + 1vmin);
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo img {
    height: 75%;
}

/* Style our dropdownNavigation */
#dropdownNavigation {
    position: fixed;
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 3;
}

/* Style the dropdown navigation menu main heading*/
#dropdownNavHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: var(--navigation-height);
    box-shadow: 0 3px 5px 0px gainsboro, inset 0 -3px 5px 0px gainsboro;
    background-color: ghostwhite;
    border-bottom: solid ghostwhite 4px;
    padding-bottom: 5px;
    z-index: 2;
    padding: 10px 0;
}

/* Style the logos dropdown nav menu */
#dropdownLogo {
    margin-left: 5px;
    height: calc(25px + 1vmin);
    display: flex;
    justify-content: center;
    align-items: center;
}
#dropdownLogo img {
    height: 75%;
}

#dropdownNavController {
    margin-right: 10px;
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: calc(18px + 1vh);
    border-radius: 5px;
    border: solid blueviolet 2px;
    color: black;
    box-shadow: 0 0px 5px 0px blueviolet;
    cursor: pointer;
}

#dropdownNavButton {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

#dropdownNavText {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

/* Style dropdown nav links and container */
#dropdownNavLinks {
    position: absolute;
    width: 100vw;
    height: calc(100vh - var(--navigation-height));
    top: calc(-100vh + var(--navigation-height));
    left: 0;
    display: flex;
    justify-content: center;
    /* background-color: rgba(0, 0, 0, 0.25); */
    z-index: 1;
    transition: 0.4s ease;
}

#dropdownNavLinksContainer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    width: 100vw;
    height: 100%;
    padding-top: 5px;
    background-color: ghostwhite;
    box-shadow: 0 3px 5px 0px gainsboro, inset 0 -3px 5px 0px gainsboro;
    border: solid ghostwhite;
    border-width: 0 1px 4px 1px;

}

#dropdownNavLinksContainer ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding-bottom: 50px;
}

#dropdownNavLinksContainer ul li {
    /* height: 10%; */
}

/* Style the dropdown nav containers */
#dropdownNavigation .dropdownNavCell {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90vw;
    /* height: 10%; */
    font-size: calc(18px + 1vh);
    border-radius: 5px;
    border: solid gainsboro 1px;
    color: black;
    padding: 10px 0;
    box-shadow: 0 0px 5px 0px gainsboro;
}

#dropdownNavLinks #active.dropdownNavCell {
    box-shadow: 0 0px 5px 0px blueviolet;/*, -3px -3px 10px 0px #2b83e2;*/
    border: solid blueviolet 2px;

}

/*

    The following is for widgets they are reused on multiple pages

*/
#toolsContainer {
    height: 100%;
    display: flex;
    transition: 0.2s ease-in;
    z-index: 2;
}

.toolsClosed {
    width: 25px;
}

.toolsOpen {
    width: 25%;
}

#toolsExpander {
    z-index: 1;
    height: calc(100% - 4px);
    width: 25px;


    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: white;
    cursor: pointer;

    background-color: blueviolet;
    border: solid 2px blueviolet;
    border-radius: 25px 0 0 25px;

}

.toolImage {
    filter: invert(100%);
    transform: rotate(180deg);
    width: 15px;
    height: 15px;
    transition: 0.2s linear;
}

#toolsExpanderInnerText {
    transform: rotate(-90deg);
    font-size: calc(14px + 1vmin);
    white-space: nowrap;
    text-align: center;
}

/*
    Options area which is left side like how tools is right side
*/
#options {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    transition: 0.2s ease-in;
    z-index: 2;
}

.optionsClosed {
    width: 25px;
}

.optionsOpen {
    width: 25%;
}


#optionsInnerMain {
    height: calc(100% - 4px);
    width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: solid dodgerblue 2px;

    background-color: ghostwhite;
}

#optionsTitle {
    height: 25px;
    background-color: dodgerblue;
    color: white;
    font-size: calc(12px + 1vmin);
    padding: 4px;
    cursor: pointer;
    text-align: center;
}

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

    height: 100%;
    width: 100%;

    /* background-color: pink; */

    overflow-y: scroll;
}

#optionsExpander {
    /* position: absolute; */
    z-index: 1;
    height: calc(100% - 4px);
    width: 25px;

    /* top: 0; */
    /* left: 0; */

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: white;
    cursor: pointer;

    background-color: dodgerblue;
    border: solid 2px dodgerblue;
    border-radius: 0 25px 25px 0;

}

#optionsExpanderText {
    transform: rotate(90deg);
    font-size: calc(14px + 1vmin);
    white-space: nowrap;
    text-align: center;
}

.optionsExpanderImage {
    filter: invert(100%);
    width: 15px;
    height: 15px;
    transform: rotate(-180deg);
    transition: 0.2s linear;
}

/*
    Following is for tools area
*/
#toolsParent {
    height: calc(100% - 4px);
    width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: solid blueviolet 2px;
}

#toolsTitle {
    height: 25px;
    /* width: calc(100%); */
    background-color: blueviolet;
    color: white;
    font-size: calc(12px + 1vmin);
    padding: 4px;
    cursor: pointer;
    text-align: center;
}

#toolsButtonsContainer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: scroll;
    width: calc(100%);
    height: 100%;
    background-color: ghostwhite;
}

.toolButton {
    width: calc(85%);
    padding: 10px;
    margin: 10px 0;
    border: solid gainsboro 2px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    box-shadow: gainsboro 0 0 6px 3px;
    background-color: ghostwhite;
    user-select: none;
}

/*
    POP WINDOW UP STYLING
*/
#popUpWidget {
    z-index: 4;
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    display: none;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.5);
}

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

    background-color: ghostwhite;
    border-radius: 10px;

    height: 75vh;
    width: 75vw;

    overflow-y: scroll;

    text-align: center;
}

#loadingContainer {
    height: 90%;
    display: flex;
    align-items: center;
}

#createNewPopUpContainer {
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
}

.popUpButtonContainer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 50%;
}

.popUpButton {
    background-color: ghostwhite;
    border: solid black 2px;
    border-radius: 10px;
    padding: 5px 30px;

    cursor: pointer;
}

.confirm {
    border: solid #5AC18E 2px;
}

.deny {
    border: solid red 2px;
}

.popUpTitle {
    color: darkgrey;
    border: solid darkgrey 2px;
    border-width: 0 0 2px 0;
    width: 90%;
    margin: 10px 0;
}

#innerSaveAsContainer {
    height: 100%;

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

    overflow-y: scroll;
}

#innerSaveAsContainer * {
    margin: 10px 0;
}

#saveTitle {
    width: 90%;
    padding: 10px 0 15px 0;
    font-size: calc(24px + 1vmin);
    text-align: center;
}

#saveText {
    width: 90%;
    font-size: calc(18px + 1vmin);
    text-align: center;
}

#saveSubtext {
    width: 90%;
    font-size: calc(12px + 1vmin);
    text-align: center;
}

#saveInput {
    width: 65%;
    padding: 5px;
    font-size: calc(12px + 1vmin);
}

#saveInput::placeholder {
    color: red;
}

#saveButton {
    padding: 10px;
    text-align: center;
    background-color: #5AC18E;

    border: solid black 2px;
    border-radius: 10px;

    cursor: pointer;
}

#deletePopUpContainer,
#savePopUpContainer {
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
}

#deleteSaveItemTitle {
    text-align: center;
    margin: 10px 0;
    font-size: calc(18px + 1vmin);
}


#saveItemContainer {
    height: 75%;
    width: 75%;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.saveItem {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    margin: 10px;
    border: solid darkgrey 2px;
    border-radius: 10px;
}

.saveItemTitle {
    font-size: calc(16px + 1vmin);
}

.saveItemButtonContainer {
    display: flex;
    justify-content: center;
    align-items: center;

}

.openButton {
    margin: 5px;
    padding: 5px;
    border: solid blueviolet 2px;
    border-radius: 10px;
    font-size: calc(12px + 1vmin);
}

.deleteButton {
    margin: 5px;
    padding: 5px;
    border: solid red 2px;
    border-radius: 10px;
    font-size: calc(12px + 1vmin);
}

.popUpMessage {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.successImage {
    filter: hue-rotate(270deg);
    height: 35%;
}


/*
    Styling For Built Widgets
*/

/* Dropdown elements*/
.dropDownContainer {
    position: relative;
    height: calc(50px + 1.25vmin);
    width: 75%;
    cursor: pointer;
    font-size: calc(12px + 1vmin);

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

.dropDownHeader {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: ghostwhite;
    border: solid gainsboro 2px;
    border-radius: 10px;
    z-index: 1;
}

.dropDownTitle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dropDownArrowContainer {
    height: 100%;
    width: calc(50px + 1.25vmin);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: solid gainsboro 2px;
}

.dropDownArrow {
    height: 30%;
    width: auto;
    transform: rotate(90deg);
    transition: 0.2s ease;
}

.openDropDownArrow {
    transform: rotate(-90deg)
}

.dropDownOptionsContainer {
    position: absolute;
    top: calc(100%); /* must be equal to padding-top */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: solid gainsboro 2px;
    border-radius: 0 0 10px 10px;
    border-width: 0 2px 2px 2px;
    z-index: 0;
    width: calc(100% - 20px);

    transition: 0.2s ease;
    height: 0px;
    overflow: hidden;
    background-color: blueviolet;
    color: white;
    cursor: auto;
    overflow-y: scroll;
}

.openDropDown {
    height: auto;
    z-index: 2;
}

.dropDownOption {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: ghostwhite;
    border: solid gainsboro 2px;
    border-radius: 10px;
    color: black;
    /* box-shadow: 0 0 6px 3px gainsboro; */
    cursor: pointer;
    margin: 10px 0 5px 0;
    padding: 15px 0;
}


/*All hover effects when valid */
@media (hover: hover) {
    #navigation .navCell:hover:not(#active) {
        box-shadow: inset 0 0px 5px 0px #D1D9E6;
    }

    #dropdownNavController:hover {
        box-shadow: inset 0 0px 5px 0px #D1D9E6;
    }


    #dropdownNavLinks .dropdownNavCell:hover:not(#active) {
        box-shadow: inset 0 0px 5px 0px #D1D9E6;
    }
}


/*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) {
    #navigation {
        display: none;
    }

    #dropdownNavigation {
        display: flex;
    }

    #options {
        left: 0;
        position: absolute;
    }

    .optionsOpen {
        width: calc(100% - 25px);
    }



    #toolsContainer {
        right: 0;
        position: absolute;

    }

    .toolsOpen {
        width: calc(100% - 25px);
    }
}
