




/*******************************************************************************
This is the styles required to convert over the old website code.
Will eventually remove/reformat to be a little for sensible
*******************************************************************************/
.style22 {
    color: #f00;
    font-weight: bold;
}


/*******************************************************************************
This is the default settings for all pages
It is also the view used on small screens
*******************************************************************************/
:root {
    /* Colors */
    --bg-logo: #02acee;
    --bg-site-header: #02acee;
    --bg-navbar: #2d3134;
    --bg-link-hover: #02acee;
	--bg-carousel: #9a9799;
	--bg-carousel-slide: #cccbcc;
    --bg-body: #f8f8f8;
    --bg-footer: #1b1b1b;
    --bg-table-header: #666;

    --fg-navbar: #c4c5c3;
    --fg-carousel-slide: #fff;
    --fg-body: #000;
    --fg-body-heading: #666;
    --fg-link: #02acee;
    --fg-footer: #c4c5c3;
    --fg-headings: #a15500;
    --fg-headings3: #000000;
    --fg-headings-separator: #666;
    --fg-table-header: #fff;

    --border-navbar-link: 1px solid rgba(255, 255, 255, 0.2);

    /* Fonts */
    --ff-sans-serif: Verdana, Arial, Helvetica, sans-serif;
    --ff-serif: Georgia, "Times New Roman", Times, serif;
    --ff-cursive: "Brush Script MT", "Brush Script Std", cursive;
    --ff-monospace: "Courier New", Courier, monospace;
    
    /* Font Sizes */
    --fs-h1: 2.25rem;
    --fs-h2: calc(var(--fs-h1) / 1.25);
    --fs-h3: calc(var(--fs-h1) / 1.5);
    --fs-h4: calc(var(--fs-h1) / 1.75);
    --fs-h5: calc(var(--fs-h1) / 2);
    --fs-h6: calc(var(--fs-h1) / 2.25);
    

    /* Site Settings */
    --whitespace-columns: 15%;

    scroll-behavior: smooth;
    font-size: 12px;

    /* z-index general layers */
    --zi-dropdown: 100;
    --zi-fixed: 200;
}


/* Defaults */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
    padding: 0;
}



body {
    display: grid;
	font-family: var(--ff-sans-serif);
	font-weight: 400;
	line-height: 1.5rem;
    color: var(--fg-body);
    background: var(--bg-body);
}

section {
    margin: 10rem 0;
}

section:first-of-type {
    margin-top: 3rem;
}


article {
    margin: 10rem 0;
}

article:first-of-type {
    margin: 1rem 0;
}

img {
    max-width: 100%;
    padding: 5px;
    border: 1px solid black;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-serif);
    font-weight: bold;
    padding-bottom: .5rem;
    line-height: 2.5rem;
    color: var(--fg-headings);
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    color: var(--fg-headings3);
}

h4 {
    font-size: var(--fs-h4);
}

h5 {
    font-size: var(--fs-h5);
}

h6 {
    font-size: var(--fs-h6);
}

hr {
    width: 100%;
    border: none;
    border-bottom: 0.1rem dotted var(--fg-headings-separator);
}

p {
    margin-bottom: 1rem;
    font-size: 1.07rem;
}


table {
    margin: 10px 0;
    width: 100%;
}

table thead th {
    background: var(--bg-table-header);
    color: var(--fg-table-header);
    font-weight: bold;
    font-size: 1.25rem;
    padding: 5px;
}

table tbody td {
    padding: 5px;
}

td#upcomingDates, th#upcomingDates {
    padding: 5px;
    font-weight: bold;
}

td#upcomingDates:first-child {
    font-weight: normal;
}

/* BUTTON 1 - large */
a.button1 {
    flex-basis: auto;
    justify-content: center;
    padding:0.7em 1.5em;
    margin:0 0.3em 0.3em 0;
    border-radius:2em;
    box-sizing: border-box;
    text-decoration:none;
    font-family:'Roboto',sans-serif;
    font-size:2rem;
    font-weight:400;
    background-color:#2d3134;
    text-align:center;
    transition: all 0.2s;
    position:relative;
}

a.button1:hover{
    background-color:#4D4D4D;
}

