* {
text-rendering: auto;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale !important;
}

div,
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
padding: 0;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: #202124;
    font-size: 14px;
    line-height: 1.5;
}
.email-body a:hover {
    /*filter: brightness(90%);*/
}

.gmail-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    overflow: hidden;
    height: 95vh;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background-color: white;
    border-right: 1px solid #e0e0e0;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.compose-btn {
    margin: 8px 16px 16px;
    padding: 12px 24px 12px 16px;
    border-radius: 24px;
    background-color: #c2e7ff;
    color: #001d35;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.compose-btn i {
    margin-right: 12px;
    font-size: 20px;
}

.sidebar-menu {
    flex: 1;
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0 12px 0 26px;
    height: 32px;
    margin: 2px 0;
    border-radius: 0 16px 16px 0;
    cursor: pointer;
    color: #202124;
}

.menu-item:hover {
    background-color: #f1f3f4;
}

.menu-item.active {
    background-color: #d3e3fd;
    color: #001d35;
    font-weight: 600;
}

.menu-item i {
    width: 20px;
    margin-right: 18px;
    font-size: 18px;
}

.menu-count {
    margin-left: auto;
    font-size: 12px;
    color: #5f6368;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Email View Styles */
.email-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #f6f8fc;
}

.email-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
}

.toolbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 2px;
    color: #5f6368;
    position: relative;
}

.toolbar-btn:hover {
    background-color: #f1f3f4;
}

.toolbar-btn.active {
    color: #1a73e8;
}

.toolbar-btn i {
    font-size: 18px;
}

/* Email Content Styles */
.email-content {
    flex: 1;
    overflow-y: auto;
    background-color: white;
    padding: 20px 32px;
    margin: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    position: relative;
}

.email-header {
    padding-bottom: 0px;
    margin-bottom: 24px;
}

.email-subject {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #202124;
}

.email-sender {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sender-info {
    display: flex;
    align-items: center;
}

.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 16px;
}

.sender-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sender-name {
    font-weight: 500;
    margin-bottom: 0px;
}

.sender-address {
    color: #5f6368;
    font-size: 13px;
}

.details-toggle {
    display: flex;
    align-items: center;
    color: #4d5053;
    cursor: pointer;
    margin: 5px 0 0px 5px;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}

.details-toggle i {
    margin-right: 8px;
    font-size: 12px;
    transition: transform 0.2s ease;
    padding: 1px 3px;
    border-radius: 1px;
}

.details-toggle i:hover {
    background-color: #d2d3d5;
}
.details-toggle i:active {
    background-color: #b2b3b5;
}

.email-details {
    background-color: #f8f9fa;
    border-radius: 1px;
    padding: 10px 16px 4px 16px;
    margin: -10px 0 1px 90px;
    display: none;
    border: 1px solid #dadce0;
    font-size: 13px;
    width: fit-content;
    position: absolute;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.email-details.show {
    display: block;
}

.details-row {
    display: flex;
    margin-bottom: 8px;
}

.details-label {
    width: 100px;
    color: #5f6368;
    flex-shrink: 0;
}

.details-value {
    flex: 1;
    color: #202124;
}

.details-value strong {
    font-weight: 500;
}

.security-info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e8eaed;
}

.email-meta {
    display: flex;
    font-size: 13px;
    color: #5f6368;
}

.email-time {
    margin-left: auto;
    margin-top: 11px;
    font-size: 11px;
}

.email-actions {
    display: flex;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    margin-left: 8px;
}

.action-btn:hover {
    background-color: #f1f3f4;
}

.email-body {
    padding: 0 8px;
}

.email-body p {
    margin-bottom: 16px;
    color: #202124;
}

.attachment {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    margin-top: 24px;
    width: fit-content;
}

.attachment i {
    font-size: 24px;
    color: #5f6368;
    margin-right: 16px;
}

.attachment-details {
    flex: 1;
}

.attachment-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.attachment-size {
    font-size: 13px;
    color: #5f6368;
}

.download-btn {
    margin-left: 16px;
    color: #1a73e8;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
}

.download-btn:hover {
    background-color: #e8f0fe;
}

.important-note {
    background-color: #fef7e0;
    border: 1px solid #fdd663;
    border-radius: 4px;
    padding: 12px;
    margin-top: 24px;
    font-size: 13px;
}

.important-note i {
    color: #f9ab00;
    margin-right: 8px;
}

