:root {

    /*color palette*/
    --white: #ffffff;
    --paper: #eeebe6;
    --khaki: #e3cfb4;
    --tan: #c6a49a;
    --mauve: #d68189;
    --hot_pink: #e94e77;

    --global-bg: var(--white);
    --section-primary-bg: var(--paper);
    --section-secondary-bg: var(--tan);
    --card-bg: var(--white);
    --lessons-bg: var(--khaki);
    --video-bg: var(--white);

    /*typograhpy*/
    --roboto-font: "Roboto", sans-serif;
    --roboto-variation: "wdth" 100;
    --font-weight-normal: 400;
    --style-normal: normal;

    --aubrey-font: "Aubrey", system-ui;
    --font-weight-bold: 700;
    --style-bold: bold;

    --font-size-body: 18px;
    --font-size-h1: 48px;
    --font-size-h2: 28px;
    --font-size-footer: 12px;


    /*spacing*/
    --padding-card: 10px;
    --padding-inline: 30px;
    --margin-padding: 50px;
    --margin-card: 10px;

    --margin-inline: 30px;
    --margin-bottom-h2: -6px;

    --div-max-width: 960px;
    
    --letter-spacing-h2: 1em;


    /*radius*/
    --card-radius: 10px;
    --img-radius: 10px;
    --section-radius: 10px;
    --button-radius: 10px;

}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--white);
    font-family: var(--roboto-font);
    font-size: var(--font-size-body);
    font-optical-sizing: auto;
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
}

/*fonts*/

.roboto-normal {
    font-family: var(--roboto-font);  
    font-variation-settings: var(--roboto-variation);
}

.aubrey-regular {
    font-family: var(--aubrey-font);
    font-weight: var(--font-weight-bold);
    font-style: var(--style-bold);
}

/*typography*/

header {
    font-family: var(--roboto-font);
    font-variation-settings: var(--roboto-variation);
}

p { 
    font-family: var(--roboto-font);
    font-variation-settings: var(--roboto-variation);
}

h1, h2, h3 {
    text-align: center;
}

h1 {
    font-family: var(--aubrey-font);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    font-style: var(--style-bold);
}

h2 {
    font-family: var(--roboto-font);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-h2);
    margin-bottom: var(--margin-bottom-h2);
}

h3 {
    font-size: var(--font-size-body);    
    font-variation-settings: var(--roboto-variation);
    font-weight: 300;
    font-style: var(--style-normal);
    margin: 5px auto 15px;
}

h4 {
    font-family: var(--roboto-font);        
    font-weight: var(--font-weight-bold);
    font-style: var(--style-bold);
    font-variation-settings: var(--roboto-variation);
    margin: 10px;
}

span {
  font-family: var(--roboto-font);
  font-variation-settings: var(--roboto-variation);
  margin: 0;
}

.item-header {
    font-family: var(--roboto-font);        
    font-weight: var(--font-weight-bold);
    font-style: var(--style-bold);
    font-variation-settings: var(--roboto-variation);
    text-align: left;
    margin: 30px 0 6px;
}

.text-uppercase {
    text-transform: uppercase;
}

.item-card {
    font-family: var(--roboto-font);        
    font-weight: var(--font-weight-bold);
    font-style: var(--style-bold);
    font-variation-settings: var(--roboto-variation);
    margin: 10px 0 6px;
}

footer {
    margin: 0;
    font-family: var(--roboto-font);    
    font-size: var(--font-size-footer);
    background-color: var(--tan);
    padding: var(--padding-inline);
}

footer span {
    font-size: var(--font-size-footer);
}

.text-title div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-title h1 {
    margin: 6px 0;
}

.two-button-group {
    flex-flow: row nowrap !important;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    gap: 10px;
}

/*styles*/

::selection {
  background-color: var(--mauve);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--mauve);
  color: var(--white);
}

.small-width {
    width: 350px;
}

.page-title {
    font-family: var(--roboto-font);    
    font-size: var(--font-size-h2);    
    text-transform: uppercase;
    margin-bottom: var(--margin-bottom-h2);
    text-align: left;
    padding: var(--padding-inline);
    text-shadow: 0 0 15px rgba(0, 0, 0, 20%);
    color: var(--white);
    background-color: var(--tan);
    background-image: url('../images/bg_tile.png');
}

header {
    margin: var(--padding-inline);
}

.global-bg {
    background-color: var(--white);
}

