/* 
    Created on : April 1, 2020
    Author     : Kamiku Xue | Nevin Bonak | Eric Kloeti
*/


/*================================
Global 
=================================*/

* {
    transition-duration: 0.5s;
    font-family: sans-serif;
    box-sizing: border-box;
}

img {
    max-width: 90%;
}

body {
    margin: auto;
    padding: 10px;
    background-color: #fff;
    border: solid 2px #757575;
    display: inline-block;
    background: linear-gradient(to top, #56b4d3, #348f50);
}

ol,
li,
ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

p,
h1,
h2,
h3,
h4,
section,
header {
    margin: auto;
}

a {
    color: #292929;
    text-decoration: none;
    transition: all 0.5s ease-in-out 0s;
}

a:hover,
a:active {
    color: #F9BF45;
}


/*===========================
Nav
=============================*/

.navbar-header {
    display: none;
}

.navbar-header button {
    cursor: pointer;
    width: 100%;
    margin: auto;
    display: block;
    padding: 10px;
    border: none;
    border-bottom: 4px solid;
    background: none;
}

nav {
    position: sticky;
    z-index: 2;
    width: 100%;
    top: 0px;
    background: white;
    box-shadow: 0 30px 30px 0 rgba(0, 0, 0, 0.24);
    border-radius: 10px;
    border: 4px solid;
}

#bs-example-navbar-collapse-1 ol {
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    flex-wrap: nowrap;
    align-items: center;
    align-content: space-around;
    border-radius: 10px;
}

#bs-example-navbar-collapse-1 li {
    flex-shrink: 0;
    display: block;
    flex-grow: 1;
}

#bs-example-navbar-collapse-1 li a {
    padding: 20px;
    display: block;
    text-align: center;
}

.nav li:not(.active):hover {
    background: #1B813E;
}

.active {
    background: black;
}

.active a {
    color: white;
}

#bs-example-navbar-collapse-1 li {
    margin: auto;
    padding: 0 5px;
}

#bs-example-navbar-collapse-1 li:nth-child(1):not(.active):hover {
    background-color: #CB4042;
    border-radius: 5px 0 0 5px;
}

#bs-example-navbar-collapse-1 li:nth-child(2):not(.active):hover {
    background-color: #ED784A;
}

#bs-example-navbar-collapse-1 li:nth-child(2):not(.active) a:hover {
    color: #0B346E
}

#bs-example-navbar-collapse-1 li:nth-child(3):not(.active):hover {
    background-color: #FC9F4D;
}

#bs-example-navbar-collapse-1 li:nth-child(3) a:hover {
    color: #0B346E
}

#bs-example-navbar-collapse-1 li:nth-child(5):not(.active):hover {
    background-color: #005CAF;
}

#bs-example-navbar-collapse-1 li:nth-child(6):not(.active):hover {
    background-color: #51A8DD;
}

#bs-example-navbar-collapse-1 li:nth-child(7):not(.active):hover {
    background-color: #592C63;
    border-radius: 0 5px 5px 0;
}


/*=========================
    Header
===========================*/

header {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    background: #f2f2f2;
    color: #808080;
    box-shadow: 0px 5px 10px 0px #808080;
    border: 4px solid;
    width: 80%;
    margin: 40px auto;
}

header h1 {
    color: #D75455;
    margin-top: -0.5em;
    display: block;
    text-align: center;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    padding-bottom: 0em;
}

header a {
    background: #f2f2f2;
    text-align: center;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 10em;
    animation: shine 2s linear 1;
}

header span {
    text-align: center;
    display: block;
    padding: 0em 0.5em 0em 0.5em;
}

header div {
    display: none;
    margin-top: 1em;
    text-align: right;
    padding: 0em 0.5em 0em 0.5em;
}

#uvm-text {
    text-decoration: underline;
    margin-top: 1em;
}


/*======================
Home
=======================*/

#index .intro-row {
    border-top: 2px solid #808080;
    display: grid;
    grid-template-columns: 40% 60%;
}

#index .intro-row div {
    margin: 1em;
}

