@import url("https://fonts.cdnfonts.com/css/europanuova");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "EuropaNuova-Regular", sans-serif;
}

h1 {
    font-size: 3rem;
}

a {
    color: #ffffff;
    text-decoration: none;
    padding: 1rem;
}

img {
    max-width: 100%;
    margin: auto;
}

body {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: auto;
    box-shadow: 0px 0px 5rem #00000080;
    font-size: 14px;
}
header {
    background-image: linear-gradient(#00000040, #00000040),
        url("assets/bann.png");
    background-color: black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    color: #ffffff;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 0px 0px 0.5rem #00000080;
    box-shadow: 0px 5px 1rem #00000040;
}
h1 {
    padding: 1rem;
    text-align: center;
}

nav {
    width: 100%;
    position: absolute;
    top: 0;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.5rem;
}
nav a {
    padding: 1rem 2rem;
}

main {
    overflow: auto;
    height: calc(100vh - 14rem);
}

#gridPosts {
    display: grid;
    flex: 1;
    gap: 2rem;
    padding: 2rem;
}
#gridPosts div {
    display: grid;
    width: 100%;
    gap: 0.5rem;
}

#gridPosts .imgBack {
    width: 100%;
    height: 33vh;
    padding: 0.5rem;
    background-color: black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
}

#gridPosts .tagBtn {
    height: fit-content;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.249);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #ffffff;
    text-shadow: 1px 0px 3px #00000080;
}

#gridPosts img.usrImg {
    border-radius: 4rem;
    height: 2.5rem;
    width: 2.5rem;
    margin: 0;
}

#gridPosts .subArticle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-style: 0.8rem;
}

#gridPosts .usrDiv {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 40%;
}

#gridPosts .usrName {
    display: flex;
    align-items: center;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#gridPosts p {
    font-weight: 300;
    font-size: 0.8rem;
}

.pReaction:before {
    content: "⎯⎯  ";
    color: #00000092;
}

#gridPosts span {
    font-weight: 300;
    font-size: 0.7rem;
    padding: 0 0.4rem;
    color: #00000092;
    width: fit-content;
}
span.likes:before {
    content: "👍";
}
span.dislikes:before {
    content: "👎";
}
#gridPosts .viewLink {
    padding: 0.5rem;
    border: none;
    text-align: left;
    color: black;
    border-bottom: 1px solid black;
    font-weight: bold;
    width: fit-content;
}

#viewMore {
    width: 100%;
    border: none;
    padding: 1rem;
}

/*DETAILS */
#headerDetail {
    background-image: linear-gradient(#00000000, #00000000);
    background-color: black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 5rem;
}
#articleDetail {
    width: 80%;
    margin: auto;
    padding: 2rem;
    gap: 2rem;
}

#articleDetail div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#articleDetail img.usrImg {
    border-radius: 4rem;
    height: 5rem;
    width: 5rem;
    margin: 0;
}
#articleDetail .pReaction {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#headerDetail .tagBtn {
    height: fit-content;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.249);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #ffffff;
    text-shadow: 1px 0px 3px #00000080;
}
#headerDetail div {
    display: flex;
    gap: 1rem;
}

/* POST PAGE */
#formPost {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: auto;
    padding: 2rem;
    gap: 1rem;
}

fieldset,
form button {
    font-weight: bold;
    border: none;
    width: 100%;
    padding: 1rem;
    box-shadow: 0px 0px 1.5rem #00000040;
    background-color: #ffffff;
}
textarea,
input {
    width: 100%;
    padding: 0rem;
    border: none;
}
input:focus,
textarea:focus {
    outline: none;
}

@media (min-width: 768px) {
    #gridPosts {
        grid-template-columns: 1fr 1fr 1fr;
        grid-auto-rows: auto;
    }

    #gridPosts .subArticle {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
