* {
    margin: 0;
    padding: 0;
}

body {
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background-color: #F7F7F9;
}

.container {
    background-color: transparent;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

h1 {
    font-weight: 600;
    font-size: 30px;
    box-sizing: border-box;
    margin: 10px;
    text-align: center;
}

input {
    width: 100%;
    height: 46px;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 55px;
    border-width: thin;
    border: 1px solid lightgray;
}

input::placeholder {
    font-family: sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: gray;
}

.search {
    background-image: url(./search.svg);
    background-repeat: no-repeat;
    background-position: 10px;
}

.inboxContainer {
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin-top: 30px;
}

.eMail {
    height: 120px;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
}

.date {
    display: flex;
    justify-content: center;
}

.buttons {
    display: flex;
    justify-content: flex-end;
}

.favImg,
.favedImg {
    background: url(./star.svg) no-repeat center;
    width: 60px;
    height: 25px;
    margin: 0 3px 0 10px;
    cursor: pointer;
    border: none;
}

.favedImg {
    background: url(./starFilled.svg) no-repeat center;
}

.deleteImg {
    background: url(./delete.svg) no-repeat center;
    width: 50px;
    height: 23px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    top: 0;
    left: 0;
    visibility: hidden;
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
}

.dialog {
    width: 95%;
    height: 300px;
    visibility: hidden;
    z-index: 10;
    background-color: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 100px;
    position: fixed;
}

.dialogTitle {
    font-size: 22px;
    color: black;
    margin-bottom: 40px;
}

.deleteMail {
    border: 1px solid silver;
    width: 150px;
    height: 50px;
    font-size: 18px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.dontDeleteMail {
    border: 1px solid silver;
    width: 150px;
    height: 50px;
    box-sizing: border-box;
    font-size: 18px;
    border-radius: 5px;
}

.deleteMail:hover,
.dontDeleteMail:hover {
    background-color: #0591FD;
    color: white;
}

body.dialog-visible .overlay,
body.dialog-visible .dialog {
    /*body'de dialog-visible varsa overlay görünür olucak.*/
    visibility: visible;
}

.error {
    width: 200px;
    height: 50px;
    position: absolute;
}


/*for tablets*/

@media (min-width: 700px) {
    .container {
        margin: 50px;
    }
    .dialog {
        width: 90%;
        margin-top: 200px;
    }
}


/*for deskops*/

@media (min-width: 1000px) {
    .container {
        margin: auto;
        box-sizing: border-box;
        width: 800px;
    }
    h1 {
        margin-bottom: 50px;
    }
    .eMail {
        flex-direction: row;
        height: 45px;
    }
    .date,
    .username,
    .subject,
    .contentMail,
    .buttons {
        align-self: center;
    }
    .date {
        width: 100px;
    }
    .username {
        width: 120px;
    }
    .subject {
        width: 200px;
    }
    .contentMail {
        width: 300px;
    }
    .dialog {
        width: 800px;
        height: 300px;
        margin-top: 100px;
    }
}
