@import url('https://fonts.googleapis.com/css2?family=Allan:wght@400;700&family=Courgette&family=Gruppo&family=Kalam:wght@300;400;700&family=Kaushan+Script&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Allan', Tahoma, cursive;
}

body { 
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-image: url('images/anime-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.container {
    max-width: 90%;
    overflow-x: hidden;
    overflow-y: auto;
}

#anime-img {
    display: block; 
    margin-left: auto; 
    margin-right: auto;
}

.card {
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 15px;
}

.card-header {
    color: #662E9B;
    border-bottom: none;
    background-color: transparent;
    font-weight: 700;
    font-size: 1em;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-body {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
}

.card-title {
    padding: 10px 5px 15px 5px;
    margin: 0;
    color: #662E9B;
    font-weight: 700;
    font-size: 0.8em;
    text-align: center;
    text-transform: uppercase;
}

.title-row {
    padding-bottom: 15px;
    margin: 0;
}

.top-text {
    text-transform: uppercase;
    color: #EA3546;
    font-style: italic;
    font-size: 0.8em;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.year {
    display: flex;
    justify-content: flex-end;
}

.card-text {
    font-size: 0.8em;
}

#new-anime {
    background-color: #662E9B;
    color: white;
    display: block;
    width: 100%;
    border-radius: 5px;    
    font-weight: 700;
    font-size: 0.8em;
    text-align: center;
    text-transform: uppercase;
}

#new-anime:hover {
    background-color: #EA3546;
    box-shadow: 2px 2px 5px #F9C80E;
    color: white;
    text-shadow: 1px 1px 1px #F9C80E;
}

footer {
    align-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    padding-bottom: 15px;
}

.footer-text {
    display: flex;    
    align-self: center;
    justify-content: flex-end; 
    font-weight: 600;
    font-size: 0.7em;
    text-transform: uppercase;
    color: #F9C80E;
    text-shadow: 1px 1px 1px #EA3546;
    letter-spacing: 0.1em;
    padding-right: 10px;
}

.footer-links {
    display: flex;
    align-self: center;
    justify-content: flex-start;
}

.fa {
    font-size: 1em;
    color: #662E9B;
    text-decoration: none;
}

.fa:hover {
    color: #EA3546;
    text-shadow: 1px 1px 3px #FFF;
}

.fa-linkedin-square {
    padding: 0 5px 0 10px;
}

.fa-github {
    padding: 0 10px;
}


@media (min-width: 768px) {
    .container {
        max-width: 80vw;
        overflow: hidden; /* add for scrolling on container rather than body*/
    }

    .card-header {
        font-size: 1.5em;
    }

    .card-title {
        font-size: 1.2em;
    }

    .top-text {
        font-size: 0.8em;
    }

    .card-text {
        font-size: 1em;
    }  

    #new-anime {
        font-size: 1em;
    }

    .footer-text {
        font-size: 1.2em;
    }

    .fa {
        font-size: 1.5em;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    #anime-img {
        width: 50%;
        height: 50%;
    }
    
    .container {
        height: 90vh;
    }

    footer {
        position: relative;
    }
}

@media (max-width: 572px) {
    .footer-text  {
        justify-content: center;
        padding: 5px;
    }

    .footer-links {
        justify-content: center;
        padding: 5px;
    }
}

@media (min-width: 1650px) {
    .container {
        max-width: 60vw;
    }
}

@media (min-width: 280px) and (max-width: 823px) and (orientation: landscape) {
    footer {
        position: relative;
    }

    #anime-img {
        width: auto;
    }

    body { 
        height: auto;
    }
}