@charset "UTF-8";

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(43, 112, 80);
}

quote {
    display: block;
    padding: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color:rgb(176, 247, 211);
    background-color: rgb(67, 168, 118);
    border-left: 5px solid rgb(102, 196, 149);
    margin: 20px 0;
}

h1 {
    font-family: 'Annie Use Your Telescope';
    /* <link href='https://fonts.googleapis.com/css?family=Annie Use Your Telescope' rel='stylesheet'> */
}

header img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

nav {
    background-color: rgb(50, 226, 167);
    padding: 15px;
    text-align: center;
}

nav a {
    color: azure;
    text-decoration: none;
    margin: 15px;
    font-weight: bold;
}

nav a:hover {
    color:rgb(30, 65, 47);
}

aside {
    margin: 50px;
    font-size: 1.5em;
}

article.layout {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

article.gallery {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/*NEW container for image + text*/

.image-container {
    position: relative;
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 4px solid #1b3533;
    display: block;
}

/*Text overlay*/

.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3em;
    font-weight: bold;
    z-index: 2;
    background-color: rgb(61, 109, 95);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid grey;
}

.image-container img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

footer {
    background-color: rgb(52, 160, 115);
    color: white;
    text-align: center;
    padding: 20px;
}