#footer {
  clear: both;
  color: #fff;
  background-color: #6d6d6d;
  text-align: left;
  padding: 5px;
  height: 20px;
  padding-left: 100px;
  font-size: 90%;
}
#footer img {
  width: 20px;
  height: 20px;
}
#footer ul {
  float: right;
  padding: 0;
  margin: 0;
}
#footer li {
  float: right;
  list-style: none;
  margin-left: 5px;
}
/* start with desktop */
/* from fringestyle.css*/
.fringecommunity, .fringe {
  background-color: #f08828;
  color: white;
}
.forfamilies, .childrensevents {
  background-color: rgb(148, 31, 35);
  color: white;
}
.comedy {
  background-color: rgb(222, 31, 97);
  color: white;
}
.dance {
  background-color: rgb(27, 166, 187);
  color: white;
}
.film {
  background-color: rgb(66, 173, 75);
  color: white;
}
.music {
  background-color: rgb(222, 180, 8);
  color: white;
}
.spokenword {
  background-color: rgb(234, 125, 111);
  color: white;
}
.streettheatre {
  background-color: rgb(168, 183, 65);
  color: white;
}
.theatre {
  background-color: rgb(37, 31, 80);
  color: white;
}
.visualarts {
  background-color: rgb(224, 170, 206);
  color: white;
}
.otherevents, .andmore {
  background-color: rgb(20, 72, 36);
  color: white;
}
div.float {
  float: left;
  margin: 10px 10px 10px 10px;
}
div.float p {
  text-align: center;
}

body {
  font: arial, hevetica, sans-serif;
}
h1 {
  color: #f08828;
  font-size: 2em;
}
h2 {
  font-size: 1.5em;
}
#menu {
  float: left;
  width: 20%;
  border-left: 1px solid #c5c877;
  padding-left: 15px;
  padding-right: 15px;
  min-height: 26em;
}

#menu ul {
  margin-left: 0;
  padding-left: 0;
  list-style-type: none;
  line-height: 165%;
}
#contents {
  clear: both;
  float: left;
  width: 50%;
  padding-right: 20px;
}

#contents ul {
  margin-left: 15px;
  padding-left: 0;
  line-height: 165%;
}
a:link {
  color: #b52c07;
}
a:visited {
  color: #600;
}

.imagefloat {
  float: right;
  padding: 20px;
  margin: 0 0 15px 50px;
  border: 0;
  max-width: 400px;
}
div.spacer {
  clear: both;
}
div.float {
  float: left;
  margin: 10px 10px 10px 10px;
}
div.float p {
  text-align: center;
}
#subnav {
  float: right;
  color: #fff;
  padding: 2px 0;
  margin-bottom: 22px;
}
#subnav ul {
  margin: 0 0 0 20px;
  padding: 0;
  list-style-type: none;
  border-left: 1px solid #c4c769;
}

#subnav li {
  display: inline;
  padding: 0 5px;
  border-right: 1px solid #c4c769;
}

.progcover {
  display: inline-block;
  padding: 2px;
  margin: 3px;
  border-style: solid;
  border-width: 1px;
  border-color: #f08828;
}

.youtube1 {
  float: left;
  width: 350px;
  height: 300px;
  padding: 20px;
}

/*Create a horizontal list with spacing*/
nav li {
  display: inline;
  float: left;
}

/*Style for menu links*/
nav li a {
  background-color: #6d6d6d;
  color: #fff;
  display: block;
  padding: 5px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  text-decoration: none;
}

/*Hover state for top level links*/
nav li:hover a {
  color: #fff;
  background-color: #272900;
}

/*Style for dropdown links*/
nav li:hover ul a {
  background: #f3f3f3;
  color: #2f3036;
  height: 35px;
  line-height: 35px;
}

/*Hover state for dropdown links*/
nav li:hover ul a:hover {
  background: #19c589;
  color: #fff;
}

/*Hide dropdown links until they are needed*/
nav li ul {
  display: none;
}

/*Make dropdown links vertical*/
nav li ul li {
  display: block;
  float: left;
}

/*Prevent text wrapping*/
nav li ul li a {
  width: auto;
  min-width: 100px;
}

/*Display the dropdown on hover*/
nav ul li a:hover + .hidden,
.hidden:hover {
  display: block;
}

#contents,
#justcontents {
  font: 85% arial, hevetica, sans-serif;
  min-height: 26em;
  margin-bottom: 10px;
  margin-left: 100px;
  clear: both;
}
#subnav {
  font: 85% arial, hevetica, sans-serif;
  margin-left: 100px;
}

/*
.panel {
  float: left;
  width: 250px;
  height: auto;
  margin: 5px;
  padding: 0;
  font-size: 1em;
  color: black;
  text-align: center;
}
*/

