@font-face {
    font-family: 'Quite Magical';
    src: url(fonts/quite-magical-font/QuiteMagicalRegular-8VA2.ttf);
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 240px;
}

.begin {
    display: flex;
    flex-direction: column;
}

.logo {
    margin-left: 30px;
    margin-bottom: -20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Quite Magical';
    cursor: pointer;
}

.logo-img {
    width: 50px;
}

.familygram {
    margin-left: 10px;
    font-size: 60px;
    text-align: center;
    color: #1560bd;
    font-weight: normal;
}

.data {
    display: flex;
    flex-direction: row;
    justify-content: start;
    margin-left: 40px;
    color: #1560bd;
    justify-self: self-end;
}

.data a {
    color:#1560bd;
    text-decoration: none;
}

.data a:hover {
    color: purple;
}

.data a:focus {
    text-decoration: underline;
}

.data a:visited {
    color:rgb(6, 181, 250)
}

.january {
    margin-left: 10px;
}

.february {
    margin-left: 8px;
}

.mart {
    margin-left: 8px;
}

.login {
    display: flex;
    flex-direction: column;
}

.login-img {
    width: 32px;
    height: 32px;
    align-self: self-end;
    justify-self: self-end;
    margin: 20px 50px 10px 0;
}

.password-form {
    align-self: self-end;
    justify-self: end;
    margin-right: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 5px 0 10px;
    width: 210px;
    height: 140px;
    background-color: #f8f8ff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: none;
}

.email {
    width: 200px;
    height: 24px;
    margin-bottom: 10px;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.password {
    width: 200px;
    height: 24px;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.checkbox {
    align-self: self-start;
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.password-form p {
    font-size: 12px;
}

.login-btn {
    width: 200px;
    height: 24px;
    justify-self: self-end;
}

.main {
    margin: 0 30px 30px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
}

.post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
}

.post-img {
    width: 300px;
    height: 400px;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
  }

.heart {
    min-width: 24px;
    min-height: 24px;
    font-family: inherit;
    font-weight: bold;
    font-size: 16px;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-image: url("images/heart.png");
    background-size: 24px 24px;
    opacity: 0.5;
    cursor: pointer;
  }

.heart:focus,
.heart:hover {
    opacity: 1;
}
  
.heart .likes-number {
    margin-left: 20px;
}
  
.heart.added {
    background-image: url("images/heart-added.png");
    opacity: 1;
}

.comment-feed {
    margin-top: -20px;
}

.comment-feed h3 {
    font-size: 14px;
}

.comment-list {
    overflow: auto;
    margin-top: -5px;
    margin-right: -10px;
    height: 70px;
    display: none;
}

.comment-list li {
    list-style-type: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 6px;
    margin-left: -40px;
    padding-left: 5px;
    font-size: 14px;
    line-height: 24px;
    width: 300px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.user-comment::before {
    border-right-color: #eae9f2;
    color: #cdcdcd;
  }

.user-comment::after {
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.user-comment:first-child {
    display: none;
}

.scroll-visible {
    display: inline-block;
}

.comment-form {
    background-color: #f8f8ff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.comment-inner {
    width: 100%;
    height: 60px;
}

.comment-field {
    width: 282px;
    height: 40px;
    margin: 10px 0 5px 5px;
    border: 1px solid #eae9f2;
    color: #333333;
}

.comment-field:focus {
    outline-color: #b6aaff;
}

.under-commentfield {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.text-counter {
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.6;
}

.char-counter.warning {
    color: red;
}

.button {
    height: 25px;
    margin: -2px 7px 5px 5px;
}

.footer {
    font-size: 14px;
    background-color: rgb(216, 215, 215);
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin-left: 40px;
    margin-bottom: 30px;
    padding-top: 15px;
}

.socialmedia {
    margin-right: 40px;
}

.up-button {
    position: fixed;
    z-index: 1;
    padding: 0;
    bottom: 75px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border: 2px solid;
    border-radius: 50%;
    display: none;
    cursor: pointer;
}

.shown {
    display: inline-block;
}