#index .lead {
    margin-top: 5em;
    text-indent: 1.5em;
}

#index .col-md-8 p {
    font-size: large;
    width: 75%;
    display: block;
}

#index .smallText {
    display: block;
    margin-top: 4em;
    text-align: left;
    text-decoration: underline;
    font-size: small;
}

#index .img-thumbnail {
    max-width: 100%;
    max-height: 100%;
}

#index .stats {
    text-align: center;
}

#index .prize {
    display: grid;
    grid-template-columns: 2.5% 45% 5% 45% 2.5%;
}

#index .prize section {
    margin: 2.5%;
    box-shadow: 0px 5px 10px 0px #808080;
    width: 100%;
    background: #f2f2f2;
}

#index .prize section:nth-child(even) {
    grid-column: 4;
}

#index .prize section:nth-child(odd) {
    grid-column: 2;
}

#index .prize h1,
#index h2,
#index h3,
#index h4,
#index h5,
#index h6 {
    margin: 1em;
    font-size: large;
}

#index .prize h3 {
    color: #855B32;
}

#index .prize p {
    margin: 1em;
    color: #91AD70;
}

#index h2+ol {
    color: #808080;
    padding: 2em;
    display: block;
    width: 75%;
    margin: auto;
    border-radius: 0.1em;
    border: 2px solid #808080;
}

#index>#page-wrap>ol {
    border-color: white;
}

#index>#page-wrap>ol li {
    color: #00529B;
    background-color: #BDE5F8;
}

#index h2+ol li:nth-child(even) {
    background: #f2f2f2 !important;
    ;
}

#index h2+ol li:nth-child(3) {
    font-weight: bold;
}

#index h2+ol li {
    padding: 0.5em;
}

#index .disclaimer {
    width: 75%;
    color: #757575;
    margin: auto;
}

#index .disclaimer+h2 {
    color: #D75455;
    text-align: center;
    font-size: x-large;
}

#index .disclaimer {
    font-size: 20pt;
    padding: 20px;
    background-color: #f44336;
    color: yellow;
    -webkit-text-stroke: 1px;
}


/*==============================
About
===============================*/

#about .col-md-4 {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #808080;
}

#about .col-md-4 img {
    margin: 1em;
    border: 2px solid #808080;
}

#about .row .page-title {
    display: none;
}

#about h2 {
    display: block;
    width: 75%;
    margin: auto;
    margin: 1.5em auto 0.5em auto;
    text-decoration: underline;
    color: #855B32;
}

#about h2 small {
    font-size: large;
}

#about iframe {
    text-align: center;
    width: 75%;
    margin-left: 11em;
    height: 23em;
}

#about .col-md-12 ol {
    color: #808080;
    padding: 2em;
    width: 75%;
    margin: auto;
    border-radius: 0.1em;
    border: 2px solid #808080;
}

#about .row div:nth-child(3) h2 {
    color: #D75455;
    text-align: center;
    font-size: x-large;
}

#about .row div:nth-child(3) ol {
    border-color: white;
}

#about .row div:nth-child(3) ol li {
    color: #00529B;
    background-color: #BDE5F8;
}

#about .row div:nth-child(3) h2+ol li:nth-child(even) {
    background: #f2f2f2 !important;
    ;
}

#about .row div:nth-child(3) h2+ol li:nth-child(3) {
    font-weight: bold;
}

#about .row div:nth-child(3) h2+ol li {
    padding: 0.5em;
}


/*==============================
Judge
===============================*/

#judgingThanks h1.page-title {
    display: table;
    position: absolute;
    z-index: 1;
    top: 650px;
    left: 36%;
    font-size: 100pt;
    color: white;
}

#judges .img-thumbnail {
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    height: 600px;
    width: 100%;
    object-fit: cover;
    filter: brightness(30%)
}

#judges ul.judges {
    display: grid;
    grid-template-columns: 30% 30% 30%;
    align-content: space-evenly;
    justify-content: space-evenly;
    align-items: stretch;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    grid-gap: 20px;
}

