@import url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff');
@import url(reset.css);

:root {
    --ff: -apple-system, Roboto, BlinkMacSystemFont;
    --col-copy: #fff;
    --col-fg: #26252B;
    --col-bg: #000;
}

html, body {
    overscroll-behavior: none;
}

body {
    font-family: var(--ff);
    font-weight: 300;
    background: var(--col-bg);
    color: var(--col-copy);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

li {
    font-size: 1rem;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
   background-color: #26252bd1; /* Adjust opacity and color as needed */
    backdrop-filter: blur(10px); /* Adjust blur amount for the glass effect */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    text-align: center;
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure the header stays on top of other elements */
    border-bottom: 1px solid #2f2d34;
}

header .fa-circle-info, .fa-envelope {
    font-size: 1.5rem;
    color: #2684ff;
    position: relative;
    top: -0.5rem;
}

.info:hover .fa-regular,
 .info .fa-solid {
    display: none;
    
}

.mail:hover .fa-solid {
    display: inline;
    
}

.mail:hover .fa-regular,
 .mail .fa-solid {
    display: none;
    
}

.info:hover .fa-solid {
    display: inline;
    
}

header img {
    width: 50px;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

header img:hover {
    filter: brightness(1.1);
}

.header-profile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    text-align: center;
}

.header-label i {
    color: #545454;
}

.messages-container {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;

}

.date {
    color: #848484;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
    width: 100%;
    overflow-y: auto; 
    padding: 10px; 
    -webkit-user-select: none;
    user-select: none;
}

.reply {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 600px;
    width: 100%;
    overflow-y: auto; 
    padding: 10px;
    -webkit-user-select: none;
    user-select: none; 
}

.reply li {
    background: #2684ff;
    padding: 3px 10px;
    border-radius: 1rem;
    text-align: left;
    margin: 1px 0;
    transition: all 0.2s ease-in-out;
}

.reply li:hover {
    background-color: #3e91fe;
}


.message li {
    background: var(--col-fg);
    padding: 3px 10px;
    border-radius: 1rem;
    text-align: left;
    margin: 1px 0;
    transition: all 0.2s ease-in-out;
}

.message li:hover {
    background-color: #2c2a31;
}



.message img {
    border-radius: 1rem;
    margin-top: 0.5rem;
    width: 200px;
    transition: all 0.2s ease-in-out;
}

.message img:hover {
    filter: brightness(1.3)
}

footer {
    padding: 1rem;
    color: #848484;
    font-size: 0.7rem;
    font-weight: 500;
}

.messages-container a {
    text-decoration: underline;
}   

.message, .reply {
    overflow: hidden; 
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message {
    animation: fadeIn 1s ease-in-out;
}

.reply {
    animation: fadeInSlide 1s ease-in-out;
}

.animate {
    opacity: 0; 
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    z-index: 1000;
    animation: blurIn 0.3s ease-in-out;
}

@keyframes blurIn {
    from {
        background-color: rgba(0,0,0,0.0);
    }
    to {
        background-color: rgba(0,0,0,0.4);
    }
}

.modal-content {
    display: block; 
    max-width: 90vw; 
    max-height: 60vh;
    margin: auto; 
    position: relative; 
    top: 50%;
    transform: translateY(-50%); 
    animation: flyIn 0.3s ease-in-out;
}


@keyframes flyIn {
    from {
        transform: translateY(-50%) scale(0.9); 
        opacity: 0;
    }
    to {
        transform: translateY(-50%) scale(1); 
        opacity: 1;
    }
}


#caption {
    text-align: center; 
    color: #fff; 
    padding: 10px; 
}


.close {
    position: absolute; 
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #fff;
    }

    .message {
        color: #000;
    }

    .message li {
        background-color: #E9E9EB;
    }

    .message li:hover {
        background-color: #e0dfdf;
    }

    .reply li:hover {
        background-color: #257cef;
    }

    header {
        background-color: #F5F5F5;
        color: #313131;
        border-bottom: 1px solid #E3E3E3;
    }
  }