
* {
  box-sizing: border-box;
}

#add-aktivitet {
  width: 80px;
  height: 30px;
  margin-left: 60px;
  background: #ffffff;

  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat';
  border-style: none;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#cancel-event {
  width: 80px;
  height: 30px;
  margin-left: 5px;
  background: #ffffff;

  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat';
  border-style: none;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#add-aktivitet:hover,
#cancel-event:hover {
  background-color: #eeeeee;
  cursor: pointer;
  transition: 0.3s;
}

#aktivitet-row {
  background: #48858a;
  position: fixed;
  width: 400px;
  height: 750px;
  top: 50%;
  left: 50%;
  margin-top: -350px; /* Negative half of height. */
  margin-left: -200px; /* Negative half of width. */
  border-radius: 8px;
  opacity: 1;

  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

#update-row {
  background: #48858a;
  position: fixed;
  width: 400px;
  height: 670px;
  top: 50%;
  left: 50%;
  margin-top: -350px; /* Negative half of height. */
  margin-left: -200px; /* Negative half of width. */
  border-radius: 8px;
  opacity: 1;

  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.mapboxgl-canvas {
  width: 100% !important;
  height: 100vh !important;
}

#förening .col-left { width: 50%; float: left; }
#förening .col-right { width: 50%; float: right; }


#förening h2,
#förening h4 {
  color: white;
  padding: 0;
  margin: 5px 10px 5px 0px;
  text-align: center;
  padding-top: 6px;
  width: 90%;
}

#förening ul {
  list-style-type: none;
  margin-left: 10%;
  margin-right: 10%;
  padding: 0;
  width: 80%;
}

#förening ul li { clear: both; }

#förening input,
#förening select {

  background: #eeeeee;
  border-radius: 8px;
  width: 230px;
  height: 25px;

  text-align: center;
  font-family: 'Montserrat';
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-style: none;
}

#katage input, #katage select, #tid input, #tid select,
#datum input, #datum select{ margin-bottom: 8px; }


#date-end {
  float: right;
}
#time-end {
  float: left;
}


#date-start {
  float: left;
  margin-right: 5px;
}

#time-start {
  float: right;
  margin-right: 5px;
}

#förening #upload ul { width: 80% !important; }
#förening #open-select-place-btn { 
  float: right; margin-right: 10px; padding: 6px 8px; border-radius: 8px; margin-bottom: 6px;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  display: block;
  cursor: pointer;
  font-family: 'Montserrat';
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

@media screen and (max-width: 767px) {
  #förening input, #förening textarea, #förening select { width: 100% !important; height: 42px !important; }
  #förening textarea { height: 160px !important; clear: both; margin-top: 0px; }

  #katage h4, #tid h4, #datum h4 { height: 42px; }
  
  #förening {
    background: #48858a;
    position: fixed;
    width: 100%;
    height: 100% !important; padding-bottom: 12px;
    z-index: 1000;
    top: 0;
    left: 0;
    margin-top: 0;
    margin-left: 0;
    border-radius: 8px;
    opacity: 1;
    overflow-y: auto;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
  }

  .splashscreen img { max-width: 65%; max-height: 64%; display: block; margin: 8px auto; }
}
@media screen and (min-width: 768px) {
  #förening input, #förening textarea, #förening select { width: 100% !important; height: 32px !important; }
  #förening textarea { height: 160px !important; clear: both; margin-top: 0px; }
  
  #katage h4, #tid h4, #datum h4 { height: 32px; }
   
  #förening {
    background: #48858a;
    position: fixed;
    width: 600px;
    
    height: 100% !important; padding-bottom: 12px;
    z-index: 1000;
    top: 0;
    left: 33%;
    margin-top: 0;
    margin-left: 0;
    border-radius: 8px;
    opacity: 1;
    overflow-y: auto;
    overflow-x: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
  }

  .splashscreen img { width: 500px; height: 496px; display: block; margin: 20px auto; }
}

