:root { /* Global variable declaration */
    --main: #328BC2;
    --highlight: #52489C;
    --highlight-hover: #9289D1;
    --background: #e3e8f7;
    --text: #222;

    --text-hover: var(--background);
    --background-primary: var(--background);
}
html {
    background-color: #eeee;
    font-family: Arial, Helvetica, sans-serif;
}
body {
    width: 65%;
    transform: scale(1.296);
    transform-origin: 0 0;
    margin: 8vh 0 0 8vw;
}

.title {
    font-size: 44pt;
    font-weight: bold;
}

.subtitle {
    font-size:22pt;
}

.center {
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

.text {
    color: #222;
}

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

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;

    -ms-user-select: none;
    user-select: none;
 }

.textLink, .textLink:visited {
    color: var(--background-primary);
}

.textLink:hover {
    color: var(--highlight);
}

#search {
    border-color: var(--highlight);
    border-width: 2px;
    border-style: solid;
    outline: none;    
}

.searchArea > input {
    vertical-align: text-bottom;
}

.searchField {
    border: 0;
    width: 270px;
    height: 45px;
    font-size: 16pt;
    padding: 0px 5px 0px 10px;
}

.searchButton {
    width: 100px;
    height: 45px;
    background: #379418;
    font-size: 16pt;
}

.bigInput {
    width: 175px;
    height: 35px;
    font-size: 10pt;
    padding: 0px 5px 0px 10px
}

.bigLabel {
    font-size:16pt;
}

.bigButton {
    width: 100px;
    height: 45px;
    font-size: 16pt;
}

.medButton {
    font-size: 13pt;
    padding: 3px 5px 3px 5px;
}

.errorText {
    font-size: 16pt;
    color: #823131;
}

.greenButton {
    border: 0;
    background: #379418;
}

.greenButton:hover {
    background: #286d11;
}

.redButton {
    border: 0;
    background: #931719;
}

.redButton:hover {
    background: #6d111d;
}

.returned {
    /*color: #e819c7;*/
    color: #39bb0b;
}

/* Navbar */

nav {
    background: #eee;
    color: #222;
}

nav p, nav div {
    display: inline;
}

nav a, .mobile-menu a {
    color: #222;
    padding: 16px 12px 16px 12px;
    text-decoration: none;
}

nav a:hover:not(.active) {
    background: var(--highlight-hover);
    color: var(--text-hover);
    border-radius: 10px;
}

nav .llinks {
    float: left;
}

nav .rlinks {
    float: right;
}

#mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    right: -6%;
    height: 60vh;
    width: 72vw;
    background-color: var(--background);

    text-align: left;
    border-radius: 10px 0px 0px 10px;
    padding-top: .5rem;
    margin-top: 2.5rem;
    overflow: hidden;
}

.mobile-menu .active, .active{
    background-color: var(--highlight);
    color: var(--background-primary);
    border-radius: 10px;
}

.mobile-menu .active {
    border-radius: 0px;
}

@media screen and (max-width: 600px) {
    /* Global Mobile Styles */
    html {
        transform: scale(1);
        width: 100%;
        margin: 0;
    }
    body {
        margin: 4vh auto;
        width: 90%;
        transform: scale(1);
        transform-origin: initial;
    }
    #search {
        margin-top: 5%;
        margin-bottom: 5%;
    }
    
    /* Hide mobile navbar stuff */
    nav .links p {
        display: none;
    }
    .mobile-menu {
        display: none;
        flex-direction: column;
        font-size: 14pt;
    }
    /* Navbar styles */
    nav {
        margin: 5% auto 0 auto;
        font-size: 14pt;
    }
    #mobile-menu-btn {
        display: inline-block;
        transform: scaleX(1.5);
        font-size: 24pt;
        position: absolute;
        top: -2%;
        left: 92%;
    }
    .mobile-menu a {
        color: var(--text);
        text-decoration: none;
        display: inline-block;
        width: 100%;
    }
    .mobile-menu p {
        margin: 0;
        width: 100%;
    }

    nav a:first-of-type { /* On mobile make the one thing (Home) look nice */
        background-color: var(--highlight);
        color: var(--text-hover);
        border-radius: 10px;
    }

    
    .nonmobile {
        display: none !important;
    }
    
}

