/* Stylesheet for SCTC Website */

/*
 * -- General styles --
 */
html {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0px;
  padding: 0px;
  font-family: 'Lato',
               'Open Sans',
               'Franklin Gothic',
               Arial,
               sans-serif;
  font-size: 14pt;
  overflow: auto;
}

main {
  position: relative;
  width: 70%;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 150px auto 0;
}
@media only screen and (max-width: 1000px) {
  main {
    width: 80%;
    transition: width 0.5s ease;
  }
}

main::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-image: url('../img/sctc-crest_washout.png');
  background-position: center center;
  background-size: 500px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.5;
}

main img {
  display: block;
  margin: auto;
}

a {
  text-decoration: none;
  color: #273b7b;
}

a:hover {
  color: #386bff;
}

p {
  text-align: justify;
}

h1, h2, h3, h4, h5 {
  text-align: center;
  font-family: 'Open Sans',
               'Franklin Gothic',
               Arial,
               sans-serif;
  font-weight: 600;
}

h1 {
  font-size: 30pt;
}

.logo {
  border-radius: 50%;
}

.img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-80 {
  max-width: 80%;
}

.strawberries {
  color: #273b7b;
}


/*
 * -- Common page styles --
 */
.page-content {
  width: 65%;
  max-width: 1100px;
}

.page-photo {
  border: 2px solid #444444;
}

#banner {
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  z-index: 100;
  height: 90px;
  width: 100%;
  background-color: #273b7b;
  color: white;
  font-size: 11pt;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

#banner a {
  outline: 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

#banner a:hover {
  color: #aaaaaa;
}

#banner nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  margin: auto;
  text-transform: uppercase;
}
@media only screen and (max-width: 1000px) {
  #banner nav {
    flex-direction: column;
    height: min-content;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    visibility: hidden;
  }
}

#banner nav div:first-of-type {
  margin-left: 0;
}

#banner nav div:last-of-type {
  margin-right: 0;
}

#banner nav.visible {
  visibility: visible;
}

#banner nav div {
  flex: 1;
  margin: 0 30px;
  padding: 3px 0;
  text-align: center;
}
@media only screen and (max-width :1200px) {
  #banner nav div {
    margin: 0 20px;
  }
}
@media only screen and (max-width :1000px) {
  #banner nav div {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #333333;
  }
}

#banner nav .menu-link {
  /* Ensure that the underline doesn't overflow the text */
  display: inline-block;
}
@media only screen and (max-width: 1000px) {
  #banner nav .menu-link {
    width: 100%;
    padding: 15px 0;
  }
}

#banner nav .menu-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  margin: auto;
  background-color: #aaaaaa;
  border-radius: 3px;
  transition: width 0.2s ease;
}
@media only screen and (max-width: 1000px) {
  #banner nav .menu-link::after {
    display: none;
  }
}

#banner nav .menu-link:hover::after {
  width: 100%;
}

#banner nav #center-logo {
  position: relative;
  align-self: flex-start;
  display: inline-block;
  width: 100px;
  min-width: 100px;
  height: 100px;
  margin: -2px 30px 0;
}
@media only screen and (max-width: 1000px) {
  #banner nav #center-logo {
    display: none;
  }
}

#banner nav #center-logo::after {
  content: '';
  position: absolute;
  z-index: -1;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 20px -10px #ffffff;
  opacity: 0;
  transition: opacity 0.1s ease;
}

#banner nav #center-logo:hover::after {
  opacity: 1;
}

#banner nav #center-logo img {
  position: absolute;
  width: 100%;
}

#banner .nav-icon {
  display: none;
  width: 40px;
  margin: 1em;
}
@media only screen and (max-width: 1000px) {
  #banner .nav-icon {
    display: block;
  }
}

#banner .nav-icon:hover {
  cursor: pointer;
}

#banner .nav-icon::before,
#banner .nav-icon::after,
#banner .nav-icon div {
  content: '';
  display: block;
  height: 5px;
  margin: 7px 0;
  border-radius: 3px;
  background-color: #ffffff;
  transition: all 0.2s ease
}

#banner .nav-icon.selected::before {
  transform: rotate(135deg) translate(10px, -6px);
}

#banner .nav-icon.selected::after {
  transform: rotate(-135deg) translate(10px, 6px);
}

#banner .nav-icon.selected div {
  opacity: 0;
}

#banner-content {
  display: flex;
  align-items: center;
  height: 100%;
  margin: auto;
}
@media only screen and (max-width: 1000px) {
  #banner-content {
    flex-direction: column;
  }
}

#mobile-banner-content {
  display: none;
  justify-content: space-between;
  align-items: center;
  min-height: 100%;
  width: 100%;
}
@media only screen and (max-width: 1000px) {
  #mobile-banner-content {
    display: flex;
  }
}

