/*****************************
    Only large screens 
*****************************/
@media screen and (min-width: 1025px) {
    .header-fixed.is-flex-group {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        width: 100%;
    }
    
    .header-content h1 {
        font-size: 26px;
        margin: 0;
        padding-left: 44vw;
        width: 100%;
    }
    
    .header-fixed nav {
        flex: none;
        margin-right: 10px;
    }       

    header nav a, 
    header nav .btn-link, 
    header nav .btn-link:focus, 
    header nav a:hover, 
    header nav a:focus, 
    header nav .btn-link:hover {
        padding: 10px 15px;
    }

    .logo-link,
    .logo-link:hover {
        background: #252525;
        box-shadow: 0px 0px 8px 0px #7d7d7d;
        margin-top: 0;
        margin-left: 23px;
        padding: 61px 10px 15px;
        position: absolute;
        width: 120px;
    }

}

@media only screen and (max-width: 1330px) and (min-width: 1024px) {
    .logo-link,
    .logo-link:hover {
        padding: 4vw 1vw 1vw;
        width: 7.2vw;
    }
}

/*****************************
    Larger than mobile
*****************************/
@media screen and (min-width: 769px) {
	.only-mobile {
		display: none;
	}
    
    header nav *:nth-child(2) {
        margin-left: 0 !important;
    }
    
    .detail-info .grid-container .grid-item:nth-child(2) .help-text,
    .detail-info .grid-3-columns .grid-item:nth-child(3) .help-text {
        left: auto;
        right: -35px;
    }

    .detail-info .grid-3-columns .grid-item:nth-child(2) .help-text {
        right: -130px;
    }
    
    .help-text {
        max-width: 47vw;
    }

}


/*****************************
    Mobile
*****************************/

@media screen and (max-width: 768px) {
    .footer-element .unit.size1of3 {
        float: none;
        margin: 0 auto;
        width: 90%;
    }

    .show-hosted-by-uu .footer-goto-top {
        height: 12vw;
        padding: 2vw 0;
    }
    
    .footer-hosted-by-uu {
        height: 25vw;
        padding: 2vw;
        bottom: 2vw;
        right: 2vw;
        width: 25vw;
    }    
    /* General */
	.slide-main {
		margin: 0;
	}
	
	.grid-container {
        grid-template-columns: auto;
    }

    /* Search */
    .appended-search-info-header {
        flex-direction: column-reverse;
    }

    .appended-search-info-header button {
        font-size: 3vw;
        margin: 0 0 2em;
        width: 44vw;
    }

    .search-group {
        display: block;
    }
    
    .search-value {
        width: 100%;
    }

    #textsearch-choice {
        margin: 4vw 2vw 0 0;
        width: 79vw;
    }

	#scroll-to-map-buttons button {
		margin: .5em 0;
		width: 100%;
	}
    
    /* Search result table */
    thead {
        display: none;
    }

    .table td {
        border: none;
        display: block;
        padding: .25em 0;
        width: 100% !important;
    }
    
    .table td.is-hidden {
        display: none;
    }
    
    .table tr {
        border-bottom: 1px solid #393939;
        display: block;
        padding: 2em 0;
    }

    .table .originalForm a p {
        color: #000;
        font-size: 1.5rem;
    }

    .table td a p {
        display: inline;
    }

    .table td::after {
        color: #666;
        font-family: 'Arial', sans-serif;
        font-size: 1rem;
        margin-left: 6px;
    }

    td.variantForm::after {
        content: '(Variant form)';
    }

    td.lemmaForm::after {
        content: '(Lemma form)';
    }

    td.englishForm::after {
        content: '(Standard form)';
    }

    td.preposition::after {
        content: '(Preposition)';
    }

    td.work::after {
        content: '(Work)';
    }

    td.sourceName::after {
        content: '(Source)';
    }

    td.language::after {
        content: '(Language)';
    }

    /* Map */
	#map {
		height: 70vh;
	}

    .leaflet-control-layers,
	.leaflet-control-zoomslider	{
		display: none;
	}

	.leaflet-top
	.leaflet-left {
		left: 3vw;
		top: 10vw;
	}
	
    /* Slides */
    #active-cluster-list .search-result {
        padding: 0 1em 0 1.5em;
    }

    .attestation-details  {
	    align-items: flex-start;
		flex-direction: column;
	}

    .attestation-details a {
        margin: 0;
        width: 100%;
    }	

    .attestation-details a p {
        display: inline;
    }

    #active-cluster-list-content li::before {
        height: 4vw;
        left: 6%;
        width: 4vw;
    }

	#active-cluster-list,
	.slide-detail.show	{
		height: 100vh;
		left: 5%;
		top: 0;
	    padding: 2% 5% 5%;
		width: 95%;
		z-index: 1005;
	}

	.slide-detail.show	{
		left: 6%;
		width: 94%;
	}

    .close-slide,
    .show .close-slide {
        background-size: 35px;
        height: 35px;
        position: fixed;
            right: 2%;
            top: 2%;
        width: 35px;
    }
}

/*****************************
    Mobile portrait
*****************************/
@media only screen and (max-width: 480px) {
    
    header nav a,
    header nav .btn-link,
    header nav .btn-link:focus,
    header nav a:hover,
    header nav a:focus,
    header nav .btn-link:hover {
        margin-left: .1vw;
        padding: 3px 6px;
    }
    
    /* search buttons */
    #new-search-layer:last-child {
        margin: 0 auto;
    }
    
    .selected-search-values {
        border: none;
    }
    
    .search-buttons {
        margin: 10px;
        top: 0;
        justify-content: flex-start;
        overflow: scroll;
        max-width: 5000px;
    }    
    
    #saved-search {
        flex-shrink: 0;
    }
    .search-buttons button {
        flex-shrink: 0;
    }
    /* UU footer*/
    .footer-hosted-by-uu {
        height: 32vw;
        padding: 4vw;
        bottom: 2vw;
        right: 2vw;
        width: 32vw;
    }
    
    .footer-hosted-by-uu-logo {
        height: 13vw;
        margin: 1vw auto 0;
    }

    .footer-hosted-by-uu-text {
        font-size: 2.1vw;
        margin-top: 4vw;
    }

    .show-hosted-by-uu .footer-goto-top {
        height: 14vw;
        padding: 2vw 0;
    }
    
    .show-hosted-by-uu .footer-goto-top span {
        margin: 0;
    }
}