/* Navbar end */

.myurls, .myurls tbody tr th, .myurls tbody tr td {
    padding: 10px;
    border: 3px solid #6b88b4;
    border-collapse: collapse;
}

#url.general-input {
    width: 150px;
}

.general-input {
    background: #6b88b4;
    border: 0;
    padding: 7px;
    margin: -5px;
}

.myurlsgraph {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    margin-bottom: 3%;
    padding: 10px;
    padding-right: 14px;
    border-radius: 15px;
}

.myurlsgraph > .graphControls {
    color: var(--highlight);
    font-weight: bold;
    border-top: 2px solid var(--highlight);
    margin-top: 5px;
    margin-left: 4px;
    padding-top: 5px;
}

.myurlsgraph > .graphControls > div {
    display: inline-block;
}

.graphControls, .actions {
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

.graphControls > .buttonContainer > div {
    cursor: pointer;
    border-radius: 100px;
    border-width: 2px;
    border-color: var(--highlight);
    display: inline-block;
    margin-left: 3px;
    margin-right: 3px;
    border-style: solid;
}

.dataOptions > div {
    color: var(--highlight);
    cursor: pointer;
    border-radius: 100px;
    border-width: 0px;
    border-color: var(--highlight);
    display: inline-block;
    margin-left: 3px;
    margin-right: 7px;
    border-style: solid;
    font-size: 16pt;
    padding-top: 2px;
}

.graphControls > #test {
    margin-left: 25%;
    
}

.graphControls > .buttonContainer > div > i{
    padding: 5px 8px 5px 8px
}



.pricingTable {
    display: flex;
    justify-content: center;
}

.pricingCard {
    width: 13vw;
    height: 400px;
    background: var(--background-primary);
    margin: 0 1.5vw 0 1.5vw;
    border-radius: 20px;
    padding: 10px;
}

.pricingCard hr {
    border-color: #c4c9d8;
}

.darktext {
    color: #505975;
}

.bold {
    font-weight: bold;
}

.accountTable {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.accountCard {
    width: 24vw;
    min-height: 320px;
    background: var(--background-primary);
    margin: 0 1.5vw 0 1.5vw;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.accountCard hr {
    border-color: #c4c9d8;
}

.accountField {
    margin-top: 15px;
}

.accountValue {
    font-size: 13pt;
    color: #505975;
    margin-top: 3px;
}

.accountInput {
    width: 100%;
    height: 35px;
    font-size: 12pt;
    padding: 0px 8px 0px 10px;
    box-sizing: border-box;
    border: 1px solid var(--highlight);
    border-radius: 5px;
    outline: none;
}

.accountError {
    color: #a80000;
    text-align: center;
    margin-top: 10px;
    font-size: 12pt;
}

.accountSuccess {
    color: #379418;
    text-align: center;
    margin-top: 10px;
    font-size: 12pt;
}

.errorBox {
    margin: 0 26vw 0 26vw;
    padding-top: 10px;
    padding-bottom: 3px;
    color: red;
    background-color: var(--background-primary);
}

.saveError {
    color: #a80000;
    padding-bottom: 10px;
    text-align: center;
}

.subscribe {
    border-width: 3px;
    border-color:rgb(107, 17, 17);
    background: red;
    border-radius:13%;
    border-style: solid;
    padding: 3% 9% 3% 9%;
    text-align:center;
    color: rgb(255, 255, 90);
    font-size: 17pt;
    margin-top: 42%;
}

.subscribe-disabled {
    border-width: 3px;
    border-color:black;
    background: rgb(78, 78, 78);
    border-radius:13%;
    border-style: solid;
    padding: 3% 9% 3% 9%;
    text-align:center;
    color: white;
    font-size: 17pt;
    margin-top: 42%;
}

@media screen and (max-width: 600px) {
    .accountTable {
        flex-direction: column;
        align-items: stretch;
    }
    .accountCard {
        width: 100%;
        min-height: auto;
        margin: 0 0 15px 0;
    }
}