#mobile-logo {
  display: none;
  height: 60px;
}
@media only screen and (max-width: 1000px) {
  #mobile-logo {
    display: inline-block;
  }
}

#mobile-logo img {
  height: 100%;
  width: auto;
}

main .img-description {
  margin-top: 5px;
  text-align: center;
  font-size: 12pt;
}

main .row {
  display: flex;
}

main .col-70 {
  flex: 70%;
}

main .col-30 {
  flex: 30%;
}

#footer {
  height: 200px;
  width: 100%;
  margin: 75px 0 50px;
  text-align: center;
}

#footer .icons {
  margin: auto;
  padding: 10px 0;
  display: flex;
  width: 252px;
  align-items: center;
}

#footer .icons img {
  height: 30px;
  padding-left: 10px;
  padding-right: 10px;
}

#footer .footer-501c3 {
  margin: auto;
  font-size: 10px;
  font-family: 'Open Sans';
               'Franklin Gothic',
               Arial,
               sans-serif;
}

#footer .copyright {
  margin: auto;
  font-size: 10px;
  font-family: 'Open Sans';
               'Franklin Gothic',
               Arial,
               sans-serif;
  padding-bottom: 20px;
}


/*
 * -- Homepage styles --
 */
#homepage main {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}
@media only screen and (max-width: 600px) {
  #homepage main {
    flex-direction: column-reverse;
  }
}

/* Create the homepage background photo */
#homepage main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  background-image: url('../img/homepage/ptreyes.jpg');
  background-position: center;
  background-size: 65%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  opacity: 1;
}
@media only screen and (max-width: 600px) {
  #homepage::before {
    background-size: 70%;
    backdrop-filter: contrast(25%) brightness(150%);
  }
}

#homepage main.loaded {
  opacity: 1;
}

#homepage .loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #333333;
  font-size: 60pt;
}

#homepage .loader .logo {
  animation: pulse 2.5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
@keyframes pulse {
  0% { box-shadow: none; }
  50% { box-shadow: 0 0 50px #5591f2; }
  100% { box-shadow: none; }
}

#masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-bottom: 25px;
  color: #273b7b;
  text-shadow: -1px -1px 0 #cccccc,
               1px -1px 0 #cccccc,
               -1px 1px 0 #cccccc,
               1px 1px 0 #cccccc;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.4s ease;
}
@media only screen and (max-width: 625px) {
  /* Disable transition when switching to mobile-style layout */
  #masthead {
    transition: all 0s ease;
  }
}
@media only screen and (max-width: 600px) {
  #masthead {
    justify-content: space-between;
    flex: 1;
    padding-bottom: 0;
  }
}

#brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: inherit;
}
@media only screen and (max-width: 600px) {
  #brand {
    flex-direction: column-reverse;
    justify-content: space-between;
    flex: 1;
  }
}

#brand .logo {
  width: 120px;
  margin: 0 auto;
  box-shadow: 0 0 10px #eeeeee;
}
@media only screen and (max-width: 600px) {
  #brand .logo {
    margin: 10px 0;
    box-shadow: 0 0 10px rgba(242, 242, 242, 1);
  }
}

#brand #title {
  margin: 10px 0;
  border-radius: 100px;
  box-shadow: -3px -3px 20px rgba(242, 242, 242, 0.4),
              3px -3px 20px rgba(242, 242, 242, 0.4),
              -3px 3px 20px rgba(242, 242, 242, 0.4),
              3px 3px 20px rgba(242, 242, 242, 0.4);
  background-color: rgba(242, 242, 242, 0.5);
  font-size: 44pt;
  font-weight: bold;
  transition: inherit;
}
@media only screen and (max-width: 1150px) {
  #brand #title {
    margin-top: 30px;
    font-size: 24pt;
  }
}
@media only screen and (max-width: 600px) {
  #brand #title {
    box-shadow: none;
    background-color: transparent;
  }
}

#brand #title .avoid-wrap {
  display: inline-block;
}

#masthead nav {
  transition: inherit;
}

#masthead #navbar {
  display: flex;
  justify-content: space-around;
  width: 1000px;
  font-size: 20pt;
  transition: inherit;
}
@media only screen and (max-width: 1150px) {
  #masthead #navbar {
    width: 600px;
    font-size: 12pt;
  }
}
@media only screen and (max-width: 600px) {
  #masthead #navbar {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    font-size: 16pt;
  }
}

#masthead #navbar a {
  color: #273b7b;
}
@media only screen and (max-width: 600px) {
  #masthead #navbar a {
    width: 100%;
    height: 100%;
  }
}

@media only screen and (max-width: 600px) {
  #masthead #navbar div {
    padding: 5px 0;
    border-top: 2px solid #aaaaaa;
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
  }
}

#masthead #navbar div:hover {
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(256, 256, 256, 0.8);
  background-color: rgba(256, 256, 256, 0.3);
  color: #183074;
}

