﻿html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    background-color: rgba(28,206,234,0.82);
    background: linear-gradient(-45deg, lightsteelblue 0%, rgba(28,206,234,0.82) 100%);
    background-attachment: fixed;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    box-sizing: border-box;
    background-color: steelblue;
    padding: 10px;
    box-shadow: 1px 1px 5px rgba(0,0,0,.9);
    display: flex;
    position: sticky;
    top: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

    header nav {
        display: flex;
        gap: 5px;
    }

        header nav a {
            font-weight: lighter;
            text-align: center;
            color: white;
            text-decoration: none;
            padding: 3px;
        }

            header nav a:hover {
                background-color: rgba(255, 255, 255, 0.2);
            }

        header nav .fa {
            display: block;
            font-size: x-large;
        }

    header div {
        max-width: 70%;
        background-image: url(images/logo.png);
        background-repeat: no-repeat;
        background-size: 60px;
        background-position: 10px center;
        padding: 10px 10px 10px 80px;
        margin: 0;
        color: white;
        font-size: 0.9em;
        font-weight: normal;
        overflow: hidden;
    }

    header h1, header h2 {
        margin: 0;
        padding: 0;
        font-size: larger;

    }

    header h2 {
        font-size: large;
        font-weight: lighter;
    }

main h3 {
    font-size: large;
    margin: 3px 0;
    font-weight: lighter;
    text-align: center;
    color: white;
    width: calc(100% - 10px );
    background-color: steelblue;
    padding: 5px 5px;
}

    main h3.half {
        display: inline-block;
        width: calc(50% - 10px);
        margin-right: -4px;
    }

footer {
}

.survey{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.survey, .form {
    background-color: rgba(255, 255, 255, 0.90);
    margin: 20px auto;
    padding: 20px;
    width: calc(100% - 60px);
    min-height: 300px;
    border-radius: .3em;
    box-shadow: 1px 1px 5px rgba(0,0,0,.9);
}

.form {
    width: 300px;
}

form label, form input, form textarea, form select {
    display: block;
    resize: none;
    margin: auto;
    width: 100%;
    font-size: 11pt;
    padding:3px;
}

.survey table {
    width: 100%;
    border-spacing: 0;
    border: 1px solid black;
}

    .survey table th, .survey tbody td {
        border-bottom: 1px solid black;
        padding: 1px;
        text-align: left;
        font-weight: lighter;
        font-size: 10pt;
    }

    .survey table th {
        background-color: lightsteelblue;
        color: #fff;
        font-weight:bold;
        padding:3px;
    }

.survey h2 {
    font-weight: lighter;
    margin: 0;
}

    .survey h2 a {
        float: right;
        display: block;
        padding: 5px;
        height: 20px;
        font-size: small;
        text-decoration: none;
        border: 1px solid black;
        margin-left: 10px;
        background-color: lightsteelblue;
        color: black;
    }

    .survey h2 span {
        font-weight: normal;
    }

.survey table th {
    text-transform: uppercase;
    padding: 3px;
}

.survey tfoot td {
    text-align: right;
    font-size: x-small;
    font-style: italic;
    padding: 10px 8px;
}


.survey table a {
    text-decoration: none;
}

.survey table tr {
    background-color: white;
}

.survey tbody tr:nth-child(odd) {
    background-color: whitesmoke;
}

.admintable tbody tr {
    cursor: pointer;
}

.survey table tr:hover {
    background-color: cornflowerblue !important;
    color: white;
}

    .survey table tr:hover a {
        color: white;
    }

.botones {
    text-align: center;
    margin: 20px;
    display:flex;
    justify-content:center;
    gap:10px;
}

.botones a{
    text-decoration:none;
}
.btn {
    display: inline-block;
    padding: 10px;
    background-color: steelblue;
    color: white;
    text-decoration: none;
}
.botones input{
    margin:0;
}

input[type=submit], input[type=button] {
    color: white;
    width: auto;
    padding: 5px 20px;
    background-color: steelblue;
}

div.pregunta {
    display: none;
}

    div.pregunta.active {
        display: block;
    }

.validation-summary-errors {
    color: red;
    font-size: x-small;
}

input[type=radio] {
    display: block;
    width: 100%;
}

h3 a {
    color: white;
    font-size: medium;
    float: right;
    text-decoration: none;
}

.filtros {
    display:flex;
    gap:10px;
}

    .filtros select {
        flex: 1;
    }

.center {
    text-align: center !important;
    margin: auto;
}


td textarea {
    display: block;
    resize: none;
    width: 99%;
}


.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}


footer h6 {
    padding: 3px;
    margin: 0;
    text-align: right;
    color: steelblue;
}

.twocolumns input {
    width: 300px;
    display: inline-block;
    background: lightsteelblue;
    padding: 5px;
    margin-bottom: 5px;
}

.twocolumns {
    display: flex;
    justify-content: space-between;
}