.panel img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* From fringestyle.css */
header,
#header {
  margin-left: 100px;
  margin-bottom: 8px;
  background-image: url(header600.png);
  background-repeat: no-repeat;
  background-position: 0 0;
  position: relative;
  height: 156px;
}

.loginbutton {
  width: 150px;
  color: #fff;
  background-color: #6d6d6d;
  padding: 6px;
  margin: 3px;
}
#toplogin {
  position: absolute;
  top: 90px;
  left: 720px;
}

.rounded {
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 2px 8px;
  background: ButtonFace;
  color: ButtonText;
  border-style: solid;
  border-width: 2px;
  border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
  cursor: pointer;
}
.btn:active {
  border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
.btn:link {
  color: #000;
}
.btn:visited {
  color: #000;
}

.orange {
  background: #f08828;
  color: black;
}

.btnBig {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
}
.btnMed {
  padding: 6px 15px;
  font-size: 14px;
  font-weight: bold;
}
#search {
  position: absolute;
  top: 125px;
  left: 720px;
  width: 100px;
  padding: 6px 15px 6px 30px;
  margin: 3px;
  background: url(search.png) no-repeat 8px 6px;
  background-color: #ffdda9;
}
.search {
  width: 100px;
  padding: 6px 15px 6px 30px;
  margin: 3px;
  background: url(search.png) no-repeat 8px 6px;
  background-color: #ffdda9;
}

.loginbutton:hover {
  color: #fff;
  background-color: #272900;
}

nav input[type='checkbox'] {
  min-height: 80px;
  min-width: 80px;
  padding: 10px;
}

.cards {
  width: 860px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 250px);
  gap: 10px;
  padding: 10px;
}

.cards a {
  text-decoration: none;
}

/* Base card styles */
.card,.panel {
  width: 250px;
  
  margin: 0;
  padding: 0;
  font-size: 1em;
  color: black;
  text-decoration: none;
  text-align: center;

  height: 100%;            /* key change */
  display: flex;           /* optional but useful */
  padding-bottom: 5px;
  flex-direction: column;
}

/* Normal card */
.card {
  background-color: rgb(248, 156, 86);
}

.card:hover {
  opacity: 0.8;
}

.card img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Text spacing – explicit to avoid OS/font differences */
.card h1 {
  font-size: 1.5em;
  color: black;
  margin: 0.4em 0 0.3em;
  flex: 0 0 auto;
}

.card p {
  margin: 0;
  padding-left: 15px;
  padding-right: 15px;
  line-height: 1.3;
  flex: 0 0 auto;
}

.cardtall {
    float:left;
    width:250px;
    height:400px;
    margin:5px;
    padding:0;
    font-size: 1em; color: black;
    text-align: center;
    text-decoration: none
}
.cardtall h3 {
    background-color: rgb(248,156,86);
    height: 30px;
    padding: 10px;
}

/*Responsive Styles*/

@media screen and (max-width: 860px) {
  nav[role='navigation'] ul {
    padding-left: 0;
  }
  /*Make dropdown links appear inline*/
  #nav ul {
    position: static;
    display: none;
    padding-left: 0;
  }
  /*Create vertical spacing*/
  #nav li {
    margin-bottom: 1px;
  }
  /*Make all menu links full width*/
  #nav ul li,
  li a {
    padding-left: 0;
  }
  /*Display 'show menu' link*/
  .show-menu {
    display: block;
  }

  header,
  #header {
    margin-left: 0;
    height: 0;
    padding: 0;
    /* remove any pre-existing padding, just in case */
    padding-bottom: 25.67%;
    /* w/h*100 */
    background-image: url(header480.png);
    background-position: center top;
    background-size: 100%;
    background-repeat: no-repeat;
  }

  #toplogin {
    display: none;
  }

  #search {
    display: none;
  }
  #menu,
  #justcontents,
  #contents {
    margin-left: 0;
    float: none;
    width: 95%;
  }

  #footer {
    padding-left: 5px;
    height: 15px;
  }
  #footer img {
    width: 15px;
    height: 15px;
  }
}

/* Advanced Checkbox Hack */
body {
  -webkit-animation: bugfix infinite 1s;
}