.section-primary-bg {
    background-color: var(--paper);
    padding: var(--padding-inline);
    margin: 0;
}

.section-secondary-bg {
    background-color: var(--tan);
    border-radius: var(--section-radius);
    padding: var(--padding-inline);
    color: var(--white);
    text-align: center;
    margin: 50px auto;
    max-width: 280px;
}

.div-fill {
    max-width: var(--div-max-width);
    margin: 0 auto;
}

.div-expand {
    max-width: 100%;
}

.div-gap {
    gap: 50px;
}

section {
    padding: var(--padding-inline);
}

.section-wide {
    padding: 0 0;
}

ol {
    font-family: var(--roboto-font);    
    font-variation-settings: var(--roboto-variation);
}

.card-span {
    font-family: var(--roboto-font);  
    font-size: 14px;    
    font-variation-settings: var(--roboto-variation);
}

.radio-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
}

.radio-row div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}

.checkbox-column {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
}

.checkbox-column div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

legend {
    padding: 0;
}

/*components*/

.card {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    background-color: var(--card-bg);
    font-size: 14px;
    line-height: 1.2;
    padding: var(--padding-card);
    border-radius: var(--card-radius);
    margin: 10px;
    max-width: 200px;
    min-height: 460px;
}

.lessons-card {
    background-color: var(--lessons-bg);
    line-height: 1.2;
    padding: var(--padding-card);
    border-radius: var(--card-radius);
    margin: var(--margin-card) 10px;
    text-align: center;
    max-width: 200px;
}

.video-card {
    background-color: var(--card-bg);
    line-height: 1.2;
    padding: var(--padding-card);
    border-radius: var(--card-radius);
    margin: 10px 10px;
    width: 250px;
    height: 200px;
}

.video-card img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: 150px;
}

.video-card iframe {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: 150px;
    }

.card-skill {
    display: flex;
    flex-flow: column;
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    background-color: var(--hot_pink);
    color: var(--white);
    border-radius: var(--card-radius);
    padding: var(--padding-card);    
    font-weight: var(--font-weight-bold);
    font-style: var(--style-bold);
    line-height: 1.2;
    margin: 0;
    font-size: 20px;
    text-align: center;
    width: fit-content;
}

.card-button {
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    background-color: var(--hot_pink);
    color: var(--white);
    border-radius: var(--card-radius);
    padding: var(--padding-card);    
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    line-height: 1.2;
    margin: 0;
    font-size: 20px;
    text-align: center;
    width: fit-content;
}

.enroll-button {
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    background-color: var(--hot_pink);
    color: var(--white);
    border-radius: var(--card-radius);
    padding: var(--padding-card) 20px;    
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    font-size: 16px;
    text-align: center;
    width: fit-content;
    position: relative;
    bottom: 0;
    transition: all 0.3s ease;
}

.enroll-button:hover {   
    background-color: var(--hot_pink);
    cursor: pointer;
    box-shadow: 0 2px 4px var(--tan);
    bottom: 3px;
}

.level-skill {
    color: black;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}

.section-circle {
    justify-content: center;
    align-content: center;
    background-color: var(--khaki);
    border: 2px solid var(--white);
    border-radius: 100%;
    padding: 10px;
    margin: 10px;
    min-width: 90px;
    aspect-ratio: 1 / 1;
    text-align: center;
    color: var(--hot_pink);
    box-sizing: border-box;
}

.section-circle h3 {
    font-weight: var(--font-weight-bold);
    font-style: var(--style-bold);
    line-height: 1;
    font-size: 30px;
    margin: 0;
}

.section-circle sup {
    line-height: 0;
    font-style: var(--style-normal);
    font-weight: var(--font-weight-normal);
    vertical-align: 0;
    position: relative;
    top: -0.6em;
    font-size: 0.5em;
}

