/*=====================================================
  MANSEL'S MAYHEM V2.0
  STYLE SHEET
======================================================*/

/*=========================
  RESET
=========================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*=========================
  BODY
=========================*/

body {

    background:
        linear-gradient(rgba(245,240,225,0.35),
                        rgba(245,240,225,0.35)),
        url("../images/backgrounds/newspaper.jpg");

    background-repeat: repeat;

    background-size: 600px;

    color: #222;

    font-family: Georgia, serif;

    font-size: 18px;

    line-height: 1.7;

}


/*=========================
  PAGE LAYOUT
=========================*/

main {

    max-width: 1200px;

    margin: auto;

    padding: 30px;

}


/*=========================
  IMAGES
=========================*/

img {

    max-width: 100%;

    height: auto;

    display: block;

}


/*=========================
  LINKS
=========================*/

a {

    text-decoration: none;

    color: inherit;

}


/*=========================
  HEADINGS
=========================*/

h1,
h2,
h3 {

    font-family: "Bangers", cursive;

    letter-spacing: 2px;

    font-weight: normal;

}


/*=====================================================
  HEADER
======================================================*/

header {

    text-align: center;

    padding: 35px 20px 20px;

    border-bottom: 2px solid #333;

}


/* Logo */

.logo img {

    width: 100%;

    max-width: 500x;

    margin: auto;

    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.35));

}


/* Tagline */

.tagline {

    margin: 30px 0;

    font-family: "Bangers", cursive;

    font-size: 3.5rem;

    letter-spacing: 3px;

    font-weight: normal;

    text-align: center;

    color: #1f1f1f;

    text-shadow: 2px 2px 4px rgba(255,255,255,0.35);

}


/*=====================================================
  NAVIGATION
======================================================*/

nav {

    border-top: 1px solid #555;

    border-bottom: 1px solid #555;

    margin-bottom: 40px;

}


nav ul {

    display: flex;

    justify-content: center;

    list-style: none;

    flex-wrap: wrap;

}


nav li {

    margin: 0;

}


nav a {

    display: block;

    padding: 22px 40px;

    font-family: "Bangers", cursive;

    font-size: 2rem;

    letter-spacing: 2px;

}


nav a:hover {

    background: rgba(0,0,0,.08);

}


/*=====================================================
  CURRENT CARTOON
======================================================*/

#current-cartoon {

    margin: 40px auto;

    text-align: center;

}


#current-cartoon img {

    margin: auto;

    border: 4px solid #222;

    box-shadow: 0 6px 18px rgba(0,0,0,.25);

}


/*=====================================================
  QUOTE
======================================================*/

#mansel-quote {

    text-align: center;

    margin: 50px auto;

}


blockquote {

    font-size: 1.5rem;

    font-style: italic;

}


/*=====================================================
  INFORMATION PANELS
======================================================*/

#info-panels {

    display: flex;

    gap: 30px;

    margin-top: 40px;

    margin-bottom: 50px;

    flex-wrap: wrap;

}


.panel {

    flex: 1;

    min-width: 300px;

    padding: 25px;

    border: 2px solid #333;

    background: rgba(255,255,255,.25);

}


.panel h2 {

    margin-bottom: 15px;

    font-size: 2rem;

}


/*=====================================================
  FOOTER
======================================================*/

footer {

    border-top: 2px solid #333;

    padding: 30px;

    text-align: center;

}


/* Social Media */

.social-media {

    display: flex;

    justify-content: center;

    gap: 25px;

    margin-bottom: 25px;

    flex-wrap: wrap;

}


.social-media img {

    width: 60px;

    transition: .3s;

}


.social-media img:hover {

    transform: scale(1.15);

}


/* Copyright */

.copyright {

    font-size: .95rem;

}


/*=====================================================
  RESPONSIVE
======================================================*/

@media (max-width:900px){

    #info-panels{

        flex-direction: column;

    }

}


@media (max-width:768px){

    nav ul{

        flex-direction: column;

    }

    nav a{

        text-align:center;

        border-bottom:1px solid #999;

    }

    .tagline{

        font-size:1.6rem;

    }

}


@media (max-width:480px){

    .logo img{

        max-width:280px;

    }

    .social-media img{

        width:50px;

    }

    .panel{

        min-width:auto;

    }

}
/*=========================================
  ARCHIVE PAGE
=========================================*/

.archive-grid {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 40px;

    margin-top: 40px;

}

.archive-item {

    width: 280px;

    text-align: center;

}

.archive-item img {

    width: 100%;

    height: auto;

    border: 4px solid #222;

    background: #f7f3e7;

    box-shadow: 0 6px 18px rgba(0,0,0,.25);

    transition: .3s;

}

.archive-item img:hover {

    transform: scale(1.05);

}

.archive-item p {

    margin-top: 12px;

    font-family: "Bangers", cursive;

    font-size: 1.4rem;

    letter-spacing: 1px;

}
/*=========================================
  ARCHIVE HEADER
=========================================*/

.archive-header {

    text-align: center;

    margin-bottom: 40px;

}

.archive-header h1 {

    font-family: "Bangers", cursive;

    font-size: 3rem;

    margin-bottom: 15px;

}

.archive-header p {

    max-width: 900px;

    margin: 0 auto;

}
/*=========================================
  CONTACT PAGE
=========================================*/

.contact-container{

    display:flex;

    gap:60px;

    align-items:flex-start;

    justify-content:center;

    flex-wrap:wrap;

    margin-top:40px;

}

.contact-form{

    flex:1;

    min-width:320px;

    max-width:500px;

}

.contact-form label{

    display:block;

    font-family:"Bangers",cursive;

    font-size:1.5rem;

    margin-top:20px;

    margin-bottom:8px;

}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:12px;

    border:2px solid #222;

    background:rgba(255,255,255,.75);

    font-size:1rem;

}

.contact-form textarea{

    resize:vertical;

}

.contact-form button{

    margin-top:25px;

    padding:14px 35px;

    font-family:"Bangers",cursive;

    font-size:1.5rem;

    border:none;

    background:#222;

    color:white;

    cursor:pointer;

}

.contact-form button:hover{

    background:#444;

}

.contact-art{

    flex:1;

    min-width:320px;

    text-align:center;

}

.contact-art img{

    width:100%;

    max-width:450px;

    height:auto;

}
/*=================================================
BACK ISSUES
=================================================*/

.back-issues{

    margin-top:80px;

}

.back-issues h2{

    text-align:center;

    margin-bottom:40px;

}

.back-issues-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:40px;

    max-width:900px;

    margin:0 auto;

}

.back-issues .archive-item{

    text-align:center;

}

.back-issues img{

    width:100%;

    max-width:320px;

    height:auto;

    border:4px solid #222;

    transition:0.3s;

}

.back-issues img:hover{

    transform:scale(1.03);

}
.comment-panel{

    display:none;

    margin-top:15px;

    padding:15px;

    background:#f5f5f5;

    border-radius:8px;

}

.comment-name{

    width:100%;

    margin-bottom:10px;

    padding:8px;

}

.comment-text{

    width:100%;

    height:100px;

    padding:8px;

    resize:vertical;

}

.post-comment-btn{

    margin-top:10px;

}

.comments-list{

    margin-top:20px;

}