html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: Georgia;
    font-size: small;
}

th, td {
    vertical-align: bottom;
    text-align: left;
}

#map {
    width: 100%;
    height: 100%;
}

.ol-selectable {
    z-index 3;
}

.ol-popup {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    -moz-box-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #dcdd9194;
    bottom: 12px;
    left: -50px;   
    height: auto;
    width: auto;
    min-width: 100px;
    max-height:700px;
    overflow: auto;      
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}

.ol-popup-closer:after {
    content: "X";
}

.ol-attribution a {
    text-decoration: none;
    color: #666;
    font-family: sans-serif;
    font-size: 100%;
}

.layer-switcher .panel {
    border: 4px solid rgba(0,60,136,.5) !important;
    border-radius: 4px !important;
}

.layer-switcher {
    top: .5em;
    right: 0.5em;
    text-align: left;
    /*bottom: unset!important;*/
}

.layer-switcher .panel {
	max-height: calc(100vh - 100px);
}

#popup-content>ul>li:nth-child(even) {
    background-color: #eee;
}

#popup-content ul {
    list-style-type: none;
    padding-left: 0;
}

#popup-content li {
    margin-bottom:0.25em;
}

#popup-content>table {
    font-size: 11.4px;
}

.upprunalond_icon {
    position: relative;
    display: inline-flex;
    width: auto;
    height: auto;
}

.upprunalond_icon::before {
    content: "";
    position: flex;
    display: inline-block;
    background-image: url('../styles/legend/info.png');
    background-size: cover;
    width: 18px;
    height: 19px;
    margin-right: 0px;
}


.image_container {
    position: relative;
    right: 40%;
    display: inline-block;
  }

.hover_image_container {
    position: relative;
    z-index: 1;
}

.icon_text {
    position: absolute;
    left: 100%;
    display: inline-block;
    font-weight: normal;
    }

.hover_image_upprunalond {
    display: none;
    width: 283px;
    height: 441px;
    }

.hover_image_stigar {
    display: none;
    width: 223px;
    height: 381px;
    }

.hover_image_skolar {
    display: none;
    width: 136px;
    height: 151px;
    }

.hover_image_skolahverfi {
    display: none;
    width: 124px;
    height: 168px;
    }

.hover_image_grasslattur {
    display: none;
    width: 21vw;
    height: 21vh;
    }

.hover_image_leiksvaedi {
    display: none;
    width: 94px;
    height: 35px;
}


.hover_image_hverfaskipting {
    display: none;
    width: 188px;
    height: 188px;
    }


.hover_image_midlinur {
    display: none;
    width: 100.25px;
    height: 150.5px;
    }


.upprunalond_icon:hover .hover_image_upprunalond,
.upprunalond_icon:hover .hover_image_stigar,
.upprunalond_icon:hover .hover_image_skolar,
.upprunalond_icon:hover .hover_image_skolahverfi,
.upprunalond_icon:hover .hover_image_grasslattur,
.upprunalond_icon:hover .hover_image_leiksvaedi,
.upprunalond_icon:hover .hover_image_hverfaskipting,
.upprunalond_icon:hover .hover_image_midlinur {
    display: block;
}

.tooltip {
    white-space: pre-line;
}

.info-container {
    position: relative;
    display: inline-block;
}

.info-container .info-image {
    width: 16px;
    height: 16px;
}

.info-container .hover-image {
    position: absolute;
    top: 80%;
    left: 14px;
    display: none;
    margin-top: 5px;
    transform: scale(0.26);
    transform-origin: top left;
    z-index: 50000;

}

.info-container .info-image:hover + .hover-image {
    display: block;
}

.info-container:hover .hover-image {
    display: block;
}


.hnitbox {
    padding: 10px;
    background-color: rgba(255,255,255,0.8);
    border: 1px solid #ccc;
    position: absolute;
    bottom: 7px;
    left: 7px;
    z-index: 1000;
}

.ol-popup.lausar-lodir-popup {
    font-size: 16px;
    width: 330px;              /* Increase the width to make it wider */
    max-width: 700px;          /* Set a maximum width if necessary */
    min-width: 330px;          /* Set a minimum width */
    padding: 20px;             /* Adjust padding for better presentation */
    border: 2px solid #6a93b0; /* Change the border color to make it visually distinct */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Add more pronounced shadow */
    display: flex;
    flex-direction: column;
    align-items: center;    /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */
    text-align: center;      /* Centers the text inside the popup */
    overflow: hidden;
}

.popup-title {
    width: 90%;
    background-color: rgba(255, 255, 255, 0.0);
    font-weight: bold;
    padding: 10px 15px;
    font-size: 1em;
    text-align: left;
    border-bottom: 1.5px solid #000000; /* Add a border between title and content */
    color: #333333; /* Darker text color */
}

/* Header Section with Image */
.popup-header {
    width: 100%;
}

.popup-map-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #dcdcdc; /* Add a border between header and content */
}

/* Body Section */
.popup-body {
    padding: 20px;
    text-align: center;
}

