/* Global styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f6f4;
    color: #333;
    line-height: 1.6;
}


/* Header */

header {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 25px 15px;
}


header h1 {
    margin: 0;
    font-size: 2.2rem;
}

header p {
    margin-top: 8px;
    font-size: 1.1rem;
}

/* Navigation */

nav {
    background-color: #1b5e20;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 14px 22px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background-color: #388e3c;
}

/* Main layout */

main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

main img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Headings and Text */

h2 {
    color: #2e7d32;
    margin-top: 0;
}

p {
    margin-bottom: 15px;

}

/* Lists */

ul {
    padding-left: 20px;

}

li {
    margin-bottom: 8px;
}

/* Review boxes */

.review {
    background-color: #e8f5e9;
    padding: 25px;
    margin: 30px 0;
    border-left: 6px solid #2e7d32;
    border-radius: 4px;
    
}

.review blockquote {
    margin: 0;
    font-style: italic;
}

.review span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
}

/* Hyperlinks */

a {
    color: #2e7d32;
}

a:hover {
    text-decoration: underline;
}

/* Footers */

footer {
    background-color: #1b5e20;
    color: white;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Index page extras */

.highlights ul {
    list-style-type: square;
    margin-top: 10px;
}

.intro {
    margin-bottom: 30px;
}


/* funny carousel */

.carousel {
    margin: 100px auto;
    width: 90%;
    border: 5px solid red;
    display: flex;
    overflow-x: auto;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 5s infinite linear;
    padding-right: 1em;
}

.card {
    flex: 0 0 5em;
    height: 5em;
    padding: 1em;
    background: cornflowerblue;
    font-size: 3rem;
    border-radius: .2em;
    text-align: center;
    align-content: center;
}

@keyframes spin {
    from {translate: 0;}
    to {translate: -100%;}
}