/*layout with only main content div (no aside for contact details)*/
/*overall grid styling*/
/* Glass effect code from https://css.glass */
/*bg image from https://archive.org/details/tiled-wallpapers-collection*/

@font-face {
  font-family: MyLeaf; /* set name */
  src: url(/assets/fonts/my-leaf.regular.otf); /* url of the font */
}

body {
    margin: 0;
    background-image: url('/assets/images/bg/5_006-4.jpg');
    background-size: 200px ;
    background-attachment: fixed;
    color: rgb(14, 14, 43);
} 

.container { 
    width: 100vw;
    height: 100vh;

    display: grid;
    justify-content: center;

    grid-template: repeat(5, auto) /repeat(5, auto);
    grid-template-areas: 
        ". subcont subcont subcont ."
        ". subcont subcont subcont ."
        ". subcont subcont subcont ."
        ". subcont subcont subcont ."
        ". subcont subcont subcont .";
    background-size: 100%;
}

.sub-container {
    display: grid;
    max-width: 815px;
    
    grid-template: 120px 39px 1fr 1fr auto 40px /repeat(3, auto);
    grid-template-areas: 
        "header header header"
        "nav nav nav"
        "content content content"
        "content content content"
        "footer footer footer"; 

    gap: 10px;
    padding: 10px;
    box-sizing: border-box;

    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 15px;

    grid-area: subcont;

}
header {
    grid-row: 1 / span 1;
    grid-column: 2 / span 3;

    background: rgba(68, 255, 0, 0.203);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    grid-area: header;
}

nav {
    grid-row: 2 / span 1;
    grid-column: 2 / span 3;

    background: rgba(0, 30, 255, 0.38);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    grid-area: nav;
        a:hover {
        text-decoration: none;
}
}

.content {
    grid-row: 3 / span 2;
    grid-column: 2 / span 3;

    display: grid;
    grid-template: 1fr / 1fr 1fr 1fr;
    grid-template-areas: 
    "main main main"; 

    gap: 10px;
    box-sizing: border-box;

    grid-area: content;
}

main {
    grid-row: 3 / span 1;
    grid-column: 2 / span 3; 

    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(20px);

    grid-area: main;
}

footer {
    grid-row: 5 / span 1;
    grid-column: 2 / span 3;

    color: rgb(208, 227, 255);
    background: rgba(0, 30, 255, 0.38);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    grid-area: footer;
}

img.general {
    display: block;
    position: relative;
    max-height: 270px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0px;

    outline-color: rgba(129, 185, 237, 0.711);
    outline-style: ridge;
    outline-width: 4px;
    outline-offset: 0;
}

/* smaller-scale styling */
/*link formatting*/
a {
    color:rgb(35, 131, 66);
    text-decoration: none;
}

a:hover {
    color: rgb(221, 255, 98);
    text-decoration: underline;
}

/*border decoration and padding*/

header, nav, main, footer, aside{  
    padding-left: 21px;
    padding-right: 20px;
    outline-color: rgba(129, 185, 237, 0.711);
    outline-style: ridge;
    outline-width: 4px;
    outline-offset: 0;
}

header{
    height: 120px;
    line-height: 120px;
    text-align: center;
}

footer{
    text-align: center;
    padding-top: 13px; 
    padding-bottom: 10px; 
}

/*text styling, alignment and word breaks*/
p{
    line-height: 1.4em;
}

h1 {
    color: rgba(230, 252, 222, 0.856);
    font-family: MyLeaf;
    font-size: 65px;
    margin: 0;
}

h1::selection{
    background: rgb(21, 169, 132);
    color: rgb(206, 255, 243);
}

h2{
    font-size: x-large;
    font-weight: 800;
        text-align: center;
}

h3{
    font-size: large;
    text-decoration: underline;
}

.date, figcaption{
    display: block;
    margin-top: 0;
    font-size: 0.9em;
    font-style: italic;
}

figcaption{
    margin-top: 15px;
    margin-bottom: 0;
}

.email{
    word-break: break-all;
}

.long{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

::selection {
  background: #3874ff; 
  color: #d1dfff; 
;
}

::-moz-selection {
  background: #3874ff; 
  color: #d1dfff;
}

mark{
    background-color: rgba(221, 255, 98, 0.191);
    border-radius: 8px;
    border-style:dotted;
    border-width: 2px;
    border-color: rgba(221, 255, 98, 0.95);
}

/*navbar*/
nav ul{
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
}

nav a{
    color: rgb(208, 227, 255);
    padding: 10px;
    display: block;
    text-align: center;
}

nav a:hover{
    color: #ddffe4;
    background: #00ff2f7d;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav li{
    float: left;
}

@media all and (max-width: 479px) {
    .container {
        max-width: 100vw;
        height: auto;
        grid-template-areas: "subcont";
    }

    .sub-container {
        width: 100vw;
        grid-template-columns: 1fr;
        grid-template-rows: 120px 39px auto 40px;
        grid-template-areas: 
        "header"
        "nav"
        "main"
        "footer";
    }

    .content {
        display: contents;
    }

    h1 {
        font-size: 53px;
    }
}