img {
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

.floating-img {
    border-radius: 10px;
    object-fit: cover;
    width: px;
    max-width: 150px;
    height: auto;
}

.headmasters img {
    border-radius: 50%;
    object-fit: cover;
    max-width: 80%;
    height: auto;
}

.headmasters-align {
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    font-size: 18px;
    text-align: center;
    width: fit-content;
}

.headmasters-align h4 {
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    font-size: 18px;
    margin-bottom: -6px;
    text-align: center;
}

.headmasters-align span {
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    font-size: 12px;
    text-align: center;
}

.schoolmasters img {
    border-radius: 10px;
    object-fit: cover;
    max-width: 60%;
    height: auto;
}

.schoolmasters-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.schoolmasters-head img {
    outline: 0px solid var(--hot_pink);
    transition: outline 0.1s ease;
}

.schoolmasters-head:hover img {
    outline: 4px solid var(--hot_pink);
    transition: all 0.1s ease;
}

.schoolmasters-align h4 {
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    font-size: 18px;
    margin-bottom: -6px;
    text-align: center;
}

.schoolmasters-align span {
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    font-size: 12px;
    text-align: center;
}

.schoolmasters-align img {
    outline: 0px solid var(--hot_pink);
    transition: outline 0.1s ease;
}

.circle-img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.circle-img img {
    border-radius: 50%;
    object-fit: cover;
    min-width: 100px;
    min-height: 100px;
    outline: 0px solid var(--hot_pink);
    transition: outline 0.1s ease;
    
}

.circle-img:hover img {
    outline: 4px solid var(--hot_pink);
}

.schoolmasters-group img {
    object-fit: cover;
}

.schoolmasters-align {
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    font-size: 18px;
    text-align: center;
}

.non-img {
    max-width: 50vh;
    height: auto;
    display: flex;
}

.non-imgfooter {
    max-width: 30vh;
    height: auto;
    display: flex;
}

.main-nav {
    list-style: none;
    font-size: 12px;
    gap: 10px;
    padding: 0;
    display: flex;
}

.social-icon {
    width: 30px;            
    height: 30px;
    fill: rgba(0, 0, 0, 0.5);
    transition: fill 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    fill: rgba(0, 0, 0, 1   );
}

.social-nav {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    }

.social-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 0;
    transition: bottom 0.2s ease;
}

.social-nav li a:hover {
    bottom: 5px;
}

.form-fillup {
    display: flex;
    flex-direction: column;
}

.form-fillup label {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.form-fillup .label-aligntop {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.form-fillup label span {
    width: 100px;
    flex-shrink: 0;
    display: inline-block;
}

.form-fillup .label-aligntop span {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    margin-top: 10px;
}

.form-fillup .label-aligncenter span {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    margin-top: 10px;
}

.form-fillup input {
    font-size: 18px;
    padding: 10px;
    border:none;
    background-color: var(--paper);
    border-radius:10px;
    margin-top:10px;
    width: 100%;
}

.form-fillup input[type="radio"] {
    display: inline-block;
    min-width: auto;
    margin: 0;
}

.form-fillup select {
    font-size: 18px;
    padding: 10px;
    border:none;
    background-color: var(--paper);
    border-radius:10px;
    margin-top:10px;
    width: 100%;
}

.form-fillup textarea {
    font-size: 18px;
    padding: 10px;
    border:none;
    background-color: var(--paper);
    border-radius:10px;
    margin-top:10px;
    min-height: 100px;
    resize: vertical;
    width: 100%;
}

input[type="submit"] {
    align-self: center;
    margin: 30px 0;
    font-family: var(--roboto-font);
    font-variant: var(--roboto-variation);
    background-color: var(--mauve);
    color: var(--white); 
    font-weight: var(--font-weight-normal);
    font-style: var(--style-normal);
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 16px;
    text-align: center;
    width: fit-content;
    padding: 10px 50px;
    border: none;
    border-radius: var(--button-radius);
    position: relative;
    bottom: 0;
    box-shadow: 0px 0px 0px var(--paper);
    transition: all 0.2s ease;
}

input[type="submit"]:hover {   
    background-color: var(--hot_pink);
    cursor: pointer;
    box-shadow: 0 2px 4px var(--paper);
}


input:focus {
    outline: 2px solid var(--hot_pink);
}

select:focus {
    outline: 2px solid var(--hot_pink);
}

textarea:focus {
    outline: 2px solid var(--hot_pink);
}

/*interactive*/

.main-nav li a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--mauve);
    padding: 12px;
    border-radius: 8px;
    border: 0;
    transition: background-color 0.3s;
    position: relative;
    bottom: 0;
    box-shadow: 0px 0px 0px var(--mauve);
    transition: all 0.2s ease;
}

.main-nav li a:hover {
    background-color: var(--hot_pink);
    box-shadow: -2px 0px 4px var(--mauve);
    bottom: 5px;
}