#aktivitet-row h2,
#aktivitet-row h4 {
  color: white;
  padding: 0;
  margin: 5px 5px 5px 0px;
}

#update-row h2,
#update-row h4 {
  color: white;
  padding: 0;
  margin: 5px 5px 5px 0px;
}

#förening h4 {
  text-align: left;
}

#aktivitet-row h4 {
  text-align: left;
}

#update-row h4 {
  text-align: left;
}

#aktivitet-row ul {
  list-style-type: none;
  margin-left: 10%;
  margin-right: 50%;
  padding: 0;
}

#update-row ul {
  list-style-type: none;
  margin-left: 10%;
  margin-right: 50%;
  padding: 0;
}

#aktivitet-row input {
  position: relative;
  background: #eeeeee;
  border-radius: 8px;
  width: 320px;
  height: 30px;

  text-align: center;
  font-family: 'Montserrat';
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-style: none;
}

#update-row input,
#update-row select {
  position: relative;
  background: #eeeeee;
  border-radius: 8px;
  width: 320px;
  height: 30px;

  text-align: center;
  font-family: 'Montserrat';
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-style: none;
}

#beskrivning {
  position: relative;
  background: #eeeeee;
  border-radius: 8px;
  width: 293px;
  height: 120px;

  text-align: center;
  font-family: 'Montserrat';
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-style: none;
  resize: none;
  text-align: left;
  padding: 15px;
}

#beskrivning-input {
  position: relative;
  background: #eeeeee;
  border-radius: 8px;
  width: 230px;
  height: 120px;
  margin-top: -50px;
  text-align: center;
  font-family: 'Montserrat';
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-style: none;
  resize: none;
  text-align: left;
  padding: 15px;
}

#img {
  float: left;
}

#img-input {
  width: 200px !important;
  height: 21px !important;
}

#tillbaka-btn {
  width: 80px;
  height: 30px;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat';
  border-style: none;
  box-shadow: rgb(0 0 0 / 15%) 1.95px 1.95px 2.6px;
}

#tooltip {
  position: relative;
  display: inline-block;
}

#tooltip #tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -60px;
}

#tooltip #tooltiptext::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

#tooltip:hover #tooltiptext {
  visibility: visible;
}

#update-img-input {
  width: 200px !important;
  height: 21px !important;
}

.kategori,
.age {
  width: 100px !important;
  display: inline !important;
}

#img,
#age {
  width: 150px !important;
  display: inline !important;
}
#imgage {
  width: 330px;
}

#imgage h4 {
  display: inline;
  padding: 30px;
}

.select-place-popup { padding: 10px; background-color: #fff; height: auto; border-radius: 8px; box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px; }

#select-place-button, #select-place-cancel { 
  padding: 6px 12px;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat';
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#select-place-button { float: left; }
#select-place-cancel { float: right; margin-left: 6px; }
.select-place-marker { background-image: url('images/select-pin.png'); background-size: cover; display: block; width: 40px; height: 64px; cursor: pointer; }

.select-place-info { display: block; margin-bottom: 6px; }

.splashscreen{  
  position: absolute;
  z-index: 999;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #fff;
  text-align: center;
  overflow: auto;
}
.splashscreen h3 { font-size: 22pt; }
.splashscreen p { font-size: 14pt; margin-top: 44px;}
.splashscreen button {
  margin-top: 20px;
  font-size: 14pt;
  width: 240px;
  height: 60px;
  margin-left: 60px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat';
  border-style: none;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}
.alert-info-box {
  width: 420px;
  position: absolute;
  top: 45%;
  left: 32%;
  z-index: 999;
  background-color: #fff;
  padding: 20px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  border-radius: 8px;  
}

.alert-info-box button {
  display: block;
  font-size: 14pt;
  width: 100px;
  height: 34px;
  margin: 20px auto;
  margin-bottom: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat';
  border-style: none;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;  
}

@media screen and (max-width: 992px) {
  .alert-info-box { left: 3%; top: 15%; }
}
