html, body {
    margin: 0;padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
}

/* typography and icons */

h1 {
     color: #0F8CDF;
    font-size: 28px;
    margin-bottom: 15px;
}

i{
    font-size: 15px;
    cursor: pointer;
}

.fa-solid{
    color: #999;
}

.liked{
    color: red;
}

.retweeted {
  color: limegreen;
}

/* layout */

main, header{
    width: 500px;
    max-width: 90%;
    margin: 0 auto;
}
            main {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 15px #ddd;
}

header{
    padding-bottom: 25px;
}

   .tweet-input-area {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* textareas + btn */

textarea{
    background-color: #f5f7fa;
border-radius: 10px;
 outline: none;
    border: none;
    resize: none;
 padding: 10px;
 margin: 0 0 20px 0;
 height: 60px;
    width: 100%;
font-size: 20px;
    line-height: 30px;
}

button{
    background-color: #1DA1F2;
    border: none;
    color: white;
     padding: 10px 19px;
    border-radius: 20px;
    width: 100%; 
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
}

/* tweet */

.tweet{

    border-top: 1px solid #ddd;
    padding: 20px 0;
    width: 100%;
    margin: 15px 0;
}
}
button:hover {
    background-color: #0878c9;
}

.tweet-inner{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tweet-details{
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    width: 160px;
}

.tweet-detail{
    display: flex;
    gap: 4px;
}

.tweet-reply{
    border-top: 1px solid lightgray;
    padding: 20px 0 0 0px;
    margin: 10px 0 10px 40px;
    width: 80%;
}

.handle{
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-top: 0;
}

.tweet-text{
    width: 207px;
    font-size: 14px;
       line-height: 20px;
}

/* images */

.profile-pic{
    border: 1px solid lightgray;
    border-radius: 50%;
    width: 48px;
}

/* utility */
.hidden{
    display: none;
}

.reply-input-area {
    display: flex;
    gap: 8px;
    margin: 15px 0 15px 40px;
}

.reply-input-area input {
    width: 70%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 15px;
    outline: none;
}

.reply-btn {
    width: auto;
    padding: 8px 15px;
    font-size: 14px;
}
header {
    padding-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#theme-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 16px;
    background-color: #eee;
    color: #333;
}
.dark {
    background-color: #15202b;
    color: white;
}

.dark main {
    background-color: #192734;
        border-color: #38444d;
}

.dark textarea {
    background-color: #253341;
         color: white;
}

.dark textarea::placeholder {
    color: #aaa;
}

.dark .handle {
    color: #aaa;
}

.dark .tweet {
    border-color: #38444d;
}

.dark .tweet-reply {
    border-color: #38444d;
}

 .dark .reply-input-area input {
    background-color: #253341;
    color: white;
    border-color: #38444d;
}

 #theme-btn i {
    pointer-events: none;
}

/* responsivenesss */
@media (max-width: 600px) {

    main, header {
        width: 90%;
    }

    main {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    textarea {
        font-size: 16px;
        height: 70px;
    }

    .profile-pic {
        width: 42px;
    }

    .tweet-text {
        width: 100%;
    }

    .tweet-details {
        width: 100%;
    }

    .reply-input-area {
        margin-left: 20px;
    }

    .reply-input-area input {
        width: 65%;
    }

    .reply-btn {
        padding: 7px 12px;
        font-size: 13px;
    }
}