/**************************************************
***       Plasma Robotics - FRC Team 2403       ***
***    CSS Stylesheet for the Home Template!    ***
***************************************************
***    Developed and Maintained by Students!    ***
**************************************************/

/* Sidebar Buttons */

#home-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#home-buttons > span {
    display: none;
}

#home-buttons a {
    flex-basis: 234px;
    display: block;
    margin-top: 15px;
    border-radius: 10px;
    width: 234px;
    height: 50px;
    background-color: #666;
    color: #fff;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    font-family: "IonStorm", "PL_Eras", "Eras Bold ITC", "Arial", "Verdana";
    line-height: 50px;
    font-size: 1.2em;
    transition: background-color 250ms ease-in-out;
}

#home-buttons a:hover {
    background-color: #888;
}

@media (max-width: 767px) {
 #home-buttons a {
     margin-left: 7.5px;
     margin-right: 7.5px;
 }   
}

#home-donate {
    position: relative;
}

#home-donate form {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
}

#home-donate form * {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

#home-donate form #paypal-activate {
    z-index: 1;
}

/* Slideshow */

#hm-s-o {
    width: 100%;
    max-width: calc(100% - 2px);
    max-height: 100%;
    padding-left: 2px;
    padding-right: 5px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transition: max-height 500ms ease-in-out, opacity 500ms ease-in-out;
}

.live #hm-s-o {
    max-height: 0;
    opacity: 0;
}

#hm-s-o.hidden {
    display: none;
}

@media (min-width: 768px) {
    #hm-s-o {
        max-width: 423px; 
    }
}

@media (min-width: 992px) {
    #hm-s-o {
        max-width: 550px; 
    }
}

@media (min-width: 1200px) {
    #hm-s-o {
        max-width: 600px; 
    }
}

#hm-s-i {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
}

#hm-s-c {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

#hm-s-l, #hm-s-r {
    position: absolute;
    top: 0;
    height: 100%;
    width: 10%;
}

#hm-s-l {
    z-index: 3;
    cursor: w-resize;
    left: 0;
    background: rgba(0,0,0,1);
    background: -moz-linear-gradient(left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0,0,0,0.5)), color-stop(100%, rgba(0,0,0,0)));
    background: -webkit-linear-gradient(left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    background: -o-linear-gradient(left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    background: -ms-linear-gradient(left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
}

#hm-s-r {
    z-index: 3;
    cursor: e-resize;
    right: 0;
    background: rgba(0,0,0,0);
    background: -moz-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0,0,0,0)), color-stop(100%, rgba(0,0,0,0.5)));
    background: -webkit-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    background: -o-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    background: -ms-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}

#hm-s-images {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#hm-s-images a {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#hm-s-images a .hm-s-img {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover !important;
    background-position: center center !important;
}

#hm-s-images a p {
    position: absolute;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: "IonStorm", "PL_Eras", "Eras Bold ITC", "Arial", "Verdana";
    color: #fff;
    background-color: rgba(50,50,50,0.75);
    margin: 0;
    padding-bottom: 10px;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

#hm-s-images > a.active {
    opacity: 1;
    z-index: 2;
}

#hm-s-images p {
    font-size: 1em;
    transition: font-size 350ms ease-in-out;
}

@media (max-width: 455px) {
    #hm-s-images p {
        font-size: 0.8em;
    }
}

/* Home Header */
#hm-head {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 145px;
    background-color: #666;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: "IonStorm", "PL_Eras", "Eras Bold ITC", "Arial", "Verdana";
    color: #fff;
    transition: height 500ms ease-in-out;
}

@media (min-width: 768px) {
    #hm-head {
        width: 100%;
        margin-left: 2px;
    }
}

@media (min-width: 992px) {
    #hm-head {
        height: 100px;
    }
}

#hm-head-logo {
    position: absolute;
    top: 10px;
    left: 11px;
    height: 80px;
    width: 80px;
    background: url("../img/logoWhite.svg");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

#hm-head-team {
    position: absolute;
    left: 105px;
    top: 30px;
    font-size: 2.3em;
    line-height: 23px;
    text-decoration: none;
    color: #fff;
    transition: top 350ms ease-in-out, font-size 350ms ease-in-out;
}

#hm-head-num {
    position: absolute;
    left: 105px;
    top: 55px;
    font-size: 1.2em;
    text-decoration: none;
    color: #fff;
    transition: top 350ms ease-in-out, font-size 350ms ease-in-out;
}

#hm-head-seperator {
    display: none;
}

@media (max-width: 455px) {
    #hm-head-team {
        font-size: 1.9em;
        top: 22px;
    }
    
    #hm-head-num {
        top: 65px;
    }
    
    #hm-head-seperator {
        display: inherit;
    }
}