@media all and (max-width:30em) {
    a.button1 {
        display:block;
        margin:0.2em auto;
        
    }
}

/* BUTTON 2 - medium - Black with White Font */
a.button2 {
    flex-basis: auto;
    justify-content: left;
    padding:0.7em 1.5em;
    margin:0 0.3em 0.3em 0;
    border-radius:2em;
    box-sizing: border-box;
    text-decoration:none;
    font-family:'Roboto',sans-serif;
    font-size:1.35rem;
    font-weight:400;
    background-color:#2d3134;
    text-align:center;
    transition: all 0.2s;
    position:relative;
}

a.button2:hover{
    background-color:#FFC2B4;
}

/* BUTTON 3 - medium - Black with White Font */
a.button3 {
    flex-basis: auto;
    justify-content: left;
    padding:0.7em 1.5em;
    margin:0 0.3em 0.3em 0;
    border-radius:2em;
    box-sizing: border-box;
    text-decoration:none;
    font-family:'Roboto',sans-serif;
    font-size:1.35rem;
    font-weight:400;
    background-color:#2d3134;
    color: #ffffff;
    text-align:center;
    transition: all 0.2s;
    position:relative;
}

a.button3:hover{
    background-color:#4D4D4D;
}

@media all and (max-width:30em) {
    a.button2 {
        display:block;
        margin:0.2em auto;
        
    }
}

/* ACCORDION BUTTONS PARENT BUSINESS PAGE */
/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    font-size: 1.25rem;
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #02acee;
  color: #ffffff;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 35px;
  background-color: white;
  margin: .25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.accordion:before {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: .75rem;
  color: #777;
  float: left;
  margin-right: .7rem;
}

.active:before {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}


/* TABLE */
/* Class table-bordered adds a border on all cells of the table */
.table-bordered, .table-bordered th, .table-bordered td {
    border: 1px solid black;
    border-collapse: collapse;
}

/* Class table-rows--alternating makes it so the table alternates light & dark colors */
.table-rows--alternating tr:nth-child(even) {
    color: #666666;
    background-color: #e8e8e8;
}

.table-rows--alternating tr:nth-child(even) a {
    background-color: #e8e8e8;
}

.table-rows--alternating tr:nth-child(odd) {
    color: #666666;
    background-color: #f7f7f7;
}

.table-rows--alternating tr:nth-child(odd) a {
    background-color: #f7f7f7;
}

.instructors img {
    padding: 5px;
    border: 1px solid black;
    margin: 0 10px;
}

.instructors {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
}

.instructors article {
    width: 100%;
    border-bottom: 1px dotted black;
    justify-content: left;
    align-items: flex-start;
    padding: 10px 0;
    margin: 0;
}

.instructors article div {
    align-self: center;
}

.instructors a {
    font-size: 1.75rem;
    font-weight: normal;
    font-family: var(--ff-serif);
}

.indent {
    margin-left: 50px;
}

.align-right {
    text-align: right;
}

.align-left {
    text-align: left;
}

.imgl {
    margin-right: 20px;
    float: left;
}

.imgr {
    margin-left: 20px;
    float: right;
}

.imgc {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 95%;
}

