
/* March 2025 */

:root
{
 --ewcColour: #878f00;  /* currently green */
}

life
{
}
* 
{
 margin: 0px;
 padding 0px;
 box-sizing: border-box;
}
body
{
 font-family: arial, verdana, helvetica, sans-serif;
 font-size: 14px;
 line-height: 1.4;
}

.container {
  display: grid;
  grid-template-areas:
    "greyL menu header greyR"
    "greyL menu content greyR"
    "greyL menu footer greyR";
  grid-template-columns: 3.5fr 4.8fr 18fr 3.5fr;
  /* gap: 5px; */
  /*background-color: #2196F3;*/
  padding: 5px;
}
.container > div {
  /*background-color: rgba(255, 255, 255, 0.8);*/
  /*padding: 10px;*/
}
.container > div.header
{
  grid-area: header;
  text-align: center;
  /*border-bottom: 1px solid black;*/
  padding: 10px;
  /*border-top: 1px solid black;*/
}
.container > div.menu {
  grid-area: menu;
  background-color: var(--ewcColour);
}
.container > div.content {
  grid-area: content;
  padding: 10px;
}
.container > div.footer {
  grid-area: footer;
}
.container > div.greyL
{
 grid-area: greyL;
 background-color: #575757;
}
.container > div.greyR
{
 grid-area: greyR;
 background-color: #575757;
}
.uline
{
 padding-bottom: 20px;
 border-bottom: 1px solid black;
}

.content p 
{
 margin-bottom: 10px;
 text-align: justify;
 width: 100%;
}

.content a
{
 color: #000000;
}

/* make full width of viewport but only appears on phone */
#bottomBar
{
 position: fixed;
 display: none;
 bottom: 0;
 width: 100%;
 transition: bottom .7s;
 background-color: var(--ewcColour);
 text-align: center;
}

#bottomBar img
{
 vertical-align: -5px;
}
}

h1
{
 font-size:2vw;
}

h2
{
 font-size: 15px;
 margin-top: 7px;
 margin-bottom: 7px;
}

sup
{
 font-size: 9px;
}
.mobile
{
 display: none;
}
.desktop
{
 display: inline;
}

/* this holds the circular hamburger menu button - visible on portrait phones           */
.floatingmenu
{
 position: fixed;
 bottom: 5%;
 right: 5%;
 border-radius: 50%;
 display: none;
}

/*-------------------------------------------------------------------*/
/* moving menu                                                       */
/* the one that slides in from the left on phones when hamburger     */
/* pressed                                                           */ 
/*-------------------------------------------------------------------*/

.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0;
  left: 0;
  background-color: var(--ewcColour); 
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}


.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #ffffff;
  display: block;
  transition: 0.3s;
}

/*-------------------------------------------------------------------*/
/* end of moving menu                                                */
/*-------------------------------------------------------------------*/



#vertmenu
{
 position: sticky;
 top: 150px;
 text-align: left;

/*font-family: Arial, Verdana, Helvetica, sans-serif;*/
font-size: 14px;
width: 100%;
padding: 0px;
margin: 0px;
margin-top: 150px;
margin-left: 0px;
/*border: 1px solid #000000;*/

}

#vertmenu h1 {
display: block;
background-color:#FF9900;
font-size: 90%;
padding: 3px 0 5px 3px;
border: 1px solid #000000;
color: #333333;
margin: 0px;
/*width:159px;*/
/*border: 1px solid red;*/
}

#vertmenu ul {
list-style: none;
margin: 0px;
padding: 0px;
padding-top: 0px;
border: none;
border-top: 1px solid #C39C4E;
}
#vertmenu ul li {
margin: 0px;
padding: 0px;
}

#vertmenu ul li a {
font-size: 14px;
display: block;
font-weight: stronger;
/*border-bottom: 1px dotted #C39C4E;*/
border-bottom: 1px solid #C39C4E;
padding: 5px 0px 3px 15px;
text-decoration: none;
color: #ffffff;
/*width:150px;*/ /*185px;*/
}

#vertmenu ul li a:hover, #vertmenu ul li a:focus {
color: #000000;
background-color: #eeeeee;
}

#bottomlinks
{
 font-size: 10px;
 margin-top: 20px;
 margin-bottom: 10px;
 text-align: center;
 margin-left: auto;
 margin-right: auto;
 width: 450px;
}

#bottomlinks ul
{
 margin-left: 0px;
 padding-left: 0px;
 list-style-type: none;
 /*float: left;*/
 /*width: 100%;*/

}

#bottomlinks li
{
 display: inline;
}

#bottomlinks a
{
 float: left;
 display: block;
 padding: .2em 1em;
 text-decoration: none;
 color: #666666;
}

#bottomlinks a:hover
{
 color: #000000;
}

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

.clr
{
 clear: both;
}

.leftimg
{
 float: left;
 margin-right: 15px;
 margin-bottom: 15px;
}
.lifeleftimg  
{
 /* for use on life page */
 float: left;
 margin-right: 15px;
 margin-bottom: 15px;
}

.rightimg
{
 float: right;
 margin-left: 15px;
 margin-bottom: 15px;
 text-align: center;
}