@media (max-width: 330px) {
    #hm-head-num {
        font-size: 1.1em;
        top: 67px;
    }
}

#hm-head-fb, #hm-head-tw, #hm-head-yt, #hm-head-ig, #hm-head-gh, #hm-head-tba {
    display: inline-block;
    height: 35px;
    width: 35px;
    background-color: #aaa;
    border-radius: 7.5px;
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-color 350ms ease-in-out, top 500ms ease-in-out, bottom 500ms ease-in-out, right 500ms ease-in-out;
}

#hm-head-fb:hover, #hm-head-tw:hover, #hm-head-yt:hover, #hm-head-ig:hover, #hm-head-gh:hover, #hm-head-tba:hover {
    background-color: #999;
    background-size: 100%;
}

#hm-head-fb {
    background-image: url(../img/social/f.svg);
}

#hm-head-tw {
    background-image: url(../img/social/t.svg);
}

#hm-head-yt {
    background-image: url(../img/social/y.svg);
}

#hm-head-ig {
    background-image: url(../img/social/i.svg);
}

#hm-head-gh {
    background-image: url(../img/social/gh.svg);
}

#hm-head-tba {
    background-image: url(../img/social/tba.svg);
}

#hm-head-fb, #hm-head-tw, #hm-head-yt, #hm-head-ig, #hm-head-gh, #hm-head-tba {
    position: absolute;
}

#hm-head-fb, #hm-head-tw, #hm-head-yt {
    top: 100px;
}

#hm-head-ig, #hm-head-gh, #hm-head-tba {
    bottom: 10px;
}

#hm-head-fb {
    right: calc(100% - 45px);
}

#hm-head-tw {
    right: calc(150px + (4 * (100% - 230px) / 5));
}

#hm-head-yt {
    right: calc(115px + (3 * (100% - 230px) / 5));
}

#hm-head-ig {
    right: calc(80px + (2 * (100% - 230px) / 5));
}

#hm-head-gh {
    right: calc(45px + ((100% - 230px) / 5));
}

#hm-head-tba {
    right: 10px;
}

@media (min-width: 992px) {

    #hm-head-fb, #hm-head-tw, #hm-head-yt {
        top: 10px;
    }
    
    #hm-head-ig, #hm-head-gh, #hm-head-tba {
        bottom: 10px;
    }
    
    #hm-head-yt {
        right: 10px;
    }
    
    #hm-head-tw, #hm-head-gh {
        right: 55px;
    }
    
    #hm-head-fb, #hm-head-ig {
        right: 100px;
    }

}

/* Home Panel */
.home-panel {
    position: relative;
    align-items: stretch;
    flex-wrap: nowrap;
    box-sizing: border-box;
    width: 100%;
    min-height: 140px;
    margin-top: 15px;
    background-color: #aaa;
    border-radius: 10px;
    color: #fff;
}

@media (min-width: 768px) {
    .home-panel {
        width: 100%;
    }
}

.home-panel-link {
    position: relative;
    width: 201px;
    height: 25px;
    margin-bottom: 10px;
}
    
.home-panel-link a {
    position: absolute;
    right: 0;
    display: inline-block;
    height: 25px;
    width: 95px;
    background-color: #666;
    border-radius: 7.5px;
    line-height: 25px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: background-color 350ms ease-in-out;
}

.home-panel-link a:hover {
    background-color: #888;
}

.home-panel-link a:first-child {
    right: initial;
    left: 0;
    margin-right: 5px;
}

.home-panel-title {
    font-size: 1.2em;
    font-family: "IonStorm", "PL_Eras", Arial, Helvetica, sans-serif;
    margin-top: 10px;
    margin-bottom: -5px;
    transition: font-size 350ms ease-in-out;
    text-align: left;
}

.home-panel-desc {
    text-align: justify;
    transition: font-size 350ms ease-in-out;
}

@media (min-width:456px) {
    .home-panel {
        display: flex;
    }
    
    .home-panel-desc {
        position: relative;
        height: 100%;
        width: calc(100% - 190px);
        padding-left: 15px;
        padding-right: 0;
        order: 1;
    }
    
    .left .home-panel-desc{
        order: 3;
        padding-left: 0;
        padding-right: 15px;
    }
    
    .home-panel-img {
        order: 2;
        width: 170px;
        background-size: 80% auto !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

@media (max-width:455px) {
    .home-panel {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .home-panel-title {
        font-size: 1.25em;
        text-align: center;
        margin-top: 0;
        margin-bottom: -5px;
    }
    
    .home-panel-desc {
        padding-left: 15px;
        padding-right: 15px;
        font-size: 0.9em;
    }
    
    .home-panel-link {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }
    
    .home-panel-img {
        width: calc(100% - 20px);
        height: 100px;
        margin: 10px;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}