/* Footer Styles */
.email-footer {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e0e0e0;
    color: #5f6368;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    color: #1a73e8;
    text-decoration: none;
    margin-right: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.link-preview {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    max-width: 80%;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.preview-url {
    word-break: break-all;
    line-height: 1.5;
}

.highlight {
    background: rgba(255, 255, 0, 0.25);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.warning {
    background: #fff8e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.warning i {
    color: #ffc107;
    margin-right: 10px;
}
.bgclr-red {
    color: #ff8787;
}
.bgclr-green {
    color: #02e272;
}
.icon-container {
    display:flex; 
    flex-direction:column;
    margin: -10px 10px auto auto; 
    text-align:center;
}

#lottieCongrats, #lottieTryAgain {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;  /* 50% of viewport width */
    height: 60vh; /* 50% of viewport height */
    max-width: 100%; /* prevents overflow on smaller screens */
    max-height: 100%;
    z-index: 10;
}

.badge-display {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    overflow: auto;
    transition: all 0.5s ease;
}

.badge-center-stack {
    display: flex;
    flex-direction: column;
    /*align-items: center;
    max-width: 540px;
    width: 100%;*/
    margin-top: 25px;
}
.changeAvatarBtn {
    color: rgb(20, 20, 20);
    padding: 5px 18px;
    background-color: white;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
.changeAvatarBtn:hover {
    filter: brightness(90%);
}
.changeAvatarBtn:active {
    filter: brightness(100%);
}
.badge-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 360px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .badge-center-stack {
        margin-top: 18px;
    }
}

.answers-clues {
    display: flex;
    flex-direction: column;
    max-width: 450px;
    height: auto;
    color: #cddeed;
    background: linear-gradient(135deg, #505a63, #181b1e);
    border-radius: 0 15px 35px 15px;
    text-align: left;
    padding: 10px 15px 15px 15px;
    margin-top:60px;
    margin-left: 100px;
    z-index: 9;
    font-size: 16px;
    position: absolute;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}
.answers-clues {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}
.answers-clues.active {
    opacity: 1;
    max-height: 500px; /* or whatever max height fits your content */
}

.none-important {
    display: none !important;
}

.setected-button {
    color: #687179 !important;
    background: #32383e !important;
}
.disabled-click {
    pointer-events: none;
}
.theme-color {
    color: #07c8b0 !important;
}
#your-task-content {
  opacity: 1;
  max-height: 500px;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  overflow: hidden;
}

#your-task-content.remove {
  opacity: 0;
  max-height: 0;
  pointer-events: none; /* optional: disables interaction background-color: #2952a3; color: #d6e0f5; */
}

.btn-setected {
    position: relative;
    transition: all 0.15s ease;
    letter-spacing: 0.025em;
    text-transform: none;
    will-change: transform;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased !important;
    cursor: pointer;
    line-height: 1.5;
    padding: 0.3rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
}
.btn-setected:hover {
    filter: brightness(90%) !important;
}

.btn-setected:active {
    filter: brightness(100%) !important;
}

.cloud-bg1 { background: #705302; color: #fcdf8a; }
.cloud-bg2 { background: #114782; color: #7abafe; }
.cloud-bg3 { background: #3d454e; color: #d5dce4; }
.cloud-bg4 { background: #10561f; color: #93feac; }

.cloud-bg5 { background: #014976; color: #d8effe; }
.cloud-bg6 { background: #0a5862; color: #84edfd;}
.cloud-bg7 { background: #964a10;; color: #ffd6ba; }
.cloud-bg8 { background: #0f544a; color: #80f6d3; }

.cloud-bg9 { background: #6c4924; color: #f7dbbf; }
.cloud-bg10 { background: #4d4d32; color: #f5f5dc; }
.cloud-bg13 { background: #4e2176; color: #ecb3f6; }
.cloud-bg11 { background: #802222; color: #f7acac; }
.cloud-bg12 { background: #422a69; color: #dac6f9; }

.btn-reset {
    color: #91c6ff;
    border: none;
    background: linear-gradient(135deg, #0076f4, #092e56);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-approve {
    color: #8affdc;
    border: none;
    background: linear-gradient(135deg, #23a07b, #0a3a33);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-reject {
    color: #dac3ff;
    border: none;
    background: linear-gradient(135deg, #6d42b4, #281744);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-yellow {
    color: #ffe187;
    border: none;
    background: linear-gradient(135deg, #e1aa04, #4f3b02);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-violet {
    color: #d3d3b5;
    border: none;
    background: linear-gradient(135deg, #afaf8d, #242417);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-red {
    color: #ffb7b7;
    border: none;
    background: linear-gradient(135deg, #9b4a4a, #531313);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-orange {
    color: #ffdab5;
    border: none;
    background: linear-gradient(135deg, #b07f4d, #3e2912);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-blue {
    color: #7ceeff;
    border: none;
    background: linear-gradient(135deg, #17a2b8, #06373d);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-green {
    color: #80ff9e;
    border: none;
    background: linear-gradient(135deg, #28a745, #0a3814); 
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.code-block {
    font-family: 'Courier New', monospace;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    gap: 10px;
    display: flex;
}

.email-action {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #7c7f86;
  border-radius: 30px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
}

.email-action:hover {
  background: #f1f3f4;
  border-color: #c4c7c5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.email-action i {
  margin-right: 10px;
  font-size: 16px;
}

.game-star-cc {
  font-size: 14px;
  position: absolute;
  animation: riseCC 3s linear infinite;
  transform: translateY(50%); /* Ensures star animation starts off-screen */
  z-index: 999;
}
  
.game-star-cc:before {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
}
  
@keyframes riseCC {
  from {
    top: 48%;
    left: 8%;
    opacity: 1;
    transform: translate(-50%, 0%);
  }
  to {
    top: 0%;
    opacity: 0;
    transform: translate(-50%, -100%);
  }
}


@keyframes bounceOut {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(0.8); opacity: 0; }
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.bounce-out {
    animation: bounceOut 0.4s ease forwards;
}

.bounce-in {
    animation: bounceIn 0.4s ease forwards;
}
