/* CUP WINNER MAIN CSS */

.show {
    display: block;
}

.hide,
.hidden {
    display: none;
}


#header {
    max-width: 1150px;
    padding: 0;
    margin: 0 auto;
    margin-top: 30px;
}

#h_wrap {
    z-index: 1;

    max-width: 1150px;
    padding-top: 20px;
    margin: 0 auto;
    margin-top: -20px;

    text-align: center;
}

#h_wrap a {
    text-decoration: none;

    color: black;
}

#h_wrap h1 {
    font-family: "Oswald", sans-serif;
    font-weight: bold;

    color: #333;
}



#title {
    height: 60px;
    max-width: 100%;
    margin: 0 auto;

    text-align: center;
    /* background-color: #333;*/
}

#student,
#card_container {
    display: inline-block;
    max-width: 1090px;
    padding-top: 10px;
    padding-left: 8px;
    margin: 0 auto;
    /*background-color: #333;*/
}

.sCard {
    z-index: 1;

    float: left;
    width: 350px;
    height: 250px;
    padding: 0;
    margin: 0 10px 15px 0;

    line-height: 1.2em;

    text-align: left;

    color: white;
    background-color: #636e72;
}

.advert {
    z-index: 1;

    float: left;
    width: 350px;
    height: 250px;
    padding: 0 0 0 25px;
    margin: 0 10px 15px 0;

    text-align: left;

    background-color: none;
}


.sCard:hover {
    -webkit-transition: all .2s ease-in-out;
       -moz-transition: all .2s ease-in-out;
         -o-transition: all .2s ease-in-out;
            transition: all .2s ease-in-out;

    -webkit-box-shadow: 0 0 20px 3px rgba(153, 151, 153, 1);
       -moz-box-shadow: 0 0 20px 3px rgba(153, 151, 153, 1);
            box-shadow: 0 0 20px 3px rgba(153, 151, 153, 1);
}



.sName {
    margin: 0 0 10px 0;

    font-size: 18px;
    font-style: normal;
    font-weight: bold;
    font-stretch: normal;
    line-height: normal;

    text-align: left;
    letter-spacing: normal;
    text-transform: uppercase;

    color: #fff;
}

div#sName {
    padding: 15px 15px 15px 15px;
    margin-top: -20px;
    margin-right: -20px;
    margin-bottom: 20px;
    margin-left: -20px;

    text-align: center;

    background-color: #636e72;
}

.sSchool {
    padding: 10px;
    margin-bottom: 20px;

    font-family: Oswald;
    font-size: 14.5px;
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
    line-height: normal;

    text-align: center;
    letter-spacing: normal;
    text-transform: uppercase;

    color: #2e2e2e;
    background-color: white;
}



#col1 {
    float: left;
    width: 105px;
    margin: 0 20px 20px 20px;
}

#col1 img {
    max-width: 100%;
    max-height: 165px;
}


#col2 {
    float: left;
    width: 187px;
}

.sPlan {
    font-family: Arial;
    font-size: 13px;
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
    line-height: 1.36;

    text-align: left;
    letter-spacing: normal;

    color: #fff;
}

strong.shed {
    font-size: 16px;
    font-weight: bold;
}


/* end main css */









/*
** detail popup box
 */
#stuModal {
    position: fixed;
    top: 0;
    /* Sit on top */
    left: 0;
    /* Stay in place */
    z-index: 1;

    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */

    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, .4);
    /* Black w/ opacity */
}


/* Modal Content/Box */
.stuModal-content {
    width: 80%;
    max-width: 600px;
    /* 15% from the top and centered */
    padding: 20px;
    margin: 15% auto;
    /* Could be more or less, depending on screen size */
    overflow: auto;

    background-color: white;
}


#stuModal > .stuModal-content > #col1 div {
    margin-bottom: 1em;
}



#topblock {
    float: left;
    width: 60%;

    text-align: center;
}

