@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Smokum&display=swap');
*{
    box-sizing: border-box;
}

body{
    font-family: 'PT Sans', sans-serif;
}

.logo {
    float: left;
}
header>div {
    padding: 10px;
    font-family: 'Smokum', cursive;
    background-color: #eee;
}
.heading {
    font-size: 4em;
    color: black;
    padding: 10px;
}
.subheading {
    font-size: 2.5em;
    color: #333;
    padding: 0 5px;
    margin-bottom: 20px;
}
.heading, .subheading {
    text-align: center;
}

header nav{
    background-color: yellow;
    margin: 0;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    float: left;
}

header nav ul li {
    display: inline-block;
    background-color: #ddd;
}

header nav a {
    display: block;
    padding: 0 10px;
    font-size: 1em;
    line-height: 40px;
    text-decoration: none; 
    background-color: #222;
    color: white;
}
header nav a:hover{
    background-color: red;
    color: white;
}

.menu {
    display: none;
    padding: 5px;
}
.menu:hover {
    background-color: blue;
}

.nav {
    clear:both
}

.main {
    background-color: #eee;
    clear: both;
}
.main img{
    float: left;
    padding: 10px;
    max-width: 96%;
    border: 10px solid white;
    margin: 2%;
}
.main article{
    padding: 10px;
    font-size: 1.2em;
    border-bottom: 1px solid black;
    overflow: hidden;
}

.main article p::first-letter{
    font-size: 2em;
    color: red;
}
.footer:after{
    content: "";
    display: table;
    clear: both;
}

.footer {
    background-color: black;
    color: white;
    height: 200px;
    text-align: center;
    padding: 20px;
}
footer>div {
    float: left;
    border: 1px solid #eee;
}
.first, .third {
    width: 25%;
}

.col {
    margin: auto;
    width: 80%;
}
.second {
    text-align: left;
    width: 50%;
    padding: 10px;
}

.hide {
    display: block;
}


@media all and (max-width: 740px) {
    header nav ul li {
        display: block;
        text-align: center;
    }
    .main img{
        width: 100%;
    }
    header nav ul {
        width: 100%;
    }
    .menu {
        width: 100%;
        background-color: black;
        color: white;
        display: block;
        text-align: center;
    }
    .subheading {
        font-size: 1.5em;
        color: #333;
        padding: 0 5px;
        margin-bottom: 0;
    }
    .heading {
        padding: 0px;
    }

    .first, .third {
        width: 100%;
    }
    .col {
        margin: auto;
        width: 100%;
    }
    .second {
        text-align: center;
        width: 100%;
    }
    .second li{
        list-style: none;
    }
    .hide {
        display: none;
    }
}
