/**
* This file provides the general structure of this site.
* There is no "minimal" version of this file; what you see is exactly what's included on your site.
*/
@import 'https://fonts.googleapis.com/css?family=Open+Sans';
body {
  font-family: 'Open Sans', sans-serif;
}

/* Remove space so that our content fits entirety of webpage */
html, body {
    border: 0;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    /*background-color: rgba(30,30,30,1);*/
}

body{
    background-color: black;
}

/* Background image parallax, using 
http://stackoverflow.com/questions/26372127/background-fixed-no-repeat-not-working-on-mobile */
body:before {
    content: "";
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: url("/images/background_image2.png") no-repeat center center;
    /* background image source: https://images4.alphacoders.com/143/143306.jpg */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/* Site Template */
/* Link styling */
a, a:active, a:hover, a:visited {
    color: rgb(220, 220, 220);
}
a:hover {
    color: rgb(255, 255, 255);
}

/* Page titles */
#title_div {
    margin:0 auto;
    width: 45%;
    text-align: center;
    margin-top: 120px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    /*border-bottom: 1px solid #c33;*/
    
    color: rgba(220,220,220, 1);
}

.bottom_red_border {
    border-bottom: 1px solid #c33;
}

#title_div #subtitle {
    color: rgb(140, 140, 140);
}

#title_div #subtitle.warning {
    color: rgb(255, 50, 40);
}

#title_div a, #title_div a:active, #title_div a:hover, #title_div a:visited {
    color: rgb(180, 180, 180);
}
#title_div a:hover {
    color: rgb(200, 200, 200);
}

#title {
    white-space: nowrap;
    font-size: 400%;
    font-weight: lighter;
    margin-bottom: 5px;
}
#events_error_title {
    white-space: nowrap;
    font-size: 400%;
    font-weight: lighter;
    margin-bottom: 5px;
}

#title_div img {
    height: 1.3em;
    width: auto;
    vertical-align: -20%;
    margin-right: 0.6em;
}

#title_div p {
    margin: 0.25em;
}

.emph {
    font-style: italic;
}

/* Content Container */
#container {
    margin-top: 100px;
    color: rgb(255, 255, 255);
}

/* Content box */
.box {
    /*border-top: solid 40px #aa3333;*/
    margin: auto;
    margin-top: 1em;
    margin-bottom: 3em;
    /*width: 50%;*/
    width: 950px;
    
    color: rgb(255, 255, 255);
    /* border-left: none;
    border-right: none; */
    border: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.1);
    border-top: solid 1.5px rgba(255, 0, 0, 0.8);
    background: rgba(255, 255, 255, .07); /* when hovering over img, this color will show */
}

.box div {
    margin: 1.5em;
    margin-top: 2.5em;
    margin-bottom: 2.5em;
}

.gray_text {
    color: rgb(200, 200, 200);
}
.error_text{
	font-size: 100%;
	color: rgb(200, 200, 200);
}
.banner {
    background-color: #cc3333;
    color: #ffffff;
    height: 4.1em;
    width: 100%;
}

/* horizontal rule */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
}

/* figure captions */
figcaption {
    font-style: italic;
    text-align: center;
    color: rgb(120, 120, 120);
}

/* ==============================================================
Welcome page css
============================================================== */
#welcome_div {
    position: absolute;
    top: 38%;
    width: 100%;
    
    text-align: center;
}

#welcome_title {
    white-space: nowrap;
    
    font-size: 600%;
    font-weight: lighter;
    
    /* animation */
    position:relative;
    top: 0;
    color: rgba(255, 255, 255, 1);
    -webkit-animation: welcome_title_anim 1s 1; /* Safari 4.0 - 8.0 */
    animation: welcome_title_anim 1s 1;
}

#welcome_subtitle {
    font-size: 120%;
    
    /* bottom border */
    /*padding: 2em;
    border-bottom: solid;
    border-width: 1.5px;
    border-color: #c33;*/
    
    /* animation */
    position: relative;
    top: 0;
    color: rgba(140, 140, 140, 1);
    -webkit-animation: welcome_subtitle_anim 1.5s 1; /* Safari 4.0 - 8.0 */
    animation: welcome_subtitle_anim 1.5s 1;
}

#welcome_hotlinks {
    /* animation */
    margin-top: 0.75em;
    position:relative;
    top: 0;
    -webkit-animation: welcome_hotlinks_anim 1.5s 1; /* Safari 4.0 - 8.0 */
    animation: welcome_hotlinks_anim 1.5s 1;
}

#welcome_div img {
    margin: 1.2em;
    height: 3em;
}

/* horizontal rule */
#welcome_hr {
    margin: auto;
    margin-top: 2.5em;
    height: 1px;
    border: 0;
    border-top: 1px solid rgba(150, 30, 30, 1);
    
    /* animation */
    width: 30em;
    -webkit-animation: welcome_hr_anim 2s 1; /* Safari 4.0 - 8.0 */
    animation: welcome_hr_anim 2s 1;
}

