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

body {
    background-image: url(img/fondo2.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: Street, Arial, Helvetica, sans-serif;
}

@font-face {
    font-family: Street;
    src: url(font/street.otf);
}

h1 {
    color: crimson;
    font-size: 46px;
    text-align: center;
}

h2 {
    color: crimson;
    font-size: 28px;
    text-align: center;
}

table {
    width: 600px;
    height: 800px;
    border: 10px outset rgb(237, 175, 5);
    border-radius: 10px;
    background-color: black;
    margin: auto;
    text-align: center;
}

#cabecera {
    width: 40px;
    height: 45px;
    background-image: url(img/fondocabecera.jpg);
    background-size: cover;
    color: whitesmoke;
    opacity: 0.5;
    font-size: 40px;
}

tr, td {
    width: 40px;
    height: 45px;
    border: 2px solid grey;
    border-radius: 10px;
}

span {
    font-size: 18px;
    font-weight: bold;
    color: darkorange;
    display: block;
}

form {
    width: 600px;
    height: 1100px;
    border: 10px outset rgb(237, 175, 5);
    color: white;
    border-radius: 10px;
    background-color: black;
    margin: auto;
    font-size: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: block;
}
fieldset {
    margin: 10px;
    padding: 5px;
}

legend {
    font-family: Street, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    color: rgb(237, 175, 5);
    margin: 5px;
}

label {
    display: block;
    margin: 8px;
}

textarea {
    width: 560px;
    height: 200px;
}

button {
    border: 1px solid crimson;
    background-color: crimson;
    font-family: Street, Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    width: 200px;
    height: 50px;
    border-radius: 5px;
    margin-left: 65px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        box-sizing: border-box;
    }

    td {
        width: 25%;
        text-align: center;
        padding: 0.5rem;
        word-wrap: break-word;
    }

    td span {
        display: block;
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    td img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    form {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        margin: 0 auto;
    }

    textarea {
        width: 100%;
        box-sizing: border-box;
        resize: vertical;
        min-height: 120px;
    }

    .botones {
        gap: 2vh;
        display: flex ;
        justify-content: center;
        align-items: center;
        padding-bottom: 2vh;
    }

    .botones button {
        min-width: 100px;
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1rem;
    }

    td span {
        font-size: 12px;
    }

    td img {
        max-width: 70px;
        height: auto;
    }

    input, textarea {
        font-size: 14px;
    }

    .botones { 
        margin: 0;
        justify-content: center;
        align-items: center;
    }

    .botones button {
        padding: 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    h1, h2 {
        font-size: 1rem;
    }

    td img {
        max-width: 60px;
    }

    .botones button {
        padding: 0;
        font-size: 0.8rem;
    }
}