#leftblock {
    float: left;
    width: 100%;
    margin-top: 1em;

    font-size: .85em;
    line-height: 1.5em;

    text-align: justify;
}

#leftblock > .sPlan {
    width: 100%;
    margin: 0;

    font-size: 1em;
    line-height: 1.5em;
}


#topblock > .sParent {
    padding: 7px;

    background-color: white;
}

#topblock > .sSchool {
    padding-top: 0;
    margin-bottom: 0;
}

#photoblock {
    float: right;
    max-width: 200px;
    margin-left: 15px;
}

#photoblock img {
    /*float: right;*/
    max-width: 200px;
}

.sQuote,
.sComment,
.sPlanC {
    margin-top: 1em;
    clear: left;
}

button.buttonblock {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 2em;
    clear: both;
    clear: both;

    font-weight: bold;

    color: white;
    border-radius: 5px;
    background-color: #636e72;
}

button.buttonblock:hover {
    background-color: black;
}


@media screen (max-width: 1025px) {
    .header-logo {
        padding-left: 10px;
    }
}

@media (max-width:877px) {
    #header {
        margin-top: 0;
    }
    #wide_nav {
        display: none;
    }
    #mobile_nav {
        display: block;
    }
    #h_wrap {
        width: 100%;
        margin: 0 auto;
    }
    #h_wrap h1 {
        font-size: 24px;
    }
    #student,
    #card_container {
        width: 320px;
        padding-top: 0;
        padding-left: 0;
    }

    #congratsCard {
        width: 485px;
        padding-top: 0;
        padding-left: 0;
    }
    .sCard {
        width: 320px;
        height: 280px;
        margin: 0 0 10px 0;
    }

    .advert {
        width: 320px;
        height: 280px;
        padding: 0 0 0 10px;
    }
    #col2,
    .sPlan {
        width: 160px;
    }
    #col1,
    #col1 img {
        width: 125px;
    }
    .sPlan {
        margin-top: 10px;
    }
    .sSchool,
    .sPlan {
        font-size: .9em;
        line-height: 1.2em;
    }
}

@media (max-width: 860px) {
    #col1 {
        width: 115px;
        margin: 0 10px;
    }

    #col2,
    #col2.sPlan {
        width: 170px;

        font-size: 1em;
        line-height: 1.2em;
    }
}

@media (max-width: 758px) {
    #stuModal #topblock {
        width: 50%;
    }
}



@media (max-width: 650px) {
    #stuModal > .stuModal-content {
        min-width: 300px;
    }
    #stuModal > .stuModal-content > .sName {
        margin-bottom: 10px;

        font-size: 1.5em;
    }

    #stuModal > .stuModal-content > #topblock {
        width: 100%;
        margin: 10px 0;
    }

    #stuModal > .stuModal-content > .sSchool,
    #stuModal > .stuModal-content > .sParent {
        font-size: .9em;
    }
    #stuModal > .stuModal-content > .sParent {
        margin-top: 0;
    }

    #stuModal > .stuModal-content > .sAct,
    #stuModal > .stuModal-content > .sPlan,
    #stuModal > .stuModal-content > .sQuote {
        margin-bottom: 5px;
    }


    .stuModal-content > #topblock,
    .stuModal-content > #photoblock,
    .stuModal-content > #leftblock,
    .stuModal-content > #photoblock {
        float: none !important;
        width: 100% !important;
        margin: 0 auto;

        text-align: center;

        align-content: center;
        align-items: center;
    }

    .stuModal-content > #photoblock img {
        max-width: 250px;
        margin: 10px 0;

        align-content: center;
    }
    #stuModal > .stuModal-content > #buttonblock {
        display: inline-block;
        width: 100%;
        padding-top: 0;
        padding-bottom: 20px;
        clear: both;
    }

    .stuModal-content > button.buttonblock {
        margin-top: 0;
    }
}
