html{
    height: 100%;
}
body {
    font-family: sans-serif;
    background: #252525;
    margin: 0;
    padding: 0 25px;
    height: 100%;
    position: relative;
}

h1,
h2 {
    color: #ffffff;
}

header {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 45px;
    padding: 10px 0;
}
header h1{
    width: 100%;
}

section {
    gap: 15px;
    flex-wrap: wrap;
    display: flex;
}

section>div {
    flex-grow: 1;
    text-align: start;
    border: 1px solid #484848;
    border-radius: 3px;
    display: grid;
    position: relative;
    flex-basis: 0;
    padding: 10px;
    gap: 10px;
}
footer{
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #484848;
    margin-top: 10px;
    position: relative;
    width: 100%;
    bottom: 0;
    color: #ffffff;
}

#cidade {
    grid-template-columns: repeat(3, 1fr);
}

#video {
    grid-template-columns: repeat(1, 1fr);

}

section>div::before {
    content: 'Selecione a câmera';
    position: absolute;
    top: -35px;
    font-family: sans-serif;
    font-size: 30px;
    color: #fff;
}

#cidade::before {
    content: 'Escolha uma cidade';
}

#info::before {
    content: 'Selecione a câmera';
}

#cidade div {
    flex-grow: 1;
    text-align: start;
    border-radius: 3px;
    text-align: center;
}
#cidade div a{
    display: inline-block;
    width: auto;
    text-decoration: none;
}

#cidade img {
    width: 180px;
    max-width: 100%;
    cursor: pointer;
    height: auto;
}

#cidade h3,
#cidade p {
    margin: 0;
    cursor: pointer;
    color: #ffffff;
}

ul {
    margin: 0;
    list-style: none;
    color: #ffffff;
    display: grid;
    gap: 5px;
}

ul h2,
ul h4{
 margin-top: 0;
 margin-bottom: 5px;   
}
ul li a{
    color: #ffffff;
    margin: 5px 0px;
    text-decoration: none;
}

ul li a:hover{
    color: #484848;
}

.link-volta{
    line-height: 35px;
    font-size: 18px;
    text-decoration: none;
    color: #28bb34;
}

@media (max-width: 991px) {
    section {
        grid-template-columns: repeat(1, 1fr);
        display: grid;
    }

    #cidade {
        margin-bottom: 35px;
    }
}


/* Estilo do modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    padding: 20px;
    background-color: white;
    width: auto;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    cursor: pointer;
}