---
description: Archivo CSS que contiene los estilos para el sitio web del portal cautivo
---

# CSS

***

* Crear fichero styles.css en /srv/http (o en /var/www/html, dependiendo la configuración del fichero /etc/httpd/conf/httpd.conf).

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

body {
    font-family: Arial, sans-serif;
    background: url('./img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background-color: #0071BC;
    padding: 20px;
    text-align: center;
}

.header h1 {
    color: white;
    font-size: 24px;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.image-box {
    flex: 1;
    text-align: center;
}

.router-wifi {
    max-width: 100%;
    height: auto;
}

.login-box {
    flex: 1;
    max-width: 300px;
    margin-left: 20px;
}

.logo {
    max-width: 200px;
    width: 100%;
    display: block;
    margin: 0 auto 20px;
}

.login-box h2 {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.firmware-update {
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.firmware-update table {
    width: 100%;
    margin-bottom: 20px;
}

.firmware-update th {
    text-align: left;
    font-size: 18px;
    color: #0071BC;
    margin-bottom: 10px;
}

.firmware-update td {
    font-size: 16px;
    color: #333;
    padding: 5px 0;
}

.footer {
    text-align: center;
    margin-top: 20px;
}

.footer a {
    color: #0071BC;
    text-decoration: none;
    font-size: 14px;
}

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

@media screen and (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .login-box {
        margin-left: 0;
        margin-top: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .firmware-update {
        margin: 10px;
        padding: 15px;
    }

    .firmware-update th {
        font-size: 16px;
    }

    .firmware-update td {
        font-size: 14px;
    }
}
```

***