@-webkit-keyframes bugfix {
  from {
    padding: 0;
  }
  to {
    padding: 0;
  }
}
nav input[type='checkbox'] {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

nav label {
  display: none;
  cursor: pointer;
  user-select: none;
}

.login {
  display: none;
}

/* custom-dropdown */
nav[role='navigation'] {
  background-color: #6d6d6d;
  width: 100%;
  height: 35px;
}
nav[role='navigation'] a {
  background-color: #6d6d6d;
  color: #fff;
  display: block;
  padding: 5px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  text-decoration: none;
}
nav[role='navigation'] ul {
  padding-left: 100px;
  margin: 0;
  list-style: none;
}
nav[role='navigation'] ul > li {
  float: left;
  cursor: pointer;
}
nav[role='navigation'] ul > li:hover {
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  box-shadow: 0 0.05em 0.25em 0 rgba(0, 0, 0, 0.35),
    inset 0 0 0 2em rgba(0, 0, 0, 0.3);
}
nav[role='navigation'] ul > li:hover > a {
  color: #fff;
}

.latest {
  position: relative;
  top: 0;
 // left: -60px;
  padding-left: 10px;
  padding-top: 10px;
  line-height: 1.5em;
  font-weight: bold;
  width: 800px;
}
.latest strong {
  color: white;
  font-weight: normal;
  background-color: rgb(246, 128, 38);
  padding: 3px;
}
/*
.latest p:nth-child(n + 2) {
  padding-left: 50px;
}
.latest:before {
  content: url(megaphone.png);
  float: left;
}
*/
.latest .more {
  padding-left: 15px;
  font-size: 10px;
  font-weight: normal;
  color: rgb(246, 128, 38);
}
.latest div {
  clear: both;
  margin-left: 50px;
}
hr {
  margin-left: 5px;
  width: 770px;
  height: 5px;
  background: url(dots.png) repeat;
  border: none;
}
.notice strong {
  color: white;
  font-weight: normal;
  background-color: rgb(246, 128, 38);
  padding: 3px;
}
.notice:before {
  content: url(megaphone.png);
  float: left;
}
/* small screens 
*/
@media screen and (max-width: 700px) {
  html,
  body {
    margin: 0;
  }
  .latest p:nth-child(n + 2) {
    padding-left: 0px;
  }
  #contents,
  #justcontents,
  #subnav {
    margin-left: 0;
    padding-left: 5px;
    padding-bottom: 10px;
  }
  .login {
    display: inline;
  }

  .imagefloat {
    max-width: 300px;
    float: right;
    padding: 2px;
    margin: 0 0 10px 10px;
    border: 0;
  }
  .latest {
    position: static;
    top: 0;
    left: 0;
    padding-left: 30px;
    padding-top: 10px;
    line-height: 1.5em;
    font-weight: bold;
    width: 500px;
  }
  hr {
    width: 100%;
  }
  .cards {
    width: 540px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}
@media screen and (max-width: 890px) {
  nav[role='navigation'] ul {
    padding-left: 0;
    display: none;
    width: 100%;
    height: 100%;
  }
  nav[role='navigation'] {
    height: 40px;
  }
  nav[role='navigation'] label {
    position: relative;
    display: block;
    width: 50%;
    margin: 0;
  }
  nav[role='navigation'] label:after {
    content: url(burgermenu.png);
    font-size: 1.5em;
  }
  /*
  nav[role="navigation"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
*/
  nav[role='navigation'] input[type='checkbox']:checked ~ ul {
    display: block;
  }
  nav[role='navigation'] input[type='checkbox']:checked ~ ul > li {
    width: 100%;
    opacity: 0.8;
    text-align: left;
  }
}
@media screen and (max-width: 520px) {
  .imagefloat {
    float: none;
    margin-right: 30px;
  }

  .cards {
    max-width: 300px;
  }
  .latest {
    width: 300px;
    margin-left: 0px;
  }
  #menu .card {
    margin-left: 15px;
    margin-right: 15px;
  }
  #menu .cards {
    width: auto;
  }
  .panel {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 320px) {
  .latest {
    padding-left: 10px;
  }
  .imagefloat {
    float: none;
    width: auto;
    margin: 0;
    margin-left: 5px;
  }
}
@media screen and (max-width: 359px) {
  #footer {
    height: 50px;
  }
  #footer ul {
    float: left;
    padding: 10px;
  }
}

@media screen and (min-width: 1024px) {
  header,
  #header,
  #subnav {
    margin-left: 200px;
  }

  nav[role='navigation'] ul,
  #footer {
    padding-left: 200px;
  }
  #contents {
    font: 85% arial, hevetica, sans-serif;
    margin-left: 200px;
    padding-bottom: 10px;
  }
  #justcontents {
    font: 85% arial, hevetica, sans-serif;
    width: 65%;
    margin-left: 200px;
    padding-bottom: 20px;
  }
  #toplogin {
    left: 820px;
  }

  #search {
    left: 820px;
  }
}
#menu,
#footer {
  font: 85% arial, helvetica, sans-serif;
}
#contents ul,
#justcontents ul {
  margin-left: 15px;
  padding-left: 0;
  line-height: 165%;
}
#aboutus .aboutus,
#whatson .whatson,
#takepart .takepart,
#newsandphotos .newsandphotos,
#history .history,
#hostanevent .hostanevent,
#supportus .supportus,
#community .community,
#contactus .contactus {
  color: #fff;
  background-color: #272900;
  cursor: not-allowed;
}