button {
    background-color: var(--mauve);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--button-radius);
    position: relative;
    bottom: 0;
    box-shadow: 0px 0px 0px var(--paper);
    transition: all 0.2s ease;
}

button:hover {    
    background-color: var(--hot_pink);
    cursor: pointer;
    box-shadow: 0 2px 4px var(--paper);
}

/*flexbox*/

.header-flex {
    display: flex;
    flex-flow: row;
    align-content: center;
    align-items: flex-start;
    justify-content: space-between;
    max-height: 100px;
}

.footer-flex {
    display: flex;
    flex-flow: row;
    align-content: flex-start;
    align-items: center;
    justify-content: flex-start;
}

.card-stack {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.video-stack {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.stack-list {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    margin-right: auto;
}

footer .stack-list {
    margin-left: 10px;
}

.section-flex {
    display: flex;
    flex-flow: row;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.headmasters {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.schoolmasters {
    display: flex;
    flex-direction: row;
    max-width: 960px;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 0 auto;
}

.schoolmasters-group {
    display: flex;
    flex: 1.5;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 calc(50% - 20px);
    text-align: center;
}

.schoolmasters-group > div {
    width: 45%;
}

/*embedded*/

.embed-map-responsive {
    position:relative;
    text-align:right;
    width:100%;height:0;
    padding-bottom:56.25%;
}

.embed-map-container {
    overflow:hidden;
    background:none!important;
    width:100%;
    height:100%;
    top:0;
    left:0;
}

.embed-map-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    border-radius: var(--section-radius);
    box-shadow: inset 0 -20px 20px -10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 2;
}

.embed-map-frame {
    width:100%!important;
    max-width: 100%;    
    height:100%!important;
    position:absolute;
    top:0;
    left:0;
    border-radius: var(--section-radius);
}

/*media queries*/

/*mobile 360px*/

@media screen and (max-width: 360px) {

    :root {
        --div-max-width: 360px;
    }

    .header-flex {
        flex-flow: column wrap;
        align-content: center;
        align-items: center;
        justify-content: center;
        max-height: 200px;
    }

    .non-img {
        max-width: 100%;
        margin-bottom: 50px;
    }

    h1 {
        line-height: 1.0;
    }

    h2 {
        text-align: center;
        letter-spacing: .1em;
    }

    .item-header {
    text-align: left;
    margin: 0 0 6px;
    }

    h4 {
        line-height: 1.2;
    }

    .section-flex {
        display: flex;
        flex-flow: column;
        gap: 30px;
        width: 100%;
    }

    .section-flex div {
        max-width: 360px;
    }

    .section-secondary-bg {
        margin: auto 0;
        max-width: 360px;
    }

    .card {
        max-width: 100%;
        min-height: 460px;
    }

    .lessons-card {
        max-width: 100%;
    }


    footer .stack-list {
        flex-flow: column;
        justify-content: center;
        align-items: center;
        align-content: center;
        margin: 10px 0;
    }

    .footer-flex {
        flex-flow: column;
        align-content: center;
        align-items: center;
        justify-content: center;
    }

    .card-stack .lessons-card:nth-child(2) {
        display: none;
    }

    .card-stack .lessons-card:nth-child(4) {
        display: none;
    }

    .card-stack .lessons-card:nth-child(6) {
        display: none;
    }

    .card-stack .lessons-card:nth-child(10) {
        display: none;
    }

    .video-card {
        width: 100%;
        height: 100%;
    }

    .schoolmasters {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        margin: auto 0;
    }

    .headmasters {
        flex-flow:  column;
    }

    .schoolmasters img {
        max-width: 100%;
    }

    .embed-map-responsive {
        padding-bottom: 100%;
    }

    .embed-map-container,
    .embed-map-frame {
        height: 100% !important;
    }

    .div-fill {
        max-width: 360px;
        width: 100%;
        margin: 0;
        padding: 30px 30px;
    }

    .form-fillup {
        width: 100%;
    }

    .form-fillup label span {
        width: 25%;
    }

    .form-fillup .label-aligntop {
        flex-direction: column;
    }

    .radio-row {
        display: flex;
        flex-direction: column;
    }
    
    .radio-row div{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
    }

    .radio-row div label {
        flex-direction: row;
    }

    .checkbox-column {
        flex-direction: column;
    }

    .checkbox-column div label {
        flex-direction: row;
    }

    .small-width {
    max-width: 100%;
    }
}