@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
*{
    /*margin: 1.5em;*/
    /*margin: 10px;*/
    /*margin: 2%;*/
    /*margin: 1rem;*/
    margin: 0;
    padding: 0;
}

#square{
    list-style-type: square;
}
.roman{
    list-style-type: upper-roman;
}
body{
    font-family: Arial, Helvetica, sans-serif ;
    background-color: tan;
}
article{
    font-family: "Times New Roman", Times, serif;
}
#lorem>h2{
    font-size: 200%;
    color: #0000ff;
}
/*h2+h3{*/
/*    border: solid red 2px;*/
/*}*/
/*h3+ol{*/
/*    border: solid red 2px;*/

/*}*/
h2+h3, h3+ol{
    border: solid red 2px;
}
/*#lorem p{*/
/*    background-color: yellow;*/

/*}*/
#lorem h2+p{
    background-color: pink;
}
[href="https://my.gblearn.com/"]{
    border: dotted red 3px;
}
[href="https://www.w3schools.com/"]:hover{
    border: dotted red 3px;
}
[href="https://www.w3schools.com/"]:focus{
    border: dotted red 3px;
}
#lorem h2::first-letter{
    font-size: 250%;
    color: green;
}
/*#lorem p:last-child{*/
/*    background-color: deeppink;*/
/*}*/
ul li:first-child{
    color: red;
}
h3+ol:not(.roman) li:nth-child(2){
    background-color: lightcyan;
}
h3+ol.roman li:nth-child(2n-1){
    border: solid black 3px;
}
header>h1{
    font-size: 550%;
    text-shadow: 4px 3px 4px black;
    color: purple;
    font-family: 'Lobster', cursive;
}
#wrapper{
    background-color: tan;
    border: purple solid 4px;
    margin: 1em auto;
    width: 1024px;
}
h2, h3, h4, h5, h6{
    color: purple ;
}
header, main, footer{
    /*border: dashed blue 5px;*/
    padding: 4em;
    margin: 1.5em;

}
.button{
    display: block;
    margin: 1em 0;
    text-align: center;
    text-decoration: none;
    border: 4px purple solid;
    padding: 8px;
    border-radius: 20px;
    background-image: linear-gradient(rebeccapurple, violet);
    color: bisque;
    box-shadow: 4px 4px 6px blue;
}
nav{
    margin: 1.8em;
    position: sticky;
    top: 18px;
    /*border: red solid 3px;*/
    width: 23%;
    float: left;

}
header{
    background-image: url("../img/ahmed-abbas-rL-UGnNVy-Q-unsplash.jpg");
    background-size: cover;
    background-position: center;
    text-align: center;
}
figure{
    overflow: hidden;
}
figure>img{
    width: 100%;
    border: solid 4px black;
    padding: 10px;
    /*margin: 10px;*/
    box-sizing: border-box;
}
#logo{
    width: 100px;
    position: absolute;
    top: 10px;
    left: 10px;
}
header{
    position: relative;
}
main{
    float: right;
    width: 70%;
    box-sizing: border-box;
    margin: 0;
}
footer{
    clear: both;
}
article{
    column-count: 3;
    margin: 2em 0;
    column-gap: 3em;
    column-rule: ivory groove 2px;


}
article>h2{
    column-span: all;

}
.button:hover{
    border: black 4px solid;
    color: red;
    background-color: white;
    background-image: none;
}

table, td, th{
    border: solid black 2px;
    border-collapse: collapse;
}
table{
    width: 70%;
    margin: 1em auto;
}
#tables{
    margin: 1.5em 0;
}
#tables h2{
    text-align: center;
}
#rtable>tbody>tr>td:last-child:not(.noalign),#rtable>tfoot>tr>th:last-child{
    text-align: right;
}
thead, tfoot{
    background-color: violet;
}
#rtable>tbody>tr:nth-child(even){
    background-color: lightgray;
}
#nest1table{
    caption-side: bottom;
}
#ntable>tbody>tr{
    height: 300px;
}
#ntable td{
    vertical-align: bottom;
}
#ntable td:last-child{
    vertical-align: top;
}