#judges ul.judges li {
    border: 4px solid;
    padding: 5px;
}

#judges .judges .col-md-4+.col-md-8 h2 {
    border-bottom: 2px solid;
}

#judges .judges .col-md-4+.col-md-8 p {
    background-color: #0F2540;
    color: #F7D94C;
    border: solid 2px #757575;
    width: auto;
    display: block;
    margin: auto;
    padding: 1em;
    z-index: -1;
}

#judges h2 {
    background: #0B346E;
    color: lightgreen;
    padding: 2px;
}

#judges h4 {
    background: #592C63;
    color: #F7D94C;
    padding: 2px;
}

#judges .judging-criteria {
    padding: 10px;
    margin: 20px 0 20px 0;
    border-bottom: 4px solid white;
}

#judges .lead {
    font-weight: bold;
}

#judges .lead a {
    color: lightblue;
}

#judges .lead a:hover {
    color: green;
}


/*==============================
Sponsors
===============================*/

#sponsorList img {
    width: 50%;
}

#sponsorsForm form fieldset.contact {
    border: none;
    margin: auto;
    max-width: 77%;
    padding: 1em;
}

#sponsorsForm form fieldset.buttons {
    border: none;
    margin: auto;
    max-width: 75%;
    padding: 1em;
}

#sponsorsForm form fieldset.sponsorshipwell {
    border: none;
    margin: auto;
    max-width: 50%;
    padding: 1em;
    margin-top: 1em;
}

#sponsorsForm form fieldset.contactjudges {
    max-width: 100%;
    border: none;
}

#sponsorsForm form fieldset.judgesWrapper {
    max-width: 100%;
    border: none;
}

#sponsorsForm form legend {
    margin: auto;
    padding: 1em;
    font-size: 1.25em;
    background-color: black;
    color: ghostwhite;
}

#sponsorsForm .form-group {
    padding: .5em;
    margin: auto;
    background-color: lightslategray;
}

#sponsorsForm input.btn {
    display: block;
    margin: auto;
    margin-top: .5em;
    width: 50%;
    padding: 1em;
    transition-duration: .4s;
    cursor: pointer;
}

#sponsorsForm label {
    text-align: left;
    display: inline-block;
    width: 15em;
}

#sponsorsForm input {
    width: 20em;
}

#sponsors .sphomepic {
    grid-area: pic;
}

#sponsors .consider {
    grid-area: cons;
}

#sponsors .lead {
    grid-area: lead;
}

#sponsors .sponsorbutton {
    grid-area: btn;
}

#sponsors div.homepic {
    display: grid;
    grid-gap: 10px;
    justify-content: space-evenly;
    align-items: stretch;
    justify-content: space-evenly;
    grid-template-areas: 'pic cons cons cons cons' 'pic lead lead lead lead' 'pic btn btn btn btn' 'other other other other other';
}

#sponsorList .col-md-12 ol.Gold,
#sponsorList .col-md-12 ol.Silver,
#sponsorList .col-md-12 ol.Catamount,
#sponsorList .col-md-12 ol.Bronze {
    width: 100%;
    border: 4px solid;
    margin: auto;
    display: block flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    grid-area: other;
}

#sponsorList .col-md-12 ol li {
    flex-grow: 1;
}

#sponsorList .col-md-12 ol li img {
    width: 100px;
}


/*=======================
Projects
=========================*/

#projects h2 {
    margin: auto;
    font-size: 200%;
}

#categoryLegend {
    border: 4px solid white
}

#projects .row h1.page-title {
    display: table;
    position: absolute;
    z-index: 1;
    top: 650px;
    left: 34%;
    font-size: 100pt;
    color: white;
}

#votingStatus {
    border: 4px solid red;
    padding: 10px;
    width: 40%;
    margin: auto;
    color: #D8000C;
    background-color: #FFD2D2;
    position: fixed;
    top: 200px;
    z-index: 1;
    right: 0;
    transform: scale(0.5) translate(110%, 100%);
}

