main {
    align-items: center;
    display: flex;
    flex-direction: column;
}

#container {
    display: flex;
    width: 95%;
    margin-top: 3em;
}

#links {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #FF5722;
    width: 95%;
    box-sizing: border-box;
}

#links a {
    padding: 0 2em;
    position: relative;
    display: block;
    color: #FFFFFF;
    background: #FF5722;
    text-decoration: none;
    font-size: 1.2em;
    width: 50%;
    box-sizing: border-box;
    line-height: 3em;
}

#links a img {
    position: absolute;
    height: 2em;
    top: 0.5em;
}

#links a:hover img {
    height: 2.5em;
    top: 0.25em;
}

#links a:nth-child(odd) img {
    left: -1em;
}

#links a:nth-child(even) img {
    right: -1em;
}

#links a:nth-child(4n+3),
#links a:nth-child(4n+2) {
    background: #FFF;
    color: #FF5722;
}

#twitter {
    width: 300px;
    margin-left: 5px;
    border: 1px solid #FF9115;
}

#twitter h2 a {
    color: white;
    text-decoration: none;
}

#twitter h2 a small {
    font-size: 0.8rem;
    color: #FFCCBC;
    text-decoration: underline;
}

#top-content {
    width: calc(100% - 300px);
}

.topics {
    width: 100%;
    display: flex;
    margin-bottom: 1em;
    flex-wrap: wrap;
}

.topic {
    min-width: 200px;
    border: 1px solid #FF9115;
    width: 100%;
}

.topic:not(:first-child) {
    margin-top: 5px;
}

.topic p {
    margin: 1em;
}

@media(min-width: 991px) {
    .topics {
        flex-wrap: nowrap;
    }
    .topic:not(:first-child) {
        margin-left: 5px;
        margin-top: 0;
    }
}

#news {
    border: 1px solid #FF9115;
    height: 10em;
}

#news article {
    padding: 5px;
}

article img {
    width: 100px;
    padding: 1em;
}


/* for smartphones */

@media(max-width:767px) {
    h1 img {
        width: 100%;
    }
    #links {
        width: 100%;
    }
    #links a {
        width: 100%;
    }
    #links a:nth-child(odd) {
        color: #FFFFFF;
        background: #FF5722;
    }
    #links a:nth-child(odd) img {
        left: 0;
    }
    #links a:nth-child(even) {
        background: #FFF;
        color: #FF5722;
    }
    #links a:nth-child(even) img {
        left: 0;
    }
    #container {
        display: block;
        width: auto;
        margin-top: 3em;
    }
    #top-content {
        width: auto;
    }
    #twitter {
        width: auto;
        margin-left: 0;
        margin-top: 1em;
    }
}