.columns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.columns-left {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.columns-right {
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: flex-start;
}


/* Header */
.site-header {
    display: grid;
    grid-template-rows: 150px auto;
    justify-items: center;
    align-items: center;
    background: var(--bg-site-header);
}

.site-header img {
    padding: 0;
    border: none;
}

.logo {
    display: flex;
    justify-content: center;
    margin: 0 var(--whitespace-columns);
    height: 100%;
}

.logo img {
    height: 100%;
    width: 100%;
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    background: var(--bg-navbar);
}

nav ul li {
    list-style: none;
    position: relative;
    transition: 0.5s;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 1.2rem;
    line-height: 2rem;
    border-right: var(--border-navbar-link);
    border-bottom: var(--border-navbar-link);
    word-wrap: normal;
}

nav ul li:hover {
    background: var(--bg-link-hover);
}

nav ul li:first-child {
    border-left: var(--border-navbar-link);
}

nav ul li a {
    display: block;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    color: var(--fg-navbar);
}

li.dropdown ul {
    display: block;
    min-width: 10ch;
    position: absolute;
    background: var(--bg-navbar);
    transition: 0.5s;
    opacity: 0;
    visibility: hidden;
}

li.dropdown:hover ul {
    opacity: 1;
    visibility: visible;
}

li.dropdown ul li {
    border-right: var(--border-navbar-link);
    border-bottom: var(--border-navbar-link);
    border-left: var(--border-navbar-link);
}


/* Website Body */
main {
    display: grid;
    grid-template-areas:
        'carousel carousel carousel carousel'
        'Lgutter main Rsidebar Rgutter'
        'footer footer footer footer';

    grid-template-columns: var(--whitespace-columns) 2fr 1fr var(--whitespace-columns);
}


/* CAROUSEL */
.carousel {
    --slide-height: 300px;

    grid-area: carousel;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: var(--bg-carousel);
    width: 100%;
    padding: 20px;
}

.carousel img {
    border: none;
}

.carousel_track {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: transform 0.05s ease-in-out;
    margin: 0 20px;
    width: 60vw;
}

.carousel_slide {
    display: none;
    flex-wrap: wrap;
    width: 100%;
    flex-shrink: 0;
    background: var(--bg-carousel-slide);
}

.carousel_slide img {
    object-fit: contain;
    max-width: 100%;
}

.slide_text {
    width: 100%;
    margin: 20px;
}

.current-slide {
    display: flex;
}

.carousel_button--left,
.carousel_button--right {
    background: transparent;
    border: 0;
    cursor: pointer;
    height: 75%;
    width: 40px;
}

.carousel_button--left img,
.carousel_button--right img {
    height: 15%;
}

.readmore {
    float: right;
}

/* Gutters */
#Lgutter {
    grid-area: Lgutter;
    max-width: var(--whitespace-columns);
}

#Rgutter {
    grid-area: Rgutter;
    max-width: var(--whitespace-columns);
}


/* main content */
#content {
    grid-area: main;
    margin-top: 0;
}

#content a {
    color: var(--fg-link);
    text-decoration: none;
    font-weight: bold;
}



/* right sidebar */
.sidebar-right {
    grid-area: Rsidebar;
    margin-left: 6rem;
}

.sidebar-right a {
    color: var(--fg-link);
    text-decoration: none;
    font-weight: bold;
}

#sidenav article {
    justify-content: left;
    align-items: flex-start;
    margin: 2rem 0;
}

#sidenav img {
    border: 1px solid black;
    width: 100px;
    height: 100px;
    margin-right: 10px;
}

.social_media {
    border: none !important;
    width: 50px !important;
    height: 50px !important;
}

#imgnews img {
    border: none;
}


/* footer */
footer {
    grid-area: footer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 2.5rem;
    background: var(--bg-footer);
    color: var(--fg-footer);
    padding: 1rem 0;
    grid-template-columns: var(--whitespace-columns) 1fr 10fr var(--whitespace-columns);
}

footer > p {
    margin-bottom: 0rem;
}

footer a {
    padding: 0rem .5rem;
    color: var(--fg-navbar);
}


/* index.php */
#page-index td:nth-child(even) {
    font-weight: bold;
}

/* dance.php */
#page-dance article {
    margin: 1rem 0 4rem 0;
}

#page-dance aside article {
    margin: 0rem 0;
}


/* staff.php */
#page-staff img {
    padding: 5px;
    border: 1px solid black;
    margin: 5px 10px;
}

#page-staff section {
    margin: 15rem 0;
}

#page-staff section:first-of-type {
    margin: 1rem 0;
}

#page-staff article {
    margin: 5rem 0;
}

#page-staff article:first-of-type {
    margin: 1rem 0;
}

/* registrationpreschool.php */
#page-registrationpreschool #step2 article {
    margin: 3rem 0;
}

#page-registrationpreschool #step2 article:first-of-type {
    margin: 1rem 0;
}

/* registrationdance.php */
#page-registrationdance #step2 article {
    margin: 3rem 0;
}

#page-registrationdance #step2 article:first-of-type {
    margin: 1rem 0;
}

/* tuitionfees.php */
#page-tuitionfees table {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

#page-tuitionfees article {
    margin: 3rem 0;
}