/**
 * General
 */

 /* roboto-mono-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cloock';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Gloock-Regular.ttf'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --font-family: 'Cloock', serif;
    --font-color: #000; 
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/bookclub-bg.jpg');
    background-repeat: repeat;
    filter: blur(4px);
    z-index: -1;
}


body {
    color: var(--font-color);
    font-family: var(--font-family);
    font-weight: 400;
    padding: 0 4rem;
    margin: 0 auto;
    max-width: 1100px;
    background-color: #262223;
    overflow-x: hidden;
}

/**
 * Grid
 */
.flex {
    display: flex;
}

.flex-wrap-wrap {
    flex-wrap: wrap;
} 

.column-100 {
    flex-basis: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.column-50 {
    flex-basis: 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.column-50.right {
    padding-left: .75rem;
}

/* Texts */
h1, h2, h3 {
    font-weight: 400;
}

h1 {
    color: #fff;
    text-align: center;
    font-size: 4.3rem;
    padding: .75rem;
}

h2 {
    font-size: 2.15rem;
    text-align: center;
    margin: 0.5rem;
}

.italic {
    font-style: italic;
}

.center {
    text-align: center;
}

/**
 * Elements
 */
main {
    width: 580px;
    margin: 0 auto;
    background-color: #ffe7ce;
    border-radius: 15px;
    margin: 3.3rem auto;
}

#form-wrapper {
    padding: 2.35rem 2.5rem;
}

/* Form */
label {
    display: block;
    margin: 1.2rem 0 0.5rem;
}

label[for="bio"] {
    margin-top: 3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea {
    width: 180px;
    height: 40px;
    font-size: .95rem;
    border: unset;
    border-radius: 3px;
    padding: 0 .5rem;
}

input::placeholder,
input::-webkit-input-placeholder,
input:-ms-input-placeholder {
    color: #a2aab4;
}

textarea {
    width: 220px;
    height: 150px;
    padding: .5rem;
    margin-bottom: 0;
}

button {
    font-family: var(--font-family);
    font-size: 1.25rem;
    background: #ffd15b;
    padding: 1.35rem;
    margin: 1.5rem 0 1.1rem;
    border: unset;
    border-radius: 10px;
    cursor: pointer;
}

.required {
    color: #ff5f5f;
}

#char-counter {
    font-size: .9rem;
}

.validation-status {
    position: relative;
    top: 5px;
}

.validation-error {
    display: block;
    font-size: .75rem;
    color: #ff4545;
    font-family: sans-serif;
    font-weight: lighter;
    margin-top: 8px;
}

.hidden {
    visibility: hidden;
    display: none;
}

/**
 * Sections
 */
footer {
    margin: 7.5rem 0 2rem;
}

footer #copyright {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-family);
}

footer .heart {
    color: #e81224;
}

/**
 * Mobile
 */
 @media screen and (max-width: 950px) {
    .flex { 
        flex-wrap: wrap;
    } 
    
    .column-50 {
        flex-basis: 100%;
        max-width: 100%;
    }
}