*,::after,::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: iransans ,sans-serif;
}
:root {
	--dark: #374151;
	--darker: #1F2937;
	--darkest: #111827;
	--grey: #6B7280;
	--pink: #EC4899;
	--purple: #8B5CF6;
	--light: #EEE;
}
@font-face {
    font-family: iransans;
    src: url(fonts/IRANSansWeb.ttf);
}
html{
    color-scheme: dark light;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* justify-content: center; */
    background-color: var(--dark);
    color: white;
    font-size: 1.5rem;
}

header{
    width: 70%;
    margin: 0 auto;
    padding: 2rem 1rem;
}
header h1{
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--grey);
}

#new-title-form{
    display: flex;
}

input, button{
    appearance: none;
    border: none;
    outline: none;
    background: none;
}

#new-title-input, #new-date-input1, #new-date-input2{
    flex: 1 1 0%;
    background-color: var(--darker);
    padding: 1rem;
    border-radius: 1rem;
    margin: 0 1rem;
    color: var(--light);
    font-size: 1.25rem;
}
#new-title-input::placeholder{
    color: var(--grey);
}

#new-title-submit{
    color: var(--pink);
    font-size: 1.25rem;
    font-weight: 700;
    background-image: linear-gradient(to right, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: 0.4s;
}
#new-title-submit:hover{
    opacity: 0.8;
}

#new-title-submit:active{
    opacity: 0.6;
}

main{
    flex: 1 1 0%;
    width: 70%;
    margin: 0 auto;
}

.title-list{
    padding: 1rem;
}

.title-list h2{
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--grey);
    margin-bottom: 1rem;
}

#titles .title{
    display: flex;
    justify-content: space-between;
    background-color: var(--darkest);
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

#titles .title .content{
    flex: 1 1 0%;
    display: flex;
    justify-content: space-between;
}

#titles .title .content .text{
    display: block;
    color: var(--light);
    font-size: 1.125rem;
    width: 100%;
    transition: 0.4s;
}
#titles .title .content .text:not(:read-only){
    color: var(--pink);
}
#titles .title .actions{
    display: flex;
    margin: 0 -0.5rem;
}

.title .actions button{
    cursor: pointer;
    margin: 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.4s;
}
.title .actions button:hover{
    opacity: 0.8;
}

.title .actions button:active{
    opacity: 0.6;
}

.title .actions .edit{
    background-image: linear-gradient(to right, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;       
}

.title .actions .delete{
    color: crimson;       
}