* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher select {
    background-color: #2a2a2a;
    color: white;
    border: 2px solid #4a90e2;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 150px;
}

.language-switcher select:hover {
    background-color: #3a3a3a;
    border-color: #5aa0f2;
}

.language-switcher select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

@media (max-width: 768px) {
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .language-switcher select {
        width: 100%;
        max-width: 300px;
    }
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    margin: 0 auto;
}

.content-container {
    max-width: 600px;
    width: 100%;
    padding: 0 2rem 2rem;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.home-link {
    color: inherit; 
    text-decoration: none; 
    cursor: pointer; 
}

@media (max-width: 768px) {
    h1 a.home-link {
        font-size: 0.8em; 
    }
}

/* styles.css */
.instruction {
    text-align: center; 
    font-size: 0.8em;   
    margin-top: -10px;
    margin-bottom: 30px; 
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.custom-timer {
    margin-bottom: 2rem;
}

.time-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input {
    padding: 0.5rem;
    border: none;
    border-radius: 0.3rem;
    background-color: #333;
    color: white;
    font-size: 1rem;
}

.timer-display {
    font-size: 5rem;
    font-family: monospace;
    text-align: center;
    margin: 2rem 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-all;
}

@media (max-width: 600px) {
    .timer-display {
        font-size: 4rem;
    }
}

@media (max-width: 400px) {
    .timer-display {
        font-size: 3rem;
    }
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#startBtn {
    background-color: #2ecc71;
}

#startBtn:hover {
    background-color: #27ae60;
}

#pauseBtn {
    background-color: #f1c40f;
}

#pauseBtn:hover {
    background-color: #f39c12;
}

#resetBtn {
    background-color: #e74c3c;
}

#resetBtn:hover {
    background-color: #c0392b;
}

.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);
  }
  
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 360px;
}
  
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content p {
    font-size: 24px;
    margin: 10px 0 20px;
    color:#333;
}

.modal-content button {
    background-color: #e74c3c;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.modal-content button:hover {
    background-color: #c0392b;
}

footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem;
    background-color: #1a1a1a;
    color: white;
    margin-top: auto;
}

footer p {
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 10px auto;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
    margin-right: 1rem;
}

.footer-links a:last-child {
    margin-right: 0;
}

.footer-links a:hover {
    color: #2980b9;
}

/* New Content Sections */
.feature-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 10px;
}

.feature-section h2 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-list {
    list-style-type: none;
    padding-left: 1rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    color: #4a90e2;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.use-cases {
    margin: 2rem 0;
}

.use-cases h2 {
    color: #4a90e2;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.use-case {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.use-case:hover {
    transform: translateY(-5px);
}

.use-case h3 {
    color: #4a90e2;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-case p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mobile-note {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.mobile-note h3 {
    color: #4a90e2;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-note p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .feature-section,
    .use-case,
    .mobile-note {
        padding: 1rem;
    }
}

/* Blog Styles */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.blog-nav a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

.blog-nav .nav-title {
    color: #cccccc;
    font-size: 0.9rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.blog-header .subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.table-of-contents {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border: 2px solid #4a90e2;
}

.table-of-contents h2 {
    color: #4a90e2;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.toc-nav {
    max-width: 800px;
    margin: 0 auto;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.toc-list li {
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
}

.toc-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
    line-height: 1;
}

.toc-list a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    flex: 1;
}

.toc-list a:hover {
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .table-of-contents {
        padding: 1.5rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents h2 {
        font-size: 1.5rem;
    }
}

.blog-content {
    display: block;
    margin-bottom: 3rem;
}

.blog-post {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #4a90e2;
}

.blog-post:last-child {
    margin-bottom: 0;
}

.blog-post h2 {
    color: #4a90e2;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.post-meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-content {
    color: #cccccc;
    line-height: 1.6;
}

.post-content h3 {
    color: #4a90e2;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.post-content ol,
.post-content ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #cccccc;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.workout-type {
    background-color: #333;
    padding: 1rem;
    border-radius: 8px;
}

.workout-type h4 {
    color: #4a90e2;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.workout-type p {
    color: #aaa;
    font-size: 0.85rem;
}

.blog-sidebar {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
    border-top: 2px solid #4a90e2;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

/* Sidebar grid layout for better presentation in single column */
.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Optional: if you want to make sidebar sections look like cards */
.sidebar-section-card {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
}

.sidebar-title {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.sidebar-intro {
    color: #cccccc;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-section h3 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.sidebar-list {
    list-style-type: none;
    padding-left: 0;
}

.sidebar-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.sidebar-list li:before {
    content: "•";
    color: #4a90e2;
    position: absolute;
    left: 0;
}

.sidebar-list a {
    color: #4a90e2;
    text-decoration: none;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

.sidebar-section p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.back-to-timer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.cta-button {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #357abd;
    text-decoration: none;
}

/* Blog preview on main page */
.blog-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.blog-preview h2 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-preview p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.blog-preview ul {
    color: #cccccc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-preview li {
    margin-bottom: 0.5rem;
}

.blog-link {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.blog-link:hover {
    background-color: #357abd;
    text-decoration: none;
}

/* Blog responsive - workout grid and sidebar */
@media (max-width: 768px) {
    .workout-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar-section-card {
        padding: 1.25rem;
    }

    .sidebar-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .blog-sidebar {
        padding: 1.5rem;
    }
}