* {
    margin: 0;
    padding: 0;
    box-sizing: content-box;
}

/*     Fonts       */

@font-face {
    font-family: notosansreg;
    src: url(../fonts/notosansreg.ttf);
}

@font-face {
    font-family: comfortaa;
    src: url(../fonts/comfortaa.ttf);
}

@font-face {
    font-family: fortuna;
    src: url(../fonts/fortunaschwein.ttf);
}

@font-face {
    font-family: nunito;
    src: url(../fonts/nunito.ttf);
}




/*       Main content       */

body {
    background-image: url("../images/bg-general3.png");
    background-repeat: no-repeat;
    background-position: top;
    
    color: rgb(15,15,15);
    font-family: 'nunito', sans-serif;
    font-size: 12pt;
    font-style: normal;
    width: 100%;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #333;
    font-weight: bold;
}

h2, h3 {
    clear: both;
    font-family: 'fortuna', sans-serif;
    font-size: 24pt;
    font-weight: bold;
}

h2 { 
    margin: 0;
    padding: 0;
    text-align: center; 
}

h3 {
    font-family: 'comfortaa', sans-serif;
    text-align: center;
    font-size: 18pt;
    margin: 20px 0 0 20px;
    padding: 5px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td {
    padding: 5px 10px;
    font-size: 11pt;
    vertical-align: top;
}

#container {
    margin-bottom: 30px;
    min-width: 100%;
    width: 100%;
}

#title-image {
    margin: 0 auto;
    width: 100%;
    max-width: 630px;
}

#title-image img {
    margin: 0 auto;
    width: 100%;
}

#page-content { padding: 0 20px; }

footer {
    text-align: center;
    width: 100%;
}

@media(max-width: 700px) {
    
    footer p {
        margin: 0 auto 25px;
        text-align: center;
        width: 100%;
    }
}






/*   Search Form   */

form { width: 100%; }

input, select {
    margin-top: 3px;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 2px 5px;
}

select {
    border-radius: 4px;
    padding: 2px;
    text-align: left;
    width: 250px;
}

option { 
    padding-top: 5px; 
    padding-left: 5px; 
}

.search-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items:flex-start;
    align-content: flex-start;
    
    background-color: rgba(255,255,255,0.75);
    margin: 10px auto;
    border-radius: 5px;
    padding: 0 15px;
    max-width: 700px;
}

label { 
    margin-bottom: 3px;
    font-size: 11pt; 
}

.type-label { display: none; }

.search-tile {
    display: flex;
    flex-direction: column;
    
    padding: 15px;
}

.name-search. #submit-area {
    flex-basis: 55%;
}

.name-search input { min-width: 345px; }

.type-search { flex-basis: 25%; }

#attraction-type { display: block; }

#ride-type { display: none; }

#other-type { display: none; }

.years {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: ce;
    align-content: flex-start;
    align-items: flex-start;
    flex-basis: 55%;
    
    padding: 15px 0;
}

#opened-years, #closed-years {
    display: flex;
    flex-direction: column;
    
    padding: 0 15px;
}

#opened-years { margin-right: 25px; }

.year-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.year-group select { max-width: 55px; }

.year-dash { padding: 0 10px; }

#include-dates { padding: 15px; }

#attraction-type { flex-basis: 25%; }

.year-field {
    margin-top: 2px;
    margin-bottom: 10px;
    width: 65px;
}

.checkbox {
    clear: both;
    float: left;
    margin-top: 4px;
    margin-left: 0;
    margin-right: 5px;
}

#submit-area {
    flex-basis: 100%;
    flex-direction: row;
    align-items: center;
    
    padding-top: 0;
    padding-bottom: 50px;
}

.search-button, .search-button:hover{
    padding: 10px;
    font-size: 12pt;
}

.search-button {
    background: #ccc;
    color: #222;
}

.search-button:hover {
    background: #555;
    color: #fff;
}

#use-form {
    margin: 25px auto; 
    text-align: center;
    font-size: 12pt; 
}

.clear-form { padding-left:  25px; }

@media(max-width: 700px) {
    
    .search-tile { width: 100%; }
    
    label { font-size: 14pt; }
    
    .type-label { display: contents;}
    
    input, option, select {
        font-size: 14pt;
        max-width: 95%;
    }
    
    #datagroup { max-width: 95%; }
    
    #name-section { order: 1; }
    
    #type-section { order: 2; }
    
    #attraction-type, #ride-type, #other-type { 
        order: 3; 
    }
    
    #years-section { order: 4; }
    
    .name-search input {
        flex-basis: 95%;
        width: 95%;
        max-width: 95%;
        height: 40px;
    }
    
    .type-search { flex-basis: 100%; }
    
    .type-search select { width: 100%; }

    .year-group {
        align-items: baseline;
        font-size: 18pt;
    }
    
    .year-field { min-width: 150px; }
    
    #opened-years { margin-bottom: 25px; }
    
    select { height: 40px; }
    
    #type {
        height: 110px;
        width: 400px;
        max-width: 100%;
    }
    
    #submit-area { 
        order: 5;
        width: 100%;
    }
    
    .search-button {
        font-size: 14pt;
        width: 200px;
    }
    
    .clear-form { 
        margin: 0;
        padding: 0 55px;
        text-align: center;
        width: 250px;
    }
    
}