.popup-body h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333333; /* Darker text color */
}

.popup-body p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666666; /* Use a softer color for the text */
}

/* Info Box Styling */
.popup-info-box {
    background-color: #f7f7f7; /* Light gray background */
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 15px;
    width: 89%;
    margin-top: 20px;
    margin-right: 20px;
    text-align: center; /* Left align content in info box */
}

.popup-info-box h3 {
    font-size: 1.0em;
    margin-bottom: 10px;
    color: #333333;
    text-align: center; /* Header text centered */
}

.popup-info-box p {
    margin: 10px 0;
    font-size: 0.9em;
    color: #333333;
}

.popup-info-box p strong {
    font-weight: bold;
}


/* Layer-specific popup styling */
/*
#popup-content.lausar-lodir-popup {
    background-color: #f0f8ff; /* Light blue background */
/*    color: #333;               /* Darker text color */
/*    font-size: 14px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#popup-content.lausar-lodir-popup ul {
    list-style-type: none;
    padding-left: 0;
}

#popup-content.lausar-lodir-popup li {
    margin-bottom: 0.25em;
}

#popup-content.lausar-lodir-popup th {
    font-weight: bold;
    color: #555;
}

*/
.download-takki {
    background-color: #007BFF; /* Blue color */
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.download-image { 
    cursor: pointer;
}

.download-options {
    margin-top: 10px;
    display: block;
/*
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    width: 120px;
    position: absolute;
    z-index: 1000;
*/
}

.download-link {
    text-decoration: none;
    color: #007BFF;
    display: block;
    padding: 5px 0;
}

.download-link:hover {
    text-decoration: underline;
}

.download-container {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Adjust spacing between text and links */
}

.download-info {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 5px; /* Space between the links */
    line-height: 1.5;
}

.download-link,
.download-description {
    display: inline-block; /* Ensure they are inline */
    vertical-align: middle; /* Align them properly */
    margin-right: 5px; /* Space between link and description */
    color: #007bff; /* Link color */
}

.download-link {
    color: #007bff; /* Link color */
    font-size: 1.2em; /* Increase the font size of the links */
    font-weight: bold; /* Optional: make the links bold for better visibility */
}

.download-description {
    color: #333; /* Color for the description text */
}

.download-link:hover {
    text-decoration: underline;
}

.download-list a {
    text-decoration: none;
    color: #007bff; /* Bootstrap link blue color */
}

.download-list a:hover {
    text-decoration: underline;
}
/* General styling for button */
#drawPolygonButton {
  background-color: #007bff; /* Primary blue color */
  color: white;
  border: none;
  border-radius: 3px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#drawPolygonButton:hover {
  background-color: #0056b3; /* Darker blue for hover */
}

/* General styling for dropdowns */
#layerSelect, #outputFormatSelect {
  width: 200px;
  padding: 8px;
  border-radius: 3px;
  border: 1px solid #cccccc;
  font-size: 14px;
  margin-bottom: 8px;
  transition: border-color 0.3s ease;
  text-align: center;
}

/* Focus styling for dropdowns */
#layerSelect:focus, #outputFormatSelect:focus {
  border-color: #007bff; /* Blue border when focused */
  outline: none;
}

/* Optional enhancement: add consistent margins */
#layerSelect, #outputFormatSelect, #drawPolygonButton {
  margin: 8px 0;
}
/* Style for the download toggle button */
#downloadToggleButton {
    position: absolute;
    top: 240px; /* Adjust to place below the LidarTakki button */
    left: .6em;
    z-index: 1000;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

#downloadToggleButton:hover {
    background-color: #0056b3;
}

/* Style for the download box */
#downloadBox {
    position: absolute;
    top: 240px; /* Adjust to position below the downloadToggleButton */
    left: 40px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
    max-width: 300px;
}

/* Stack elements vertically with spacing */
#downloadBox > * {
    display: block;
    width: calc(100% - 20px); /* Set a consistent width */
    margin-bottom: 16px;
}

/* Style selects and button inside the box */
#downloadBox select, #downloadBox button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* Style the drawPolygonButton */
#drawPolygonButton {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 3px;
}

/* Hover effects */
#downloadToggleButton:hover, #drawPolygonButton:hover {
    background-color: #0056b3;
    color: #fff;
    opacity: 0.8;
}

#downloadBox .downloadBoxTitle {
    font-size: 16px;
    font-weight: bold;
    color: #333; /* Dark gray color for the text */
    text-align: left; /* Center the text */
    margin-bottom: 12px;
}
#downloadBox .downloadBoxDescription {
    font-size: 14px;
    color: #555;
    text-align: left;
    line-height: 1.5;
}
@media (pointer: coarse) {
    #downloadToggleButton {
        padding: 8px;
        top: 330px;
        left: 0.6em;
    }
    #downloadToggleButton .fa {
        font-size: 15px;
    }
    #downloadBox {
        top: 330px;
        left: 5em;
    }
}

/* Additional media query for general adjustments */
@media {
    #downloadToggleButton .fa {
        font-size: 15px;
    }
}
