﻿body {
    width: auto;
    overflow-x: hidden;
    margin: 0;
    height: 100%;
    font-size: 17px;
}

.card {
    background-color: #f3f3f3;
    height: auto;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.75);
}

.row1Card {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
}

.row2Card {
    margin-bottom: 20px;
}

.row3Card {
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 20px;
}

#headerDiv {
    grid-area: header-div;
    vertical-align: text-bottom;
    padding: 20px 50px 50px;
}

.loginLogoutLink {
    display: inline-flex;
    align-items: center;
    float: right;
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    margin-right: 20px;
    margin-top: 20px;
}

    .loginLogoutLink:hover {
        text-decoration-color: black;
    }


#logoutText, #loginText {
    text-decoration-color: black;
    color: white;
    font-size: 20px;
    padding-bottom: 5px;
}

#whiteLoginImg, #whiteLogoutImg {
    padding: 5px;
}

#greenLoginImg, #greenLogoutImg {
    display: none;
}

#whiteLoginImg:hover, #whiteLogoutImg:hover, #greenLogintImg:hover, #greenLogoutImg {
    cursor: pointer
}

#titleDiv {
    grid-area: title-div;
    padding: 20px 50px 20px;
}

#managementPortalLinkCard {
    margin-left: 50px;
    margin-right: 50px;
    grid-area: management-link;
}

    #managementPortalLinkCard:hover {
        cursor: pointer
    }

#iOSLinkCard {
    grid-area: iOS-link;
    margin-right: 50px;
}

    #iOSLinkCard:hover {
        cursor: pointer;
    }

#androidLinkCard {
    grid-area: android-link;
    margin-right: 50px;
}

    #androidLinkCard:hover {
        cursor: pointer;
    }

#helpDeskLinkCard {
    grid-area: help-desk-link;
    margin-left: 50px;
}

    #helpDeskLinkCard:hover {
        cursor: pointer;
    }

#imsLinkCard {
    grid-area: ims-link;
    margin-right: 50px;
}

    #imsLinkCard:hover {
        cursor: pointer;
    }

#imsAdminLinkCard {
    grid-area: ims-admin-link;
}

    #imsAdminLinkCard:hover {
        cursor: pointer;
    }

.cardLayout {
    display: grid;
    grid-template-areas:
        "card-image card-text card-text";
    align-items: center;
    height: auto;
}

.cardImage {
    grid-area: card-image;
    justify-self: center;
    padding: 5px;
}

.cardText {
    grid-area: card-text;
    padding: 5px;
}

#welcomePanel {
    grid-area: welcome-panel;
    background-color: #77ae56;
    height: 100%;
    text-align: center;
}

#fallbackIosGooglePlayLinks {
    grid-area: fallback-links;
    flex-direction:column;
    margin-left:50px;
    margin-right:50px;
    padding-top:30px;
    padding-bottom:50px;
}

#fallbackLinksText {
    margin-top:0px;
}

#welcomeText {
    height: 100vh;
    display: flex;
    align-items: center;
    min-width: 100%;
    justify-content: center;
}

h1 {
    font-weight: bold;
    font-size: 34px;
}

h2 {
    font-weight: bold;
    font-size: 24px;
    margin-top: 0px;
}

h3 {
    margin-bottom: 10px;
    margin-top: 5px;
    font-weight: bold;
    font-size: 20px;
}

p {
    margin-top: 10px;
    margin-bottom: 5px;
}

#welcomeText > h1 {
    color: white;
}

.alert {
    padding: 10px;
}

.desktopLayout {
    max-width: 100%;
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "header-div header-div welcome-panel"
        "title-div title-div welcome-panel"
        "management-link management-link welcome-panel"
        "help-desk-link ims-link welcome-panel"
        "ims-admin-link ims-admin-link welcome-panel"
        "fallback-links fallback-links welcome-panel"
        ". . welcome-panel";
    grid-column-gap: 20px;
    position: relative;
}

