/* Background Color Shades; Use Primary PTA.org Colors for Header Text */

.redbg {
  border-radius: 25px;
  padding: 15px;
  background-color: #fdeae8;
  margin: 25px 0px;
}

.orangebg {
  border-radius: 25px;
  padding: 15px;
  background-color: #feeee5;
  margin: 25px 0px;
}

.yellowbg {
  border-radius: 25px;
  padding: 15px;
  background-color: #fff5e6;
  margin: 25px 0px;
}

.greenbg {
  border-radius: 25px;
  padding: 15px;
  background-color: #f1f7e8;
  margin: 25px 0px;
}

.tealbg {
  border-radius: 25px;
  padding: 15px;
  background-color: #e1f0f2;
  margin: 25px 0px;
}

.bluebg {
  border-radius: 25px;
  padding: 15px;
  background-color: #e3e8ef;
  margin: 25px 0px;
}

.purplebg {
  border-radius: 25px;
  padding: 15px;
  background-color: #f0e7ee;
  margin: 25px 0px;
}

.whitebg {
  border-radius: 25px;
  padding: 15px;
  background-color: #f0e7ee;
  margin: 25px 0px;
}

/* Re-color of Accordion Menus; This code works but may be minified for higher efficiency */

.accordion__label-green {
  border-radius: 4px;
  width: 100%;
  margin-bottom: 20px;
  display: block;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid #a5d7f4;
  color: #FFF;
  background: #78be20;
  cursor: pointer;
  position: relative;
}

.accordion-green {
  margin-bottom: 40px;
}
.accordion-green:last-child {
  margin-bottom: 0;
}
.accordion__label-green .disclose,
.accordion__label-green .page-nav__toggle {
  position: relative;
  top: -4px;
  margin-left: .5em;
  transition: all .15s ease-out;
}
.accordion__label-green.is-active {
  border-color: rgba(37, 158, 100, .3);
  color: #259e64;
  .arrow {
    transform: rotate(90deg); }
}
.accordion__label-green.is-active .disclose,
.accordion__label-green.is-active .page-nav__toggle {
  -webkit-transform: rotate(-180deg);
      -ms-transform: rotate(-180deg);
          transform: rotate(-180deg);
  top: 0;
}
.accordion__label-green.is-active .disclose::before,
.accordion__label-green.is-active .page-nav__toggle::before {
  border-color: #259e64;
}
.accordion__label-green--image {
  min-height: 120px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  display: flex;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-justify-content: left;
  -ms-flex-pack: left;
          justify-content: left;
  -webkit-align-content: center;
  -ms-flex-line-pack: center;
          align-content: center;
}
.accordion__label-green--image .disclose,
.accordion__label-green--image .page-nav__toggle {
  top: 0;
}
.accordion__label-green ~ .accordion__label {
  margin-top: 10px;
}
.accordion__content-green {
  margin: 20px 0;
}
.accordion__content-green:last-child {
  margin-bottom: 0;
}

.accordion__title-green {
  padding: 12.5px 25px 12.5px 12.5px;
  font-weight: 400;
  background: #f1f1f1;
  position: relative;
}
.js .accordion__title-green::after {
  content: ' ';
  display: block;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom-width: 0;
  border-top-color: #7c7a52;
  position: absolute;
  right: 12.5px;
  top: 50%;
  margin-top: -5px;
  transform: scaleX(.667);
}
.js .accordion__title-green.is-active::after {
  transform: scaleX(.667) scaleY(-1);
}
.js .accordion__content-green {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .4s ease-out;
}
.js .accordion__content-green.is-active {
  max-height: 3000px;
  padding-bottom: 25px;
  opacity: 1;
  transition: all .4s ease-in;
}

/* Photo frame with scotch tape effect */
.photoframe {
  position: relative;  
  display: table;
  max-width: 90%;
  margin: 20px auto;
}
.photoframe img {
  display: table-cell;
  max-width:100%;
  height: auto;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  box-shadow: 0 0 2px #666;
  box-sizing: border-box;
}
.photoframe:before,
.photoframe:after,
.photoframebis:before,
.photoframebis:after {
  position: absolute;
  bottom: -1px;
  right: -40px;
  content: "";
  height: 40px;
  width: 80px;
  background: #fff; /* Same color as wrapper background */
  box-shadow: 0 -6px 9px -8px #333;
  transform: rotate(-45deg);
}

.photoframe:after,
.photoframebis:after {
  top: -20px;
  left: -40px;
  box-shadow: 0 6px 9px -8px #333;
}
.photoframesbis:before { 
  top: auto;
  left: -40px;
  transform: rotate(45deg);
}
.photoframebis:after {
  left: auto;
  right: -40px;
  transform: rotate(45deg);
}

/* Color fix for styling SUBMIT button on Forms */

button[type="submit"]:hover {
  background-color:#FFFFFF !important;
    text-decoration: underline !important;
  color: #006472 !important;
  cursor: pointer !important;
}


/* Video frame effect */
.videoframe {
  position: relative;  
  display: table;
  max-width: 90%;
  margin: 20px auto;
}
.videoframe iframe {
  display: table-cell;
  max-width:100%;
  height: 315px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  box-shadow: 0 0 2px #666;
  box-sizing: border-box;
}

/* Tabs (needs additional work to enhance responsiveness when tab names are longer or tabs > max screen width */
.tabset > input[type="radio"] {
  position: absolute;
  left: -200vw;
}

.tabset .tab-panel {
  display: none;
}

.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
  display: block;
}

.tabset > label {
  position: relative;
  display: inline-block;
  padding: 15px 15px 25px;
  border: 1px solid transparent;
  border-bottom: 0;
  cursor: pointer;
  font-weight: 600;
}

.tabset > label::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 10px;
  width: 22px;
  height: 4px;
  background: #eaaa00;
}

.tabset > label:hover,
.tabset > input:focus + label {
  color: #eaaa00;
}

.tabset > label:hover::after,
.tabset > input:focus + label::after,
.tabset > input:checked + label::after {
  background: #003c71;
}

.tabset > input:checked + label {
  border-color: #003c71;
  color: #5ab2e4;
  border-bottom: 1px solid #FFF;
  margin-bottom: -1px;
  background-color: #FFF;
  border-radius: 25px 25px 0px 0px;
}

.tab-panel {
  padding: 30px 0;
  border: 1px solid #003c71;
  background-color: #FFF;
  padding: 25px 25px 25px;
  border-radius: 0px 25px 25px 25px;
}

/* Pop-up overlay; may require add'l code to resolve z-index issues and consideration for mobile viewing */

.box {
  width: 40%;
  margin: 0 auto;
  background: rgba(255,255,255,0.2);
  padding: 35px;
  border: 2px solid #fff;
  border-radius: 20px/50px;
  background-clip: padding-box;
  text-align: center;
}
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 99;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 60%;
  position: relative;
  transition: all 2s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 100ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
}

@media screen and (max-width: 700px){
  .box{
    width: 70%;
  }
  .popup{
    width: 70%;
  }
}

.shadowbox{
  background-color: #ffffff;
  box-shadow: rgba(61, 61, 61, 0.2) 0px 25px 20px 0px;
  padding:20px;
  border-radius:10px !important;
  margin-bottom:40px !important;
}