html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Trebuchet MS, Arial, Verdana, Geneva, Helvetica, sans-serif;
    color: #474747;
    font-size: 16px;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header .logo {
    width: 100px;
    height: 32px;
    margin-top: 25px;
    margin-bottom: 10px;
    overflow: hidden;
}

.header .logo .normal {
    display: block;
}

.hidden {
    display: none;
}

.header, .main-content, .footer {
    max-width: 985px;
    margin: 0 auto;
}

main {
    flex: 1;
}

.main-content {
    padding: 0 18px 38px 18px;
    overflow: hidden;
}

.main-title {
    font-weight: bold;
    font-style: italic;
    font-size: 30px;
    margin: 30px 0 23px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 20px;
    row-gap: 10px;
}

.grid-content-container {
    display: flex;
}

.country {
    margin-left: 12px;
}

.language {
    margin-left: 12px;
    font-style: italic;
}

a {
    color: #40810c;
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    color: #326414;
}

.slide-underline {
    display: inline-block;
}

.slide-underline span {
    position: relative;
    background: linear-gradient(to right, transparent, transparent),
                linear-gradient(to right, currentColor, currentColor);
    background-size: 100% 1px, 0 1px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.slide-underline span:hover {
    background-size: 0 1px, 100% 1px;
}

.footer-background {
    width: 100%;
    padding: 3px 0;
    background-color: #f0f0f0;
}

/*
///// TABLET ////
*/

@media screen and (max-width: 985px) and (min-width: 751px) {
    .header, .main-content, .footer {
        max-width: 750px;
    }
}

@media screen and (max-width: 750px) {
    .header, .main-content, .footer {
        max-width: 300px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}
