/* ---------------------------- */
/* GENERAL PAGE STYLING */
/* ---------------------------- */
body {
    background: #f7f7fb;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.page-title {
    text-align: center;
    padding: 20px;
    background: #6c63ff;
    color: white;
    margin: 0;
}

.container {
    width: 85%;
    margin: auto;
    padding: 20px 0;
}

h2 {
    color: #6c63ff;
}

section {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ---------------------------- */
/* TASK 1 - Image Hyperlink */
/* ---------------------------- */
.logo-img {
    border-radius: 10px;
    box-shadow: 0px 2px 5px #aaa;
    width: 200px;
    height: auto;
}

/* ---------------------------- */
/* TASK 2 - Custom Ordered List */
/* ---------------------------- */
.custom-ol {
    list-style-type: upper-roman;
    padding-left: 40px;
    color: #26318d;
    font-weight: bold;
}

/* ---------------------------- */
/* TASK 3 - Margin Paragraph */
/* ---------------------------- */
.margin-text {
    margin-left: 70px;
    margin-right: 70px;
    background: #eef0ff;
    padding: 10px;
    border-left: 4px solid #6c63ff;
}

/* ---------------------------- */
/* TASK 4 - Styled Paragraph */
/* ---------------------------- */
.styled-p {
    color: #555;
    font-family: "Trebuchet MS", sans-serif;
    background: #e7ffe7;
    padding: 10px;
    border-left: 4px solid green;
}

/* ---------------------------- */
/* TASK 5 - 4 Frame Layout */
/* ---------------------------- */
.frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 330px;
    height: 220px;
    border: 3px solid #444;
    background: white;
}
.box {
    border: 1px solid #ccc;
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* ---------------------------- */
/* TASK 6 - Static Background Logo */
/* Small size "bitmaps with no symbol" as a fixed background */
/* ---------------------------- */
.static-bg {
    width: 100%;
    height: 150px; /* Small height */
    position: relative;
    border: 2px solid #ddd;
    margin-top: 10px;
    
    /* Create the "bitmaps with no symbol" as a fixed background */
    background-image: 
        /* The diagonal line */
        linear-gradient(-45deg, transparent 47%, #ff0000 47%, #ff0000 53%, transparent 53%),
        /* The red circle */
        radial-gradient(circle, transparent 45%, #ff0000 45%, #ff0000 55%, transparent 55%),
        /* The text "bitmaps" */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="250" height="80"><text x="50%" y="50%" font-family="Arial" font-size="40" font-weight="bold" text-anchor="middle" dominant-baseline="middle" fill="black">bitmaps</text></svg>');
    
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-attachment: fixed; /* Makes it static/not move with scroll */
    background-color: white;
}

/* ---------------------------- */
/* TASK 7 - Styled H1 */
/* ---------------------------- */
.custom-h1 {
    color: #ff2e63;
    font-family: Georgia, serif;
    text-shadow: 1px 1px 2px #aaa;
    text-align: center;
}

/* ---------------------------- */
/* TASK 8 - Olympic Logo using Divs */
/* ---------------------------- */
.olympic-logo-container {
    position: relative;
    width: 380px;
    height: 175px;
    margin: 20px auto;
}

.ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid;
    position: absolute;
}

/* Position top row rings (Blue, Black, Red) */
.blue { 
    border-color: #0085ff;
    left: 0;
    top: 0;
    z-index: 2;
}

.black {
    border-color: #000000;
    left: 130px;
    top: 0;
    z-index: 1;
}

.red {
    border-color: #ff2b2b;
    left: 260px;
    top: 0;
    z-index: 2;
}

/* Position bottom row rings (Yellow, Green) */
.yellow {
    border-color: #ffcc00;
    left: 65px;
    top: 55px;
    z-index: 1;
}

.green {
    border-color: #1ba30f;
    left: 195px;
    top: 55px;
    z-index: 1;
}

/* ---------------------------- */
/* TASK 9 - Breadcrumb */
/* ---------------------------- */
.breadcrumb a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: bold;
}
.breadcrumb span {
    color: #444;
}

/* ---------------------------- */
/* TASK 10 - Media Queries */
/* ---------------------------- */
.responsive-box {
    border: 2px solid #333;
    padding: 12px;
    width: 60%;
    text-align: center;
    background: #eee;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .responsive-box { background-color: #ff9b9b; }
}

@media (min-width: 768px) {
    .responsive-box { background-color: #627dff; color: white; }
}

@media (min-width: 992px) {
    .responsive-box { background-color: #fff395; color: #333; }
}

/* ---------------------------- */
/* TASK 11 - Full Static Background Logo */
/* Small/Medium size version - not too big */
/* ---------------------------- */
.full-bg-logo {
    width: 100%;
    height: 180px; /* Small-medium size */
    position: relative;
    border: 2px solid #ddd;
    margin-top: 10px;
    
    /* Create the "bitmaps with no symbol" as a fixed background */
    background-image: 
        /* The diagonal line */
        linear-gradient(-45deg, transparent 47%, #ff0000 47%, #ff0000 53%, transparent 53%),
        /* The red circle */
        radial-gradient(circle, transparent 40%, #ff0000 40%, #ff0000 60%, transparent 60%),
        /* The text "bitmaps" */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="280" height="100"><text x="50%" y="50%" font-family="Arial" font-size="45" font-weight="bold" text-anchor="middle" dominant-baseline="middle" fill="black">bitmaps</text></svg>');
    
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-attachment: fixed; /* Makes it static/not move with scroll */
    background-color: #f0f0f0;
}

/* ---------------------------- */
/* TASK 12 - Pretty Table */
/* ---------------------------- */
.styled-table {
    border-collapse: collapse;
    width: 60%;
    background: white;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: none;
}

/* Main header */
.styled-table thead tr:first-child th {
    background: linear-gradient(135deg, #6c63ff 0%, #4a44c8 100%);
    color: white;
    padding: 18px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #4a44c8;
}

/* Column headers */
.styled-table thead tr:nth-child(2) th {
    background: #f8f9fa;
    color: #333;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

/* Table body */
.styled-table tbody th {
    background: #f8f9fa;
    color: #333;
    padding: 14px 12px;
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    border-right: 2px solid #e0e0e0;
}

.styled-table tbody td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    transition: background-color 0.2s ease;
}

/* Hover effect for rows */
.styled-table tbody tr:hover td {
    background-color: #f5f7ff;
}

.styled-table tbody tr:hover th {
    background-color: #edf0ff;
}

/* Alternating row colors */
.styled-table tbody tr:nth-child(even) th {
    background: #fafafa;
}

.styled-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.styled-table tbody tr:nth-child(even):hover td {
    background-color: #f0f3ff;
}

/* Output row styling */
.styled-table .output-row th {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    border-top: 2px solid #c8e6c9;
    border-bottom: none;
    border-right: 2px solid #c8e6c9;
}

.styled-table .output-row td {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
    border-top: 2px solid #c8e6c9;
    border-bottom: none;
}

/* Last row rounded corners */
.styled-table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 10px;
}

.styled-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/* Cell borders - clean and subtle */
.styled-table th,
.styled-table td {
    border-left: 1px solid #e0e0e0;
}

.styled-table th:first-child,
.styled-table td:first-child {
    border-left: none;
}