@keyframes welcome_hr_anim {
    0% { 
        width: 0; 
        border-color: rgba(150, 30, 30, 0) 
    }
    20% { 
        width: 0; 
        border-color: rgba(150, 30, 30, 0.3) 
    }
    100% { 
        width: 30em; 
        border-color: rgba(150, 30, 30, 1) 
    }
}

@keyframes welcome_title_anim {
    0% {
        top: -0.5em;
        color: rgba(255, 255, 255, 0);
    }
    100% {
        top: 0;
        color: rgba(255, 255, 255, 1);
    }
}

/* not currently working */
@keyframes welcome_hotlinks_anim {
    0% {
        top: -0.5em;
        color: rgba(255, 255, 255, 0);
    }
    100% {
        top: 0;
        color: rgba(255, 255, 255, 1);
    }
}

@keyframes welcome_subtitle_anim {
    0% {
        top: -2em;
        color: rgba(140, 140, 140, 0);
    }
    15% {
        top: -2em;
        color: rgba(140, 140, 140, 0);
    }
    100% {
        top: 0;
        color: rgba(140, 140, 140, 1);
    }
}
/* ==============================================================
Contact css
============================================================== */
#contact_form {
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1em;
    width: 70%;
}
#contact_form_inner {
    margin: auto;
    width: 90%;
}
#contact_form p {
    line-height: 0.4em;
    color: rgb(190, 190, 190);
}
#contact_form textarea {
    display: block;
    margin: 4px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 12px 15px;
    
    box-sizing: border-box;
    resize: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}
#submit_button {
    display: inline-block;
    margin-bottom: 1em;
    margin-right: 1em;
}
.error {
    color: rgb(255, 40, 40);
}
.success {
    color: rgb(40, 220, 40);
}


#admin_info {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    overflow: show;
}
#official_contact_info {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    overflow: auto;
}
.glow_input {
  transition: box-shadow 0.3s, border 0.3s;
}
.glow_input :focus,
.glow_input .focus {
  box-shadow: 0 0 5px 1px rgb(255, 0, 0);
}

/* ==============================================================
Event css
============================================================== */
.event_box {
    display: block;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
	
}

/* ==============================================================
Single team page css
============================================================== */
.team_container {
    /* For multiple columns */
    /*display: flex;
    justify-content: space-around;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;*/
    
    text-align: center;
}
.team_table{
	color: #ffffff;
}
.team_container div {
    margin: auto;
    margin-bottom: 20px;
    vertical-align: middle;
    /*margin: 5px;*/
    overflow: auto;
    
    color: #ffffff;
    text-align: center;
}

.team_container table {
    width: 80%;
}

#team_img img {
    /* approx 16:9 ratio for images */
    /*height: 260px;
    width: 462px;*/
    width: 65%;
    min-width: 400px;
}

.captain_name {
    font-size: 110%;
    font-weight: bold;
    color: rgb(200,200,200);
}

.captain_email {
    color: rgb(120,120,120);
}

/* ==============================================================
Striped Table  (ex: team table)
============================================================== */
.striped_table {
    white-space: nowrap;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
	margin-bottom: 5%;
    width: 100%;
}
.striped_table th, td {
    padding:5px 8px;
    line-height:25px;
    white-space: nowrap;
}
.striped_table td {
}
.striped_table td img {
    height: 1em;
    width: auto;
    vertical-align: -10%;
    margin-left: 0.6em;
}
.striped_table span {
    white-space: pre;
}
.striped_table tr:nth-child(even) {background-color: rgba(255,255,255,0.2);}
.striped_table tr:nth-child(odd) {background-color: rgba(255,255,255,0.1);}
.striped_table tr.table_title {
    background-color: rgba(255,100,100,0.15);
    font-size: 130%;
    color: rgb(220, 40, 40);
    font-weight: bold;
    text-align: center;
}
.striped_table tr#achievements_title {
    background-color: rgba(220,160,0,0.2);
    color: rgb(255, 170, 40);
}
.striped_table tr.table_none {
    font-style: italic;
    text-align: center;
    color: rgb(120, 120, 120);
    background-color: rgba(255,255,255,0.1);
}
.column_name {
    text-align: center;
}
.player_id {
    font-weight: bold;
}
.player_name {
}
.player_role, .player_ranking, .tournament_placement {
    text-align: center;
}
.date, .tournament_level {
    text-align: center;
}

/* ==============================================================
Item List Table  (ex: event table)
============================================================== */
.item_list_table {
    display: table;
    margin: auto;
    max-width: 95%;
    
    text-align: left;
    white-space: normal;
    
    border-collapse: collapse;
}

.item_list_table a, .item_list_table a:active, .item_list_table a:hover, .item_list_table a:visited {
    color: rgb(235, 235, 235);
    text-decoration: none;
    transition: 0.3s;
}

.item_list_table a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.item_list_table .table_row {
    display: table-row;
    line-height: 25px;
    font-weight: normal;
}

