/* + Reset {{{ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    /* temp for wix comparison */
    /*margin-top: 50px;*/
}

/*
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
*/

/* + }}} */

/* + Top-level body elements {{{ */

#frame_header {
    position: static;
    top: 0;
    width: 100%;
    z-index: 10;
}

@media screen and (max-width: 920px) {
    #frame_header {
        position: static;
    }
}

#frame_body {
}

/* + }}} */

.background {
    background-color: rgb(250, 250, 250);
}

/* + Content of header {{{ */

#frame_header {
    background-color: white;
    background-image: url('../img/sand_texture.png');

    display: flex;
    flex-direction: row;

    box-shadow: #888 0 0 6px;
}

#frame_header .central_column {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.site_name_bar {
    padding-top: 12px;
    padding-bottom: 12px;
}

.site_name {
    font-size: 29px;
    line-height: 1.3em;
    font-family: Brandon-Grotesque-Light;
    letter-spacing: 1.2px;
    font-weight: bold;
    float: left;
    text-decoration: none;
    width: 150px;
}

.menu {
    font-size: 15px;
    font-family: Brandon-Grotesque-Light;
    text-align: center;

    /* Spacing between site name and menu */
    padding-left: 40px;
}
.menu li {
    display: inline-block;
    padding: 3px 10px;
}
.menu li a {
    text-decoration: none;
    color: rgb(64, 64, 65);
}
.menu a:hover {
    font-weight: bold;
    border-bottom: 1px dotted black;
    color: rgb(64, 64, 65);
}


.menu_more:hover .menu2,
.menu_more:focus .menu2 {
    display: block;
}
.menu2 {
    display: none;

    position: absolute;
    font-size: 15px;
    font-family: Brandon-Grotesque-Light;
    text-align: center;

    z-index: 2;

    padding: 10px 4px 4px 4px;
    background-color: white;
    background-image: url('../img/sand_texture.png');
    margin-left: -110px;

    line-height: 1.8;
}
.menu2 li {
    display: block;
    padding: 3px 10px;
}
.menu2 li a {
    text-decoration: none;
    color: rgb(64, 64, 65);
}


/* + Popup menu {{{ */

/* */
.popup_menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;

    font-size: 28px;

    margin: 0;
    padding-left: 0;
    padding-right: 0;

    background-color: rgb(162, 172, 135);
    overflow-y: scroll;
}

/* Make menu full height */
.popup_menu {
    /*min-height: 100vh;*/
}
#frame_header {
}

/* */
.popup_menu li {
    display: block;
    padding-left: 0;
    padding-right: 0;
    padding: 10px 0;
    border-bottom: 1px solid #888;
}

.popup_menu li a {
    color: white;
}

.popup_menu {
    font-family: Brandon-Grotesque-Light;
    text-align: center;
}
.popup_menu li {
}
.popup_menu li a {
    text-decoration: none;
}

.popup_menu .site_name_bar {
    width: 100%;
}

/* + + Visibility checkbox {{{ */

#popup_menu_visibility_checkbox {
    display: none;
}

/* Show or hide popup_menu according to whether popup_menu visibility checkbox is checked */
.popup_menu {
    /*
    transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    */
}
#popup_menu_visibility_checkbox ~ .popup_menu {
    display: none;
}
#popup_menu_visibility_checkbox:checked ~ .popup_menu {
    display: block;
    /*
    opacity: 1;
    */
    /*min-height: 100vh;*/

}

/**/


#popup_menu_visibility_checkbox:checked ~ div#frame_body {
}

/* + + }}} */

/* + + Toggle button {{{ */
/* Button for toggling the visibility of popup_menu */

/* Style the container */
.popup_menu_toggle_button_container {
    /* Fix it at the top-right of the viewport */
    position: fixed;
    right: 16px;
    top: 16px;  /* same as margin of site_name_bar */
    z-index: 30;

    /* Set size */
    width: 30px;
    height: 29px; /* same as heading font */

    /* Act like a button */
    cursor: pointer;

    /* Centre contents */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Hide by default */
    visibility: hidden;

    /*
    background-color: white;
    background-image: url('../img/sand_texture.png');
    width: 36px;
    height: 30px;
    border-radius: 6px;
    */
}

/* Show the button only on narrow viewports or when the popup menu is already visible */
@media screen and (max-width: 920px) {
    .popup_menu_toggle_button_container {
        visibility: visible;
    }
}
#popup_menu_visibility_checkbox:checked ~ .popup_menu_toggle_button_container {
    visibility: visible;
}

