* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --clr-green: rgba(123, 165, 151, 1);
    --clr-beige: rgba(241, 234, 211, 1);
    --clr-pink: rgba(242, 163, 158, 1);
    --clr-darkpink: rgba(157, 104, 103, 1);
    --clr-dark: rgba(39, 32, 32, 1);
    /* Kanske blir användbart att spara */
    --for-tablet-portrait-up: 600px;
    --for-tablet-landscape-up: 900px;
    --for-desktop-up: 1200px;
    --for-big-desktop-up: 1800px;
}

.hidden {
    display: none;
}


html {
    font-size: 16px;
}

body {
    display: grid;
    grid-template-columns: repeat(1, minmax(350px, 1fr));
    font-family: Helvetica, sans-serif;
    background: var(--clr-beige);
    color: var(--clr-dark);
    min-height: 100vh;
}

h1 {
    color: var(--clr-green);
    text-transform: uppercase;
    font-weight: 100;
    margin: 0 auto;
}

h2 {
    font-weight: 100;
    color: var(--clr-green);
}

img {
    width: 100%;
    height: 100%;
    display: block;
    font-style: italic;
    object-fit: cover;
}

picture {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

p {
    text-align: justify;
    line-height: 1.5rem;
    max-width: 75ch;
    margin-bottom: 1rem;
}

.bi-check-circle-fill {
    color: var(--clr-green);
}

.bi-x-circle-fill {
    color: var(--clr-darkpink);
}

#msg {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 1rem;
}

#msg li {
    position: relative;
    display: flex;
    border-radius: .5rem;
    border: 3px solid black;
    padding: 1rem;
    margin-bottom: 1rem;
    justify-content: center;


}

#msg li i {
    position: absolute;
    top: .3rem;
    right: .3rem;
}

#msg .info {
    background: var(--clr-green);
}

#msg .error {
    background: var(--clr-pink);
}

header {
    background: var(--clr-dark);
    color: var(--clr-beige);
    padding: 1rem;
}

#sockervadd {
    font-size: 2rem;
}

main {
    display: grid;
    place-self: center;
    padding: 1rem;
}

.main-register {
    min-height: 50vh;
}

li {
    list-style-type: none;
}

.promise {
    color: var(--clr-beige);
    padding: 2em;
    line-height: 1.8rem;
    font-size: 1.2rem;
    font-family: "Times New Roman";
    text-align: justify;
}

.popup-menu {
    position: absolute;
    z-index: 100;
    right: 0;
    top: 4em;
    background: var(--clr-dark);
    color: var(--clr-beige);
    isolation: isolate;
}

i.menu-btn {
    color: var(--clr-green);
    font-size: 2rem;
}

#main-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--clr-dark);
    color: var(--clr-beige);
    font-weight: bold;
    min-height: 5rem;
    padding: 2rem;

}

#main-footer ul {
    line-height: 2rem;
}

#main-footer li {
    text-transform: uppercase;
}


/* Moved */
a:link {
    color: var(--color-2-rgba);
    text-decoration: none;
}

a:visited {
    color: var(--color-2-rgba);
    text-decoration: none;
}

a:hover {
    color: var(--color-2-rgba);
    text-decoration: underline;
}

a:active {
    color: black;
    text-decoration: none;
}

section.story-card {
    margin: .5em;
    padding: .5em;
    border-radius: 5px;
    border: 3px solid var(--clr-dark);
    background: white;
}

.story-card h3 {
    font-weight: 900;
    color: var(--clr-darkpink);
}

.card-likes {
    color: var(--color-2-rgba);
    font-size: 1.1rem;
}

.card-read {
    color: var(--color-2-rgba);
    font-size: 1.1rem;
}

.card-comment {
    color: var(--color-2-rgba);
    font-size: 1.1rem;
}

.bi-gender-male {
    color: var(--clr-green);
}

.bi-gender-female {
    color: var(--clr-green);
}

section.story-card footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: .5rem;
    background: white;
}


/* Comment form */
.comment-form {
    position: relative;
}

.comment-form span {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.7rem;
}

#story-section {
    padding: .5rem;
}

#story-section div {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    text-align: justify;
    padding: .5rem;
}

#story-section div p {
    padding-bottom: 1rem;
}

#comment-section {
    display: grid;
    padding: 1rem;
}

#comment-section .comment-box article {
    margin: 0.5rem;
    padding: 0.5rem;
    border: 3px solid black;
    border-radius: 8px;
    background-color: var(--clr-pink);
}

#comment-section header {
    background: var(--clr-pink);
    color: var(--clr-dark);
    display: flex;
    justify-content: space-between;
}


#comment-section .commenter {
    font-weight: bolder;
}

#comment-section .comment-date {
    font-style: italic;
    font-size: 0.7rem;
}

.errorlist {
    color: red;

}

/* Registration page */
#register-form {
    /* The section */
    display: flex;
    height: 30vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#register-form form {
    width: 400px;
    padding: 1rem;
}

#register-form div {
    margin-bottom: 0.4rem;
}

#register-form input {
    outline: none;
    height: 2rem;
    border-radius: 8px;
    padding-left: .5rem;
    width: 100%;
}

#register-form input:focus {
    border: 3px solid #7BA597;
}

/* End registartion page */

/* Login page */
#login-section {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

#login-section form {
    display: flex;
    flex-direction: column;
}

#login-section input {
    outline: none;
    height: 2rem;
    border-radius: 8px;
    padding-left: .5rem;
    margin-bottom: .4rem;
}

#login-section input:focus {
    border: 3px solid #7BA597;
}


/* End Login page */
/* rules page*/
.copyright-section {
    padding: 2rem;
}

/* end rules page */
/* Profile page */
.section_profile {
    margin-bottom: 1rem;
}

#story-table {
    border: 1px solid green;
    width: 90vw;
}

#story-table th {
    font-weight: bolder;
}

#story-table td {
    border-bottom: 1px solid black;
    text-align: center;
}


/* end profile page */
@media (min-width: 600px) {

    /* 2 col - Tablet portrait and up */

    header {}

    main {}

    footer {}

    #register-form {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    #register-form div {
        margin-bottom: 1rem;
    }
}

/* End portrait*/
@media (min-width: 900px) {

    /* 3 col ? - Tablet landscape and up */

    #msg {
        max-width: 600px;
    }

    #register-form {
        grid-column-start: 1;
        grid-column-end: 4;
    }

    #register-form form {
        width: 600px;
    }

}

@media (min-width: 1200px) {

    /* 5 col - Desktop and up */
    main {}

    #msg {
        max-width: 700px;
    }



    nav {
        display: block;
        padding: 2rem;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--clr-green);
        text-transform: uppercase;
    }

    nav ul {
        display: flex;
        justify-content: space-around;
    }

    nav ul li {
        display: inline;
    }

}

@media (min-width: 1800px) {

    /* I dunno, ultra wide screens and up */
}
