@import url("./variables.css");
@import url("./header.css");
@import url("./footer.css");

html,
body,
.container {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    background-color: var(--secondary-color)
}

body > * {
    font-family: "Lucida Console", "Courier New", monospace;
    font-weight: 500;
}

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 100px 1fr 100px;
    grid-template-areas: 
    "hd hd"
    "main main"
    "ft ft";
    grid-column-gap: 0;
}
    
.logo {
    height: 50px;
    width: 50px;
    margin-right: 15px;
}

a {
    color: var(--primary-text);
}

h1 {
    margin-top: 10px;
    margin-bottom: 10px;
}

h3,
h4 {
    color: var(--primary-text);
    font-weight: 500;
    margin: 0px;
    text-transform: uppercase;
}

h3 {
    font-size: 30px;
    font-weight: 500;
}

.background{
    width: 100%;
    height: 100%;
}

.intro {
    position: absolute;
    display: inline;
    margin: 50px;
    right: 0;
    color: var(--primary-text);
    font-size: 24px;
    width: fit-content;
    max-width: 400px;
}

.title {
    position: absolute;
    display: inline;
    top: 150px;
    color: var(--primary-text);
    font-size: 64px;
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr 350px 350px 1fr;
    grid-template-rows: 250px 250px;
    grid-template-areas: 
    "r1c1 r1c2 r1c3 r1c4"
    "r2c1 r2c2 r2c3 r2c4";
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    background-color: var(--primary-color);
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.8);
}

.card > a {
    color: var(--primary-text);
    font-size: 24px;
}

.card-image {
    display: block;
    width: 100%;
    height: 100%;
    margin-top: 15px;
}

#kedarkantha {
    grid-area: r1c2;
}

#deoriatal {
    grid-area: r1c3;
}

#tarsar {
    grid-area: r2c2;
}

#rupin {
    grid-area: r2c3;
}

.blog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blog-inner-content {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 20px;
}

.content-container {
    grid-area: main;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: var(--secondary-text);
}

.page-title {
    text-align: center;
}

h1 {
    text-decoration: underline;
}

p {
    width: 50%;
    font-size: 24px;
    text-align: center;
}

.author-info {
    font-size: 20px;
    color: var(--secondary-text);
    max-width: 300px;
}

.avatar {
    margin-left: -10px;
}

.primary-button {
    height: 34px;
    padding: 0 25px;
    border-radius: 34px;
    color: var(--secondary-text);
    font-size: 20px;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.8);
    border: none;
    text-transform: uppercase;
}

.social-media-icon {
    text-decoration: none;
}

.ml-10 {
    margin-left: 10px;
}

.blog-img {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-caption {
    font-size: 20px;
    margin-top: 5px;
}

.citation {
    display: contents;
}

@media screen and (max-width: 768px) {

    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 100px 1fr 100px;
        grid-template-areas: 
        "hd"
        "main"
        "ft";
    }

    .content-container {
        justify-content: center;
        margin-bottom: 20px;
    }

    .background{
        width: 100%;
        height: auto;
    }

    .intro {
        position: static;
        display: block;
        margin: auto;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        grid-template-areas: 
            "r1c1"
            "r2c1"
            "r3c1"
            "r4c1";
        margin: 50px 10px;
    }

    .card-image {
        height: -webkit-fill-available;
    }

    #kedarkantha {
        grid-area: r1c1;
    }
    
    #deoriatal {
        grid-area: r2c1;
    }
    
    #tarsar {
        grid-area: r3c1;
    }
    
    #rupin {
        grid-area: r4c1;
    }

    .blog-inner-content {
        flex-direction: column;
    }

    .author-desc {
        display: flex;
        flex-direction: column;
        justify-self: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .author-info {
        text-align: center;
    }

    p {
        width: fit-content;
        margin: 0 20px;
    }

    .title {
        font-size: 32px;
    }
}

@media screen and (max-width: 375px) {

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 12px;
    }

    .intro {
        font-size: 20px;
    }
}