#homepage #media-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45px;
  width: 100%;
  background-color: rgba(52, 51, 49, 0.8);
  transition-property: width, margin, background-color, border-radius;
  transition-duration: 0.3s;
}
@media only screen and (min-width: 1900px) {
  #homepage #media-bar {
    width: 200px;
    margin-left: 50px;
    background-color: rgba(40, 40, 40, 0.8);
    border-radius: 20px;
  }
}

#homepage #media-bar img {
  height: 30px;
  width: 30px;
  margin: 0 5px;
}

#homepage #media-bar img:hover {
  border-radius: 15px;
  box-shadow: 0 0 5px #111111;
}


/*
 * -- "About" page styles --
 */
#about #coaching .coach {
  margin-top: 50px;
}

#about ul li {
  margin: 10px 0;
}


/*
* --"Membership" page styles --
*/

#membership .reasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

#membership .reason {
  height: 160px;
  width: 320px;
  margin: 10px;
  border: 2px solid #cccccc;
  border-radius: 10px;
  background-color: #d6d4d0;
  box-shadow: 2px 2px 5px #bbbbbb;
  color: #2c354e;
  list-style: none;
}

#membership .reason div {
  padding: 10px 30px;
  font-size: 12pt;
  letter-spacing: 1px;
}

#membership .reason .concept {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background-color: #343331;
  color: white;
  font-size: 10pt;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#membership .join-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

#membership .join-step {
  display: flex;
  flex-direction: column;
  width: 275px;
  margin: 10px;
  padding: 30px;
  border: 2px solid #cccccc;
  border-radius: 20px;
  background-color: #d5d5d5;
  box-shadow: 2px 2px 5px #bbbbbb;
}

#membership .join-step .step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 250px;
}

#membership .join-step .step-header .step-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px;
  margin-bottom: 25px;
  text-align: center;
  font-family: 'Open Sans',
               'Franklin Gothic',
               Arial,
               sans-serif;
  font-size: 16pt;
  font-weight: 600;
}

#membership .join-step .step-header .icon {
  width: 125px;
  margin: 0 auto;
}

#membership .join-step p {
  margin: 10px 0;
  text-align: left;
}


/*
 * -- "Roster" page styles --
 */
.type-title {
  margin: 0px 0px 40px;
  padding: 3px;
  border-radius: 50px;
  background: rgb(39,59,123);
  background: linear-gradient(135deg, rgba(39,59,123,1) 0%, rgba(34,34,34,1) 10%, rgba(34,34,34,1) 90%, rgba(39,59,123,1) 100%);;
  color: #eeeeee;
  text-transform: uppercase;
}

.type-subtitle{
  font-weight: normal;
  font-size: 15px;
}

.member-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.member-tile {
  position: relative;
  height: 150px;
  width: 150px;
  margin: 5px;
  overflow: hidden;
  border: 2px solid #666666;
  border-radius: 50%;
  transition: all 0.1s ease 0s;
}

.member-tile:not(.silhouette):hover {
  z-index: 2;
  height: 350px;
  width: 350px;
  margin: -95px;
  transition: all 0.1s ease 0.15s
}

.member-tile .member-photo {
  height: 100%;
  width: 100%;
}

.member-tile .member-name {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0);
  height: 75px;
  width: 100%;
  text-align: center;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.7);
  transition: all 0.1s ease 0s;
}

.member-tile.silhouette .member-name {
  transform: translate(-50%, -50%);
  background-color: transparent;
}

.member-tile:hover .member-name {
  opacity: 1;
  transition: all 0.1s ease 0.15s
}

.member-tile.silhouette:hover .member-name {
  transition-delay: 0s;
}

.member-tile .name {
  margin: 0;
  text-align: center;
}

.member-tile .first.name {
  margin-top: 10px;
  font-size: 12pt;
}

.member-tile .last.name {
  font-weight: 600;
  text-transform: uppercase;
}


/*
 * -- Records page styles --
 */

#records main {
  width: 100%;
}


/*
 * -- Racing page styles --
 */

main .large-img-description {
  text-align: center;
  font-size: 15px;
  padding: 5px;
 }

a.view-records {
  text-decoration: underline;
  color: #273b7b;
}

#race-photo-slideshow {
  position: relative;
  max-width: 980px;
  margin: 25px auto;
  border: 2px solid #444444;
  color: white;
  background-color: #444444;
}

#race-photo-slideshow .slideshow-button {
  position: absolute;
  top: 50%;
  display: inline-block;
  padding: 8px 16px;
  border: none;
  color: #fff !important;
  background-color: #000 !important;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transform: translate(0%, -50%);
  overflow: hidden;
}

#race-photo-slideshow .slideshow-button-left {
  left: 0%;
}

#race-photo-slideshow .slideshow-button-right {
  right: 0%;
}

a.race-results {
  font-weight: 600;
}
