* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto mono", Arial, Helvetica, sans-serif;
    background-color: whitesmoke;
    color: #005998;
}

.logo {
    width: auto;
    height: 60px;
    border-radius: 50%;
}

/*Navbar*/
.navbar {
    background-color: rgb(191, 222, 242);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* News-Container*/
.news-container {
    border: 1px solid #007bff; 
    border-radius: 18px; 
    padding: 10px;
    margin-bottom: 15px;
    height:fit-content;  
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
}

.news-title {
    font-weight: bold;
    font-size: 18px;
}

.news-site {
    font-size: 14px;
    color: #666;
    align-self: flex-end;
    margin-top: -15px;
}

.news-info {
    font-size: 14px;
    color: #666;
}

#news-container {
    border-radius: 5px;
    padding: 25px;
}

h1 {
    text-align: center;
    color: #005998; 
}

button#load-more {
    padding: 15px;
    background-color: rgb(191, 222, 242);
    color: #005998;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    display: block;
    margin: 0 auto;
    margin-top: -20px;
}

button#load-more:hover {
    background-color: #3a7cc3;
    color: #fff; 
}


/*Animation H1*/
#animated-title {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto; 
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    0% { width: 0; opacity: 0; } 
    50% { opacity: 1; } 
    100% { width: 100%; } 
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: transparent; }
}

/*FOOTER*/
footer{
    background-color: rgb(191, 222, 242);
    text-align: center;
    padding: 5px;
    margin-top: 20px;
}

/*Scrollbar*/
body::-webkit-scrollbar {
    width: 7px;
    background-color: #ccc; 
}

body::-webkit-scrollbar-thumb {
    border-radius: 9999px; 
    background-color: #888; 
    padding: 2px; 
}

/* Media queries*/
@media only screen and (max-width: 300px) {

    .news-container {
        flex-direction: column;        
        align-items: stretch;   
        height:fit-content;     
    }

    .news-container > * {
        width: 100%; 
        height: auto;
        margin-bottom: 10px;
    }

    .news-title {
        font-size: 10px; 
    }

    .news-site,
    .news-info {
        font-size: 9px; 
    }

    button#load-more {
        font-size: 12px; 
    }

    h1 {
        font-size: 9px; 
    }

    .logo {
        width: 3px; 
        height: 3px;
    }
}


@media only screen and (max-width: 400px) {
    .news-container {
        flex-direction: column;        
        align-items: stretch;   
        height:fit-content;     
    }

    .news-container > * {
        width: 100%; 
        height: auto;
        margin-bottom: 10px;
    }
    .news-title {
        font-size: 16px; 

    }

    .news-site,
    .news-info {
        font-size: 14px;
        margin-top: 0px;
    }

    button#load-more {
        font-size: 16px; 
    }

    h1 {
        font-size: 18px; 
    }

    .logo {
        width: 57px;
        height: 57px;
    }
}


@media only screen and (max-width: 800px) {
    .news-container {
        flex-direction: column;        
        align-items: stretch;   
        height:fit-content;     
    }

    .news-container > * {
        width: 100%; 
        height: auto;
        margin-bottom: 10px;
    }

    .news-title {
        font-size: 18px; 
    }

    .news-site,
    .news-info {
        font-size: 14px;
    }

    button#load-more {
        font-size: 18px;
    }

    h1 {
        font-size: 22px; 
    }

    .logo {
        width: 40px;
        height: 40px;
    }
}