.liferightimg
{
 /* for use on life page */
 float: right;
 margin-left: 15px;
 margin-bottom: 15px;
 text-align: center;
}

.imgCenter
{
 text-align: center;
}

.leftimg,.rightimg,.imgCenter p
{
 /*font-style: italic;*/
 text-align: center;
 color: var(--ewcColour);
 font-weight: bold;
}

.imgCaption
{
 text-align: center;
 color: var(--ewcColour);
 font-weight: bold;
}

.imgCaptionSmaller
{
 font-size: 10px;
 text-align: center;
 color: var(--ewcColour);
 font-weight: bold;
}

.italicquote
{
 font-style: italic;
 font-weight: bold;
 text-align: center;
}

/*----------------------------------------------*/
/*           chronology table                   */
/*                                              */ 
.chronoFlex
{
 display: flex;
 flex-wrap: nowrap;
 justify-content: flex-start;
 padding-top: 10px; 
 border-top: 2px solid var(--ewcColour);
}
.year
{
 flex: 10%;
 text-align: right;
}
.chronotext
{
 flex: 90%;
 padding-left: 25px;
}

/*------------------------------------------------------------*/
/*      sources table (used in chrono and life sources pages) */
/*                                                            */
.sourceFlex
{
 display: flex;
 flex-wrap: nowrap;
 justify-content: flex-start;
}

.source
{
/* float: left;*/
 flex: 8%;
 /*width: 40px;*/
 text-align: right;
 padding-right: 10px;
}

.sourcetext
{
 /*float: right;*/
 flex: 92%;
 /*width: 630px;*/
 padding-left: 10px;
 margin-bottom: 20px;
}

/*-----------------------------------------------------------------*/
/*        List of works table                                      */

.worksFlex
{
 display: flex;
 flex-wrap: nowrap;
 justify-content: flex-start;
}

.star
{
 /*float: left;*/
 /*width: 15px;*/
 flex: 3%;
 font-family: verdana;
 font-size: 14px;
 margin: 0px;
 padding: 0px;
 vertical-align: bottom;
 font-weight: bold;
}

.imagelink
{
 flex: 97%;
 font-size: 14px;
 margin: 0px;
 padding: 0px;
}
/*----------------------------------------------------------------------*/
/*   related to works table   */
/*                            */
.imagelink a
{
 text-decoration: none;
 color: black; /* this was red, but old site and live sight both appear black despite this ALSO being red in live... ????? */
 margin: 0px;
 padding: 0px;
}

.imagelink a:hover
{
 color: blue;
}

.workslink a
{
 color: red;
}
.workslist
{
 /* -- width: 650px; -- */
}
.workstext
{
 text-align: center;
}

.workstext p
{
 text-align: center;
}

.workspace
{
 height: 20px;
}

.goToRowNormal
{
 display: inline;
}
.goToRowLandscapePhone
{
 display: none;
}

/*------------------------------------------------------------*/

.home
{
}

.life
{
 float: left;
}

/*------------------------------------------------------------*/
/* this bit adjusts layout for things like phone screens       */
/*------------------------------------------------------------*/

/*------------------------------------------------------------*/
/*   landscape phone                                          */
/*------------------------------------------------------------*/

@media only screen and (max-width: 800px)
{
 .container
 {
  grid-template-areas:
   "menu header"
   "menu content"
    "menu footer";
  grid-template-columns: 2fr 9fr;

 }
 #vertmenu
 {
  top: 80px;
  margin-top: 80px;
 }

 .goToRowNormal
 {
  display: none;
 }
 .goToRowLandscapePhone
 {
  display: inline;
 }

/*------------------------------------------------------------*/
/* typical phone portrait                                     */
/*------------------------------------------------------------*/
@media only screen and (max-width: 600px)
{
 .container
 {
  grid-template-areas:
   "header"
   "content";
  grid-template-columns: 1fr;

 }

/* this is used to modify leftimg on portrait phones so that the pic doesn't take up so much of the screen width, leaving       */
/* a small spindle of text on the right.                                                                                        */
.home
{
 max-width: 40%;
 height: auto;
}

 .lifeleftimg, .liferightimg
{
 float: none;
 margin-left: 0px;
 margin-right: 0px;
 text-align: center;
}

 .menu
 {
  display: none;
 }

 .footer
 {
  display: none;
 }

 h1
 {
  font-size: 16px;
 }

 .floatingmenu
 {
  /* the flaoting hamburger menu button on phones */
  display: inline;
 }
 #bottomBar
 {
  display: block;
 }

 /* chronology table */
 .year
 {
  flex: 15;
 }
 .chronotext
 {
  flex: 85;
 }

 .goToRowNormal
 {
  display: inline;
 }
 .goToRowLandscapePhone
 {
  display: none;
 }


}

/*-------------------------------------------------------------------*/
/* sort out anything on return to wide screen                        */
/* (ignore this section - I think ... */
/*@media only screen and (min-width: 601px)*/
/*@media only screen and (orientation: landscape) 
{
 .h1
 {
  font-size: 50px;
 }
} */
/*-------------------------------------------------------------------*/
/* end of phone adjustments                                          */
/*-------------------------------------------------------------------*/

