* {
    box-sizing: border-box;
}


body {
    font-family: "Open Sans", sans-serif;
    color: #222;
}

.wrap {
    width: 1000px;
    max-width: 100%;
    padding: 0px 20px;
    margin: auto;
}


.hr {
    border-bottom: 1px solid rgba(0,0,0,.1);
    width: 100%;
}

.col {
    display: flex;
    flex-direction: column;
}

.email-section {
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.email-section h2 {
    font-weight: bold;
    font-size: 2rem;
    margin: 0;
}

.email-section .controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}


.btn {
    padding: 5px 20px;
    border: 2px solid #222;
    color: #222;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: #222;
    color: #eee;
    transition: all .2s;
}

.background {
    padding: 20px;
    background: url(/static/img/background.png);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-size: 200px 200px;
    z-index: -1;
}


.email-section .email-controls {
    width: 360px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.email-section .input-container {
    position: relative;
    width: 100%;
}
.email-section input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 1.1rem;
    border: 2px solid #222;
    outline: none;
    background: transparent;
    color: #222;
    font-family: monospace;
}
.email-section .copy-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #222;
    font-size: 18px;
}
.email-section .copy-icon:hover {
    opacity: 0.7;
}
.email-section .btn {
    background-color: transparent;
}

.email-section .btn:hover {
    background-color: #222;
    color: #eee;
}


/* HEADER */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

header nav {
    display: flex;
    align-items: center;
}

header ul, header li {
    list-style: none;
    padding: 0;
    margin: 0;
}

header .main-menu {
    display: flex;
    gap: 10px;
}

.menu-item {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding: 10px 20px;
    background-color: #eee;
    border-radius: 5px;
}

header .menu-item:hover {
    text-decoration: none;
    background-color: #e0e0e0;
}

header ul {
    display: flex;
    gap: 20px;
}

header a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

header #sm-menu-container, header #sm-menu-btn {
    display: none;
}



/* INBOX */

.inbox {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.inbox ul, .inbox li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inbox ul {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    height: 400px;
    overflow-y: auto;
}

.inbox .wrap {
    background-color: rgba(0,0,0,.02);
    border-radius: 20px;
    padding: 0;
}

.inbox .heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.inbox h2 {
    margin: 0;
}

.inbox .email-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.inbox .email-card:hover {
    background-color: rgba(0,0,0,.05);
    cursor: pointer;
}

.inbox .email-card:active {
    background-color: rgba(0,0,0,.1);
}

.inbox .from {
    font-weight: bold;
}

.inbox .subject {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inbox .subject .btn {
    padding: 5px 10px;
    margin-left: 10px;
    border: 2px solid #222;
}

.inbox .date {
    opacity: 0.5;
}

.inbox .no-emails {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    display: none;
}

.inbox .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.inbox .spinner {
    border: 4px solid rgba(0,0,0,.1);
    border-top: 4px solid #222;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* FOOTER */

footer .wrap {
    padding: 40px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


footer .footer-social, footer .footer-legal, footer .footer-menu {
    display: flex;
    gap: 20px;
    justify-content: center;
}


footer a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

footer a:hover {
    text-decoration: underline;
}

.footer-social a:hover {
    text-decoration: none;
}

footer i {
    font-size: 1.3rem;
}



/* DIALOG */

.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
    z-index: 99;
    display: none;
}

.dialog .dialog-content {
    width: 620px;
    max-width: 100%;
    background-color: #fff;
    border-radius: 10px;
}

.mail-content .heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.mail-content .from {
    font-weight: bold;
}

.mail-content .to {
    opacity: 0.5;
    font-family: monospace;
}

.mail-content .btn {
    padding: 10px 20px;
    font-size: 1rem;
}


.mail-content iframe {
    width: 100%;
    height: 400px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.timer {
    margin-right: 10px;
    font-size: 0.9rem;
    opacity: 0.5;
}


/* TOAST */

.toast {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background-color: #222;
    color: #eee;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    visibility: hidden;
}


/* TIMER PROGRESS */


.progress-container {
    position: relative;
    width: 30px;
    height: 30px;
}

.progress-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: conic-gradient(rgba(0, 0, 0, 0.3) var(--progress), transparent 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #222;
    color: #222;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #333;
}


/* CHANGE EMAIL DIALOG */

.change-email-dialog .content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}
.change-email-dialog input, .change-email-dialog select {
    display: block;
    padding: 10px 20px;
    font-size: 1.1rem;
    border: 2px solid #222;
}

.change-email-dialog .controls .btn {
    background-color: #376cff;
    color: #eee;
}

.change-email-dialog .controls .btn:hover {
    background-color: #1654ff;
}

.change-email-dialog .controls {
    display: flex;
    justify-content: end;
}