/* Make the icon appear as a grey hamburger */
.popup_menu_toggle_button,
.popup_menu_toggle_button::before,
.popup_menu_toggle_button::after {
    position: absolute;
    height: 4px;
    width: 30px;
    border-radius: 2px;

    background-color: #888;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1),
                background-color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.popup_menu_toggle_button::before {
    content: '';
    margin-top: -8px;
}

.popup_menu_toggle_button::after {
    content: '';
    margin-top: 8px;
}

/* When the popup menu is visible, change appearance to a white X */
#popup_menu_visibility_checkbox:checked ~ .popup_menu_toggle_button_container .popup_menu_toggle_button {
    background-color: rgba(255, 255, 255, 0);
}
#popup_menu_visibility_checkbox:checked ~ .popup_menu_toggle_button_container .popup_menu_toggle_button::before {
    content: '';
    margin-top: 0px;

    background-color: rgb(255, 255, 255);

    transform: rotate(45deg);
}
#popup_menu_visibility_checkbox:checked ~ .popup_menu_toggle_button_container .popup_menu_toggle_button::after {
    content: '';
    margin-top: -0px;

    background-color: rgb(255, 255, 255);

    transform: rotate(-45deg);
}

/* + + }}} */

/* + }}} */


/*
 Pocophone breakpoints
  portrait
   395/396
  landscape
   743/744
*/
/* On narrow screens */
@media screen and (max-width: 920px) {
    /* Make site name flow normally across whole screen width */
    #frame_header .central_column {
        max-width: none;
        width: 100%;
        margin: 0 0em;
        padding: 0 0em;
        text-align: left;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: normal;

        height: 100%;
    }
    .site_name {
        float: none;
        width: auto;
        /*font-size: 48px;*/
    }

    .site_name_bar {
        margin-left: 16px;
        margin-right: 16px;
    }

    .menu {
        padding-left: 0;
    }

    #frame_header .menu {
        display: none;
    }
}

/* + }}} */

/* + Content of body {{{ */

h1 {
    font-family: Brandon-Grotesque-Light, sans-serif;
    font-size: 55px;
    font-weight: normal;
    line-height: 1.4em;
}
h2 {
    font-family: Brandon-Grotesque-Light, sans-serif;
    font-size: 30px;
    font-weight: normal;
    line-height: 1.4em;
}

/* + }}} */

/* + Layout helpers {{{ */

.central_column {
    /* Make a centred column */
    max-width: 924px;
    margin: auto;

    /* Don't touch edges on narrow screens */
    padding: 0 16px;
}

.two_columns {
    /* Horizontally centre item (if explicit width is set elsewhere) */
    margin-left: auto;
    margin-right: auto;

    /* Treat contents as columns */
    display: flex;
    flex-direction: row;
}
/* Adaptation to small screens */
@media screen and (max-width: 920px) {
    .two_columns {
        display: block;
    }
    .two_columns > * {
        width: 100%;
        /*border: 1px solid red;*/
    }
}

.multiple_columns {
    /* Horizontally centre item (if explicit width is set elsewhere) */
    margin-left: auto;
    margin-right: auto;

    /* Treat contents as columns */
    display: flex;
    flex-direction: row;
}
/* Adaptation to small screens */
@media screen and (max-width: 920px) {
    .multiple_columns {
        flex-direction: column;
    }
    .multiple_columns > * {
        /*width: 100%;*/
        /*border: 1px solid red;*/
    }
}
/* + }}} */

/* + Default appearance {{{ */

/* Colours */
body {
    background-color: rgb(253, 246, 235);
    color: rgb(64, 64, 65);
}
a {
    color: rgb(64, 64, 65);
}

/* Fonts */

body {
    font-family: Brandon-Grotesque-Light, sans-serif;
    font-size: 23px;
    line-height: 1.3;
}

body {
}

/* + }}} */

.dark_background_box {
    background-color: rgba(50, 50, 50, 0.7);

    padding: 2em;

    /* Light-coloured text */
    color: white; 
}
.dark_background_box a {
    color: white; 
}
.dark_background_box h1 {
    color: white; 
}
.dark_background_box h2 {
    font-weight: bold;
}

#frame_footer {
    padding: 1.5em 0;

    font-size: 12px;
    font-family: Brandon-Grotesque-Light, sans-serif;

    letter-spacing: 0.05em;

    text-align: center;
}

/* + Special widgets {{{ */

.book_an_appointment {
    margin: auto;
    border: none;
    width: 190px;
    height: 50px;
    display: block;
    overflow: hidden;
}

/* + }}} */