#votingStatus:hover {
    transform: scale(1) translate(0%, 50%);
}

#projects h2 {
    text-align: center;
    padding: 50px;
    font-size: 50pt;
    border-bottom: 4px solid white;
    margin: 40px auto;
}

#projects .img-thumbnail {
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    height: 400px;
    width: 100%;
    object-fit: cover;
    filter: brightness(30%)
}

#projects table {
    margin: auto;
}

#projects table a {
    color: #E03C8A;
}

#projects table span {
    color: black;
}

#projects .row .col-md-10 {
    margin: 20px auto;
    flex-direction: row;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: stretch;
}

#projects .row>.col-md-10 p:nth-child(1) {
    border-bottom: 4px solid white;
    padding-top: 10px;
    font-size: 115%;
    flex-basis: 60%;
}

#projects .row>.col-md-10 p:nth-child(2) {
    border-bottom: 4px solid white;
    padding: 5px;
    padding-bottom: 0;
    color: #270;
    background-color: #DFF2BF;
    flex-basis: 35%;
}

#projects .row>.col-md-10 .table {
    margin: 10px auto;
    background-color: #0B1013;
    color: white;
    flex-basis: 30%;
    display: block;
    border: 4px solid white;
    box-shadow: 0 30px 30px 0 rgba(0, 0, 0, 0.24);
}

#projects .row>.col-md-10 table:hover {
    transform: scale(0.9, 0.9);
    box-shadow: 5px 5px 30px 15px rgba(0, 0, 0, 0.25), -5px -5px 30px 15px rgba(0, 0, 0, 0.22);
}

#projects thead th {
    text-align: center;
    display: block;
}

#projects .row>.col-md-10 .table tr {
    display: block;
    margin: 10px auto;
}

#projects strong {
    display: block;
    border-bottom: 2px solid #00416a;
}


/*===========================
Schedule
=============================*/

#schedule {
    width: 100%;
}

#schedule #legend {
    border: 4px solid blue;
    padding: 10px;
    width: 40%;
    margin: auto;
    color: #00529B;
    background-color: #BDE5F8;
    position: fixed;
    top: 200px;
    z-index: 1;
    right: 0;
    transform: scale(0.5) translate(110%, 100%);
}

#schedule #legend:hover {
    transform: scale(1) translate(0%, 60%);
}

#schedule .intro-row .page-title {
    text-align: center;
    font-size: 300%;
}

#schedule .intro-row p:nth-child(2) {
    font-size: 200%;
    text-align: center;
    border-bottom: 4px solid
}

#schedule figure {
    margin: auto;
    width: 40%;
    display: block;
}

#schedule img {
    margin: auto;
    object-fit: cover;
    height: 100px;
    width: 100%;
    border-radius: 10px;
}

#schedule img:hover {
    height: auto;
    transform: scale(1.5);
    object-fit: cover;
}

#time-1,
#time-2,
#time-3 {
    padding-top: 40px;
    border-top: 2px solid;
}

#schedule tr.header th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #0F4C3A;
    color: #F9BF45;
}

#schedule table {
    width: 100%;
}

#schedule {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#schedule td,
#schedule th {
    border: 1px solid #ddd;
    padding: 8px;
}

#schedule tr:nth-child(even) {
    background-color: #f2f2f2;
}


/*============================
Gallery
============================*/

#photos .icon-container {
    padding: 1em 1.2em;
    border-radius: 0.5em;
    transition: all 0.2s ease-in-out;
    animation: raise-container 0.3s forwards 0.8s;
}

#photos h2.page-title {
    font-size: 300%;
    margin: 10px;
    display: table;
    text-align: center;
    z-index: 1;
    width: 100%;
    margin: 0;
    border: 4px solid;
}

