/* reset */

html, body {
    margin:0;
    padding: 0;
    box-sizing: border-box;
}
html {
    height: 100%;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* container */

.container {
    max-width: 1000px;
    margin-inline: auto;
}

img {
    display:block;
    max-width: 100%;
}

/* header */

#header {
    background-color: olivedrab;
}

/* language selector */

.language-selector {
    padding: 1rem 1rem 0;
    text-align: right;
}
.new-language {
    color: #fff;
    cursor: pointer;
}

/* logo */

.logo-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(150px,2fr));
    align-items: center;
    padding: 1rem;
}

.logo-container img {
    max-height: 100px;

}

.logo-title {
    color: #fff;
    font-weight: bold;
}

/* navigation */

.nav {
    background-color: #333;
}

.nav .container {
    padding: 1rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    justify-items: center;
    
}

.navitem {
    text-align: center;
}

.nav a {
    color:#fff;
    text-decoration: none;
    text-align: center;
}

.nav a:hover {
    cursor: pointer;
    
}

.nav .navitem.home img {
    background-color: olivedrab;
}

.nav img {
    border-radius: 90px;
    filter: grayscale(100%);
}

.nav img:hover, .nav a.active img {
    filter: grayscale(0);
}

.navitem .nav-text {
    display:block;
    margin-top: 10px;
}

/* Web Design - Photo by Daniel Korpai on Unsplash */

/* content */

#content {
    padding: 20px;
    background-color: #fff;
    padding-bottom: 3em;
    position: relative;
    max-width: 800px;
    margin-inline: auto;
}

.content-item {
    display:grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
}

/* footer */

#footer {
    background-color: olivedrab;
    color: #fff;
    text-align: center;
    bottom: 0;
    padding: 1em;
    line-height: 3;
    margin-top: auto;
}

@media (min-width: 394px) {
    .logo-container {
        grid-template-columns: 110px 1fr;
    }
    
}

@media (min-width: 606px){
    .logo-title {
        font-size: 2rem;
    }
}