.item_list_table .table_cell {
    display: table-cell;
    vertical-align: middle;
    padding: 10px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.item_list_table .status_cell {
	margin: 5px;
    vertical-align: middle;
    padding: 10px 8px;
}
.item_list_table p {
    display: block; 
    margin: 0.25em;
}

.item_list_table .item_image {
    width: 100%; 
	text-align: center;
	max-height: auto;
    min-height: 10em;
    object-fit: cover;
	margin:2;
	background-color: rgba(0, 0, 0, 0.2);
    padding-top: 1px;
	padding-bottom: 1px;
}

.item_list_table .item_image img {
    max-height:50em%;
    max-width: 65%;
    min-height: 10em;
    object-fit: cover;    
}

.item_list_table .item_name {
    font-size: 170%;
    color: rgb(255, 255, 255);
}
.item_list_table .status_text {
    /* float: right; */
    padding: 0.5em;
    font-size: 120%;
}
.item_list_table .complete {
    color: rgb(200, 0, 0);
}
.item_list_table .incomplete {
    color: rgb(0, 200, 0);
}

.item_list_table .item_link {
    color: rgb(220, 220, 220);
}

.item_list_table .item_link:hover {
    color: rgb(255, 255, 255);
    background-color: transparent;
}

.item_list_table .item_description {
    color: rgb(140, 140, 140);
    padding-left: 0.25em;
}

.item_list_table .item_details {
    color: rgb(160, 160, 160);
    padding-left: 0.25em;
}
.item_list_table .date {
    color: rgb(160, 20, 20);
}
.item_list_table .time {
    font-style: normal; 
    color: rgb(100, 100, 100);
}
.item_list_table .location {
    color: rgb(140, 100, 100);
}

/*.item_list_table tr:hover {
   cursor: pointer;
   background-color: rgba(255, 255, 255, 0.5);
}*/

.table_red_titles .item_name {
    color: rgb(180, 20, 20  );
}


/* ==============================================================
Slideshow (ex: the one in the about page)
============================================================== */
.slideshow {
    /* position */
    margin-bottom: 4em;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    
    /* size */
    width: 50%;
    height: 30vw;
    overflow: hidden;
    
    /* styling */
    background-color: rgba(255, 255, 255, 0.2);
    
    /* make unselectable (includes buttons) */
    -webkit-user-select: none; /* Chrome/Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    /* Rules below not implemented in browsers yet */
    -o-user-select: none;
    user-select: none;
}

.slideshow img {
    /* position */
    /*position: absolute;
    top: 0%;*/
    
    /* size */
    width: 100%;
}

.slideshow .slideshow_button {
    /* styling */
    display: block;
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(255, 255, 255);
    font-size: 130%;
    padding: 1em;
    border-radius: 0.3em;
    
    /* position */
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    
    /* change cursor */
    cursor: pointer;
}

.slideshow .slideshow_button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slideshow .button_left {
    left: 2%;
}

.slideshow .button_right {
    right: 2%;
}

/* ==============================================================
Error page css
============================================================== */
#error_div {
    position: absolute;
    top: 38%;
    width: 100%;
    
    text-align: center;
}

#error_title {
    white-space: nowrap;
    
    font-size: 500%;
    font-weight: lighter;
    
    /* animation */
    position:relative;
    top: 0;
    color: rgba(255, 255, 255, 1);
}

#error_subtitle {
    font-size: 140%;
    
    /* bottom border */
    /*padding: 2em;
    border-bottom: solid;
    border-width: 1.5px;
    border-color: #c33;*/
    
    /* animation */
    position: relative;
    top: 0;
    color: rgba(140, 140, 140, 1);
}

#error_div img {
    margin: 1.1em;
    height: 2.2em;
}

#error_hotlinks {
    margin: 0.8em;
}

/* ==============================================================
Source CSS (ex: image source url)
============================================================== */
.source {
    font-size: 80%;
    color: rgb(80, 80, 80);
    display: block;
}

.footer_source {
    font-size: 90%;
    color: rgba(0, 0, 0, 0.6);
    display: block;
}

#footer_sources {
    padding-bottom: 1em;
    display: block;
    margin: auto;
}

/* ==============================================================
Breakpoints
============================================================== */
/*http://www.w3schools.com/css/css_rwd_mediaqueries.asp*/
@media only screen and (max-width: 1024px) {
    /* main style */
    #subtitle {/*display: none;*/}
    #title {font-size: 350%;}
    #title_div {
        width: 65%;
    }
    #container {font-size: 1em;}
    .box { 
        width: 90%;
    }
    
    .box div {
        margin: 1em;
    }
    
    /* contact css */
    #contact_form {
        width: 75%;
    }
    
    /* team tables */
    .team_container div>img { width: 90%; }
    .team_container table { width: 90%; }
    
    /* contact */
    #admin_info {
        overflow: auto;
    }
    
    /* about */
    .slideshow {
        width: 100%;
        height: 50vw;
    }
	.item_list_table .item_image img {
		max-width: 100%;   
	}
	.item_list_table p {
		font-size: 16px;
	}
    
}