#photos h2.page-title::after {
    content: "";
    margin: 30px;
    background-image: url("https://scontent.fbtv1-1.fna.fbcdn.net/v/t1.0-9/78504129_739030299911246_5449059054640955392_o.jpg?_nc_cat=105&_nc_sid=e007fa&_nc_oc=AQnJXvz_EoA4QqcUT8OVm1T51Ul28Ks_e60umoaiT_UmSB-QKpQ3J1nMsBbVPCz6qHM&_nc_ht=scontent.fbtv1-1.fna&oh=7fd14e0c8bc1e76eb12c4198ca75274a&oe=5EBCC782");
    height: 400px;
    display: block;
    border-radius: 10px;
    filter: brightness(30%)
}

#photos {
    max-width: 100%;
    width: 90%;
    padding: 10px;
    margin: auto;
    display: block;
}

#photos .lead {
    position: absolute;
    top: 700px;
    left: 13%;
    color: white;
    font-size: 300%;
}

#photos .lead a {
    color: #E03C8A;
    font-family: 'Raleway', sans-serif;
    position: absolute;
    top: 50%;
    transform: translate(10%, -50%);
    margin: 0;
    letter-spacing: 5px;
}

#photos .lead a:hover {
    color: #F9BF45;
}


/*============================
Footer
============================*/

footer {
    border: 4px solid;
    text-align: center;
}

footer p {
    border-bottom: 2px solid;
    margin: 0;
    padding: 10px;
}

footer p:nth-child(1) {
    background: #91B493;
}

footer p:nth-child(2) {
    background: #5DAC81;
}

footer p:nth-child(3) {
    background: #24936E;
}

footer p:nth-child(4) {
    background: #1B813E;
    border-bottom: none;
}

footer p:nth-child(5) {
    padding: 0;
    margin-top: 10px;
}

footer p:nth-child(5) a {
    border: none;
    font-size: 10pt;
}

footer a {
    color: white;
}

footer a:nth-child(1) {
    border: 2px solid #D75455;
}

footer a:nth-child(2) {
    border: 2px solid #FB9966;
}

footer a:nth-child(3) {
    border: 2px solid #91AD70;
}

footer a:nth-child(4) {
    border: 2px solid #66BAB7;
}

footer a:nth-child(5) {
    border: 2px solid #6E75A4;
}

footer a:nth-child(6) {
    border: 2px solid #52433D;
}


/*=============
Different Divice Use
============*/

@media screen and (max-width: 1024px) {
    /* start of large tablet styles */
}

@media screen and (max-width: 768px) {
    /* start of medium tablet styles */
    header {
        font-size: 80%;
    }
    nav a {
        font-size: 90%;
    }
    body {
        width: 100%;
        display: block;
    }
    #index .intro-row {
        display: flex;
        flex-direction: column;
    }
    #about .col-md-4 {
        display: flex;
        flex-direction: column;
    }
    #about .col-md-4 img {
        height: fit-content;
        width: 95%;
    }
}

