* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}
/* Mobile First - Extra Small (0-576px) */
body {
   font-family: Arial, sans-serif;
   background-color: #f0f0f0;
   color: #333;
   padding: 15px;
   line-height: 1.6;
}
.container {
   max-width: 100%;
   margin: 0 auto;
}
header {
   text-align: center;
   margin-bottom: 20px;
   padding: 20px 0;
}
h1 {
   font-size: 24px;
   color: #2196F3;
   margin-bottom: 10px;
}
.subtitle {
   font-size: 14px;
   color: #666;
}
.viewport-demo {
   background-color: #e3f2fd;
   padding: 15px;
   margin: 20px 0;
   text-align: center;
   border-radius: 5px;
}
.card {
   background-color: white;
   padding: 20px;
   margin-bottom: 15px;
   border-radius: 5px;
   border-left: 4px solid #2196F3;
}
.card h2 {
   font-size: 18px;
   color: #2196F3;
   margin-bottom: 10px;
}
.card p {
   margin-bottom: 10px;
}
.card ul {
   margin-left: 20px;
}
.card ul li {
   margin-bottom: 5px;
}
code {
   background-color: #f5f5f5;
   padding: 10px;
   display: block;
   margin: 10px 0;
   border-radius: 5px;
   font-size: 12px;
   overflow-x: auto;
}
.units-demo {
   margin: 20px 0;
}
.units-demo h3 {
   margin: 15px 0 10px 0;
   color: #2196F3;
}
.absolute-unit {
   width: 200px;
   height: 50px;
   background-color: #ff6b6b;
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 10px 0;
   border-radius: 5px;
}
.relative-unit {
   width: 100%;
   height: 50px;
   background-color: #51cf66;
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 10px 0;
   border-radius: 5px;
}
footer {
   text-align: center;
   padding: 20px 0;
   color: #666;
   margin-top: 30px;
}
/* Small (576px - 768px) */
@media (min-width: 576px) {
   body {
       background-color: #e8f5e9;
       padding: 20px;
   }
   h1 {
       font-size: 28px;
       color: #4CAF50;
   }
   .card {
       border-left-color: #4CAF50;
   }
   .card h2 {
       color: #4CAF50;
   }
   .units-demo h3 {
       color: #4CAF50;
   }
   .viewport-demo {
       background-color: #c8e6c9;
   }
}
/* Medium (768px - 992px) */
@media (min-width: 768px) {
   body {
       background-color: #fff3e0;
       padding: 30px;
   }
   .container {
       max-width: 750px;
   }
   h1 {
       font-size: 32px;
       color: #FF9800;
   }
   .subtitle {
       font-size: 16px;
   }
   .card {
       padding: 25px;
       border-left-color: #FF9800;
   }
   .card h2 {
       font-size: 20px;
       color: #FF9800;
   }
   .units-demo h3 {
       color: #FF9800;
   }
   .viewport-demo {
       background-color: #ffe0b2;
   }
}
/* Large (992px - 1200px) */
@media (min-width: 992px) {
   body {
       background-color: #f3e5f5;
   }
   .container {
       max-width: 960px;
   }
   h1 {
       font-size: 36px;
       color: #9C27B0;
   }
   .card {
       padding: 30px;
       border-left-color: #9C27B0;
   }
   .card h2 {
       font-size: 22px;
       color: #9C27B0;
   }
   .card p {
       font-size: 15px;
   }
   .units-demo h3 {
       color: #9C27B0;
   }
   .viewport-demo {
       background-color: #e1bee7;
   }
}
/* Extra Large (1200px+) */
@media (min-width: 1200px) {
   body {
       background-color: #e0f7fa;
   }
   .container {
       max-width: 1140px;
   }
   h1 {
       font-size: 42px;
       color: #00BCD4;
   }
   .subtitle {
       font-size: 18px;
   }
   .card {
       padding: 35px;
       border-left-color: #00BCD4;
   }
   .card h2 {
       font-size: 24px;
       color: #00BCD4;
   }
   .card p {
       font-size: 16px;
   }
   .units-demo h3 {
       color: #00BCD4;
   }
   .viewport-demo {
       background-color: #b2ebf2;
       padding: 20px;
   }
}

/* Print Media Query - Crno-bijeli ispis */
@media print {
   * {
       background-color: white !important;
       color: black !important;
       border-color: black !important;
   }
   
   body {
       background-color: white !important;
       color: black !important;
       padding: 0;
   }
   
   h1, h2, h3, h4, h5, h6 {
       color: black !important;
   }
   
   .subtitle {
       color: black !important;
   }
   
   .viewport-demo {
       background-color: white !important;
       color: black !important;
       border: 1px solid black;
   }
   
   .card {
       background-color: white !important;
       border-left: 4px solid black !important;
       page-break-inside: avoid;
   }
   
   .card h2 {
       color: black !important;
   }
   
   code {
       background-color: white !important;
       color: black !important;
       border: 1px solid black;
   }
   
   .units-demo h3 {
       color: black !important;
   }
   
   .absolute-unit {
       background-color: white !important;
       color: black !important;
       border: 2px solid black;
   }
   
   .relative-unit {
       background-color: white !important;
       color: black !important;
       border: 2px solid black;
   }
   
   footer {
       color: black !important;
   }
}