@import "./reset.css";

:root {
    --app-dark-bg: #1a1d28;
    --app-pink: #cf6a83;
}
    
body {
    background-color: var(--app-dark-bg);
}
    
.container {
    width: min(100% - 30px, 1280px);
    margin-inline: auto;
}

@-webkit-keyframes slide {
    from{
        background-position:-100px;
    }
    to{
        background-position:100px;
    }
}

body {
    float: left;
    position: relative;
    width:100%;
    height:100%;
    background:url(https://fauux.neocities.org/bg_700.gif);
    -webkit-animation: slide 5s linear infinite;
}

.flexbox {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

/* - - - - - - - - - - - - - - - - */
/* HEADER                          */
/* - - - - - - - - - - - - - - - - */

header {
    background-color: #000;
    color: var(--app-pink);
    height: 75px;
    border-bottom: solid;
    border-width: 1px;
    box-shadow: 1px 1px 25px#cf6a83;
}

h2 {
    line-height: 65px;
    font-size: 28px;
    letter-spacing: 2px;
}

ul li {
    float: right;
    padding: 0 20px;
    list-style: none;
    font-size: 20px;
    letter-spacing: 2px;
}

.fa-solid {
    font-size: 28px;
    color: white;
    border-style: solid;
    border-radius: 50%;
    border-width: 1px;
    padding: 10px;
    color: var(--app-pink);
}

header img {
    width: 60px;
    height: 60px;
}

/* - - - - - - - - - - - - - - - - */
/* Input                           */
/* - - - - - - - - - - - - - - - - */

.input-box {
    margin: 50px auto;
    max-width: 700px;
    min-height: 225px;
    background-color: rgb(0, 0, 0);
    border-style: solid;
    border-color: var(--app-pink);
    border-width: 1px;
    border-radius: 3px;
    padding: 20px;
    overflow: auto;
}

textarea {
    width: 650px;
    height: 125px;
    resize: none;
    background-color: #000;
    color: var(--app-pink);
    font-size: 20px;
    padding: 10px;
    margin-bottom: 10px;
}

.submit-button {
    float: right;
    padding: 10px 20px;
    background-color: var(--app-pink);
    border-radius: 5px;

}

input[type=file] {
    display: none;
    float: left;
    background-color: var(--app-pink);
}

.upload-style {
    border: 1px solid var(--app-pink);
    color: var(--app-pink);
    padding: 6px 30px;
    border-radius: 5px;
    cursor: pointer;
    float: left;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--app-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--app-pink);
}

.input-box img { 
    max-height: 100px; 
    max-width: 100px; 
    margin: 10px 5px; 
}

.error {
    color: red;
}

/* - - - - - - - - - - - - - - - - */
/* Post field                      */
/* - - - - - - - - - - - - - - - - */

.grid {
    display: grid;
    grid-template-columns: auto;
    gap: 50px;
}

.post-field {
    margin: 50px auto;
    max-width: 700px;
}

.user-post {
    min-height: 100px;
    max-width: 700px;
    background-color: rgb(0, 0, 0);
    border-style: solid;
    border-color: var(--app-pink);
    border-width: 1px;
    border-radius: 3px;
    padding: 20px;
    color: var(--app-pink);
}

.user-post:last-of-type {
    margin-bottom: 50px;
}

.post-text {
    font-size: 18px;
    padding-bottom: 10px;
    margin: 25px 0;
    border-bottom: 1px solid var(--app-pink);
}

.user-img {
    float: left;
    width: 50px;
    margin-right: 10px;
}

.user-post p:first-of-type {
    line-height: 50px;
    font-size: 24px;
    float: left;
    font-weight: 600;
}

.date, .time {
    margin-left: 550px;
    font-size: 14px;
    font-weight: 300;
    text-align: right;
}

.user-post p:last-child {
    margin-top: 15px;
    font-size: 16px;
}

/* - - - - - - - - - - - - - - - - */
/* User modal                      */
/* - - - - - - - - - - - - - - - - */

.overlay {
    display: none;
    position: fixed;
    background-color: #261a286b;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: scroll;
}

.modal-box {
    display: flex;
    height: 575px;
    width: 450px;
    background-color: #000;
    position: absolute;
    margin-top: 40px;
    left: 0;
    right: 0;
    margin-left: auto; 
    margin-right: auto; 
    border-style: solid;
    border-color: var(--app-pink);
    border-width: 1px;
    color: var(--app-pink);
    justify-content: center;
    text-align: center;
    padding-top: 35px;
    padding: 15px;
}

.modal-box img {
    width: 150px;
    height: 150px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.user-name {
    font-size: 38px;
    margin-bottom: 0;
    padding: 0;
}

.id {
    margin-top: 25px;
}

.id, .pages, .groups {
    font-size: 30px;
}