.iOSLayout {
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "header-div header-div welcome-panel"
        "title-div title-div welcome-panel"
        "management-link iOS-link welcome-panel"
        "help-desk-link ims-link welcome-panel"
        "ims-admin-link ims-admin-link welcome-panel"
        ". . welcome-panel";
    grid-column-gap: 20px;
}

.androidLayout {
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "header-div header-div welcome-panel"
        "title-div title-div welcome-panel"
        "management-link android-link welcome-panel"
        "help-desk-link ims-link welcome-panel"
        "ims-admin-link ims-admin-link welcome-panel"
        ". . welcome-panel";
    grid-column-gap: 20px;
}

@media (max-width:599px) {
    .desktopLayout {
        height: auto;
        display: grid;
        justify-content: center;
        align-items: center;
        grid-template-columns: 1fr;
        grid-template-areas:
            "header-div"
            "welcome-panel"
            "title-div"
            "management-link"
            "help-desk-link"
            "ims-link"
            "ims-admin-link"
            "fallback-links";
        grid-template-rows: auto;
        grid-gap: 20px;
    }

    .loginLogoutLink {
        margin-right: 5px;
        margin-top: 5px;
    }

    #welcomePanel {
        height: auto;
        grid-area: welcome-panel;
        background-color: #77ae56;
        text-align: center;
    }

    #welcomeText {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .row1Card {
        display: grid;
        margin-bottom: 0px;
        justify-content: start;
        text-align: inherit;
    }

    .row2Card {
        margin-bottom: 0px;
    }

    .row3Card {
        margin-bottom: 10px;
    }

    #managementPortalLinkCard {
        margin-left: 10px;
        margin-right: 10px;
        grid-area: management-link;
        display: grid;
        grid-template-areas:
            "management-portal-image management-portal-text";
        grid-template-columns: .25fr 1fr;
        align-items: center;
    }

    #managementPortalImageRow {
        grid-area: management-portal-image;
        justify-self: center;
        padding: 5px;
    }

        #managementPortalImageRow > img {
            height: 50px;
            width: 50px;
        }

    #managementPortalTextRow {
        grid-area: management-portal-text;
        padding: 5px;
    }

    #iOSLinkCard {
        grid-area: iOS-link;
        margin-right: 10px;
        margin-left: 10px;
    }

    #androidLinkCard {
        grid-area: android-link;
        margin-right: 10px;
        margin-left: 10px;
    }

    #helpDeskLinkCard {
        grid-area: help-desk-link;
        margin-right: 10px;
        margin-left: 10px;
    }

    #imsLinkCard {
        grid-area: ims-link;
        margin-right: 10px;
        margin-left: 10px;
    }

    #imsAdminLinkCard {
        grid-area: ims-admin-link;
        margin-right: 10px;
        margin-left: 10px;
    }

    #headerDiv {
        height: auto;
        grid-area: header-div;
        vertical-align: text-bottom;
        padding: 10px 10px 10px;
        text-align: center;
    }

    #headerLogo {
        width: 200px;
        max-height: 100px;
        margin-top: 20px
    }

    #titleDiv {
        grid-area: title-div;
        padding: 0px 10px 0px;
        text-align: center;
    }

    #fallbackIosGooglePlayLinks {
        grid-area: fallback-links;
        flex-direction: column;
        margin-left: 10px;
        margin-right: 10px;
        padding-top: 30px;
        padding-bottom: 50px;
    }

    #whiteLoginImg, #whiteLogoutImg {
        display: none;
    }

    #greenLoginImg, #greenLogoutImg {
        display: block;
    }

    #logoutText, #loginText {
        color: #77ae56;
        margin-left: 5px;
    }

    .cardLayout {
        display: grid;
        grid-template-areas:
            "card-image card-text";
        grid-template-columns: .25fr 1fr;
        align-items: center;
    }

    .cardImage > img {
        height: 50px;
        width: 50px;
    }

    .cardText > h3 {
        margin-bottom: 5px;
    }

    .cardText > p {
        margin-top: 5px;
    }

    #managementPortalTextRow > h3 {
        margin-bottom: 5px;
    }

    #managementPortalTextRow > p {
        margin-top: 5px;
    }

    h1 {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 30px;
    }
}
