/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: rgb(113,8,106); 
}

#container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    gap: 10px;
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* bold headings */
}

.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav a {
    color: white;
    text-decoration: none;
}

.nav a, button {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav a:hover {
    color: #ffcc00;
}

button:hover {
    background-color: #444;
}

button{
    background:black;
    color: white;
    border-radius: 15px;
    padding: 10px;
    margin-top: -10px;
}

.hamburger {
    display: none; 
    font-size: 2em;
    cursor: pointer;
    color: white;
}

.nav{
    background-color: rgb(113, 8, 106);
    color: white;
    padding: 10px;
    border-radius: 15px;
}


.header, .image1, .title, .footer {
    grid-column: 1 / -1; /* span all 4 columns */
}

/* Header styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: grey;
}

.header .logo {
    max-height: 200px;
    width: auto;
    border-radius: 15px;
}

.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav a {
    color: white;
    text-decoration: none;
}

.title{ background-color:grey;
padding: 10px;}

/* Main content: auto-placement */
.img1,.img2,.img3,.img4,.img5,.img6,.img7,.img8,.img9,.img10,
.text1,.text2,.text3,.text4,.text5,.text6,.text7,.text8,.text9,.text10{
    background-color: grey;
    padding: 10px;
}

/* Center band image */
.image1 {
    display: flex;
    justify-content: center;
    background-color:grey;
}

/* Keep images natural size */
.main-content img, .image1 img {
    display: block;
}

/* Text padding and background */
.text1 p, .text2 p, .text3 p, .text4 p, .text5 p,
.text6 p, .text7 p, .text8 p, .text9 p, .text10 p {
    padding: 10px;
    background-color: gray;
}

/* Footer */
.footer {
    text-align: center;
    background-color: gray;
    padding: 10px;
}

.hamburger {
    display: none; /* hide on desktop */
    font-size: 2em;
    cursor: pointer;
    color: white;
}

@media (max-width: 480px) {
    .nav ul {
        display: none; 
        flex-direction: column;
        background-color: rgb(113,8,106);
        position: absolute;
        top: 60px; 
        right: 10px;
        width: 200px;
        border-radius: 10px;
        padding: 10px;
        z-index: 1000;
    }

    .nav.show ul {
        display: flex; 
    }

    .nav ul li {
        margin: 10px 0;
    }

    .hamburger {
        display: block; 
    }

    button {
        width: 100%; 
    }
}

@media (min-width: 411px) and (max-width: 1023px) {
    #container {
        grid-template-columns: 1fr 1fr; 
    }
    .header {
        flex-direction: row;
        justify-content: space-between;
    }
}