@media screen and (max-width: 375px) {
    /* start of phone styles */
    body {
        width: 90%;
        margin: auto;
        background: none;
        display: block;
    }
    .navbar-header {
        display: block;
    }
    nav {
        width: 100%;
        position: relative;
    }
    header {
        font-size: 50%;
    }
    #bs-example-navbar-collapse-1 ol {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        align-content: center;
        width: 100%;
        padding: 0;
    }
    #bs-example-navbar-collapse-1 li {
        flex-shrink: 0;
        width: 95%;
        flex-grow: 1;
    }
    #bs-example-navbar-collapse-1 li a {
        padding: 10px 0;
        text-align: center;
    }
    .navbar-toggle:active,
    .navbar-toggle:focus {
        background-color: #24936E;
        border-color: #C33764;
        color: #F1F2F2;
        border-radius: 5px;
    }
    /*JUDGES*/
    ul.judges {
        grid-template-columns: auto;
    }
    ul.judges li {
        padding: 2px;
    }
    .judges .col-md-4+.col-md-8 p {
        padding: 2PX;
    }
    #index .intro-row {
        display: flex;
        flex-direction: column;
    }
    #about .col-md-4 {
        display: flex;
        flex-direction: column;
    }
    #about .col-md-4 img {
        width: 95%;
    }
    footer {
        font-size: 8pt;
    }
    /*Projects*/
    #projects .row .col-md-10 {
        margin: 10px auto;
        flex-direction: column;
        display: inline-flex;
    }
    #projects .row>.col-md-10 .table {
        width: 100%;
        border: 4px solid #270;
    }
    /*Projects*/
    #projects h2 {
        font-size: 100%;
    }
    #projects .row h1.page-title {
        top: 480px;
        left: 32%;
        font-size: 200%;
        color: white;
    }
    #projects h2 {
        padding: 0px;
        font-size: 140%;
        margin: 40px auto;
    }
    #projects .img-thumbnail {
        margin: 40px auto;
        height: 200px;
    }
    #projects .row .col-md-10 {
        margin: 20px auto;
        flex-direction: column;
    }
    #projects .row>.col-md-10 p:nth-child(1) {
        padding-top: 10px;
        font-size: 115%;
        flex-basis: 100%;
    }
    #projects .row>.col-md-10 p:nth-child(2) {
        border-bottom: 4px solid white;
        padding: 5px;
        padding-bottom: 0;
        color: #270;
        background-color: #DFF2BF;
        flex-basis: 35%;
    }
    #projects .row>.col-md-10 .table {
        margin: 5px auto;
        flex-basis: 100%;
    }
    #projects .row>.col-md-10 .table tr {
        margin: 5px auto;
    }
    /*Schedule*/
    #schedule #legend {
        padding: 0;
        margin: 10px auto;
        width: 90%;
        position: initial;
        transform: scale(1) translate(0%, 0%);
    }
    #schedule #legend:hover {
        transform: scale(1) translate(0%, 0%);
    }
    #votingStatus {
        padding: 0;
        margin: 30px auto;
        width: 90%;
        position: initial;
        transform: scale(1) translate(0, 0);
    }
    #votingStatus:hover {
        transform: scale(1) translate(0%, 0%);
    }
    #schedule .intro-row .page-title {
        text-align: center;
        font-size: 300%;
    }
    #schedule .intro-row p:nth-child(2) {
        font-size: 100%;
        text-align: center;
        border-bottom: 2px solid
    }
    #schedule figure {
        margin: auto;
        width: 100%;
        display: block;
    }
    #schedule img {
        margin: auto;
        object-fit: initial;
        height: auto;
        width: 100%;
        border-radius: 10px;
    }
    #schedule img:hover {
        transform: scale(1);
    }
    #time-1,
    #time-2,
    #time-3 {
        padding-top: 40px;
        border-top: 2px solid;
    }
    #schedule table,
    #schedule td,
    #schedule tr,
    #schedule th {
        margin: auto;
        padding: 0;
        display: inline-block;
    }
    #schedule tr {
        border: 2px solid;
        margin: 5px auto;
    }
    /*Gallery*/
    #photos .icon-container {
        padding: 0;
        border-radius: 0.5em;
        transition: all 0.2s ease-in-out;
        animation: raise-container 0.3s forwards 0.8s;
    }
    #photos h2.page-title {
        font-size: 300%;
        margin: 10px;
        display: table;
        text-align: center;
        z-index: 1;
        width: 100%;
        margin: 0;
        border: 4px solid;
    }
    #photos h2.page-title::after {
        margin: 10px 0;
        height: 200px;
        display: block;
    }
    #photos .lead {
        position: absolute;
        top: 400px;
        left: 10%;
        width: 90%;
        color: white;
        font-size: 200%;
    }
    #photos .lead a {
        font-size: 100%;
        position: absolute;
        top: 53%;
        right: 7%;
        transform: translate(0%, 0%);
        margin: 0;
        letter-spacing: 0;
    }
    #photos .lead {
        top: 1100px;
        left: 13%;
        color: white;
        font-size: 150%;
    }
    #photos .lead a {
        top: 150%;
        transform: translate(0%, 0%);
        right: 40%;
    }
}


/*=====================
    Animation
======================*/

@keyframes shine {
    0% {
        color: #f2f2f2
    }
    80% {
        color: black;
    }
    100% {
        color: #808080;
    }
}