/*   Search Results   */

.odd-row { background: #d0d0d0; }

.even-row { background: #eee; }

#row-count {
    margin: 2px 15px;
    text-align: left;
    font-size: 11pt;
    width: 100%;
}

#sort-links {
    display: none;
    font-size: 11pt;
}

.table-header, .table-header td {
    background: #aaa;
    color: #000;
    font-family: nunito;
    font-weight: bold;
    font-size: 12pt;
    border-bottom: 1px;
}

.arrow {
    margin-left: 2px;
    width: 10px;
    height: 10px;
}

.error {
    clear: both;
    margin-top: 50px; 
    text-align: center;
    font-size: 12pt;
}

#results-container {
    margin: 0 auto 30px;;
    width: 95%;
}

.no-results {
    margin-top: 50px;
    text-align: center;
    font-size: 12pt;
    
}

.blank-search {
    clear: both;
    margin-top: 50px;
    text-align: center;
    font-size: 12pt;
}

.row, .results-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-top: 5px;
    text-align: left;
}

.cell {
    margin: 0 10px;
    padding: 5px;
}

#name-set {
    display: flex;
    flex-direction: row;
}

.name-cell { 
    width: 250px;
    min-width: 250px;
}

.altname-cell { 
    width: 250px; 
    min-width: 250px;
}

.aka, .show { display: none; }

.type-cell {
    width: 175px;
    min-width: 175px;
}

.opened-cell, .closed-cell {
    display: block;
    width: 75px;
    min-width: 75px;
}

.years-cell { display: none; }

.notes-label, .type-level { display: none; }

@media(max-width: 1300px) {
    
    .name-cell, .altname-cell { 
        width: 175px;
        min-width: 175px;
    }

    .type-cell {
        width: 150px;
        min-width: 150px;
    }
}

@media(max-width: 1000px) {
    
    #results-container { width: 100%; }
    
    #row-count {
        float: left;
        margin: 15px;
        width: auto;
    }

    #sort-links {
        display: block;
        margin: 15px;
        text-align: right;
        min-width: 400px;
    }
    
    #found-results {
        clear: both;
        float: none;
    }
    
    .row { display: none; }
    
    .results-card { 
        flex-direction: column;
        padding: 10px;
    }
    
    .name-cell { 
        order: 1;
        margin-bottom: 0;
        font-size: 14pt;
        font-weight: bold;
        width: 100%;
        min-width: 0;
    }

    .altname-cell {
        order: 2;
        font-size: 12pt;
        width: 100%;
        min-width: 0;
    }
    
    .aka, .show { display: contents; }

    .type-cell {
        order: 4;
        width: 100%;
        min-width: 0;
    }
    
    .opened-cell, .closed-cell {
        display: none;
    }
    
    .years-cell {
        display: block;
        order: 3;
        margin: 5px 15px;
        font-size: 12pt;
    }
    
    .notes-cell { 
        order: 6;
        margin-top: 0;
        line-height: 1.5;
    }
    
    .notes-label, .type-label { 
        display: contents; 
        font-weight: bold;
    }
}







/*   Info Pages   */

#info {
    background-color: rgba(255,255,255,0.75);
    margin: 20px auto;
    border-radius: 5px;
    padding: 2px;
    width: 850px;
}

.all-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    
    margin: 0 auto;
    border-top: 1px dashed #000;
    width: 800px;
}

.info-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
}

.info-group, .info-group-large {
    padding: 10px 20px;
    font-family: nunito;
}

.info-group {
    width: 45%;
}

.info-group label, .info-group-large label {
    padding: 5px 0;
    font-size: 12pt;
    font-weight: bold;
}

.info-group ul, .info-group-large ul {
    list-style: none;
}

.spread {
    line-height: 2.5;
}

.spread p {
    line-height: 1.25;
}

.info-group-large {
    flex-grow: 2;
    flex-basis: 90%;
}

.info-header {
    background: #ddd;
    margin-bottom: 3px;
    border-radius: 10px 5px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 11pt;
    width: 100%;
}

#page-content p { margin-bottom: 18px; }

#return-to-search {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    
    margin: 5px auto;
    width: 400px;
}

.back-to-search, .back-to-search:hover, .back-to-search a:hover {
    background: #ccc;
    color: #222;
    margin: 5px auto;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 11pt;
    text-align: center;
    width: 160px;
}

.back-to-search:hover, .back-to-search a:hover {
    border-radius: 5px;
    font-weight: bold;
}

.back-to-search a {
    border-radius: 5px;
    width: 100%;
}

@media(max-width: 850px) {
    
    #info {
        font-size: 14pt;
        width: 100%;
    }
    
    .all-info {
        width: 100%;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .spread {
        line-height: 1.5;
    }
}

@media(max-width: 700px) {
    
    #container {
        font-size: 14pt;
        width: 100%;
    }
}

@media(max-width: 500px) {
    
    #return-to-search {
        width: 90%;
        flex-direction: column;
    }
}
