@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400&display=swap');

body {
  background: black;
  color: grey;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Roboto Condensed', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 680px;
	min-width: 96%;
}
main img {
	max-width: 100%;
	height: auto;
}
main #player {
  width: 100%;
	max-height: 40%;
}
@media screen and (min-width: 1024px) {
  main #player {
    width: 70%;
  }
}

h3 {
    text-align: center;
}

button {
  background-color: #ddb312;
	color: #000000;
	font-size: 16px;
  border: none;
  width: 97%;
  height: 40px;
}

#changeCam {
  width: 150px;
  margin-bottom: 15px;
}

@media screen and (min-width: 1024px) {
  button {
    width: 97%;
  }
}

.larmbutton {
    margin-top: 5px;    
    display: flex;
    justify-content: center;
}

#larmButton {
  width: 150px;
  height: 150px;
  border-radius: 50%;
	font-size: 24px;
}

#livestreamHornButton {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	font-size: 24px;
  margin-bottom: 150px;
}

/*
img {
    width: 100%;
    height: auto;
}
*/
hr {
	border: 1px solid #ddb312;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 5px;
}

/* Inspelningar */
.recordings {
	display: flex;
	flex-direction: column;
	align-items: center;
	widht: 100%;

}
.recording {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
}
.recording-delete {
	background-color: #7E57C2;
}
@media screen and (min-width: 1024px) {
  .recording-delete {
    width: 70%;
  }
}
.recording-download {
  background-color: #30D5C8;
  font-family: 'Roboto Condensed', sans-serif;
  width: 97%;
  margin-top: 10px;
  font-size: 16px;
  height: 40px;
  display: inline-block;
  color: black;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  border: none;
  cursor: pinter;
}
@media screen and (min-width: 1024px) {
  .recording-download {
    width: 70%;
  }
}
.recordings-end {
	margin-bottom: 100px;
}
nav {
    background-color: rgb(31, 31, 31);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 95px;
    width: 100%;
}

nav p {
    margin: 0 0 10px 0;
}

.navbar-home {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-live {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-recordings {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav a i {
    font-size: 35px;
    color: lightgray;
    padding: 20px 20px 3px 20px;
}

.navbar-selected i {
    color: #ddb312;
}

.navbar-selected p {
    color: #ddb312;
}

input[type=text] {
    width: 97%;
    border: none;
    background: rgb(36, 36, 36);
    color: white;
    height: 35px;
    font-size: 18px;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    outline: none;
}

input[type=password] {
    width: 97%;
    border: none;
    background: rgb(36, 36, 36);
    color: white;
    height: 35px;
    font-size: 18px;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    outline: none;
}

input[type=text]:focus {
    border: 2px solid #ddb312;
	max-width: 97%;
}

input[type=text]:focus {
	border: 2px solid  #ddb312;
	max-width: 97%;
}

footer {
    width: 100%;
    position: fixed;
    bottom: 0;
}

#larmstatus {
    text-align: center;
}

.alarmFunction {
    margin-top: 5px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
	width: 100%;
	align-items: left;
}

.alarmFunction p {
    font-size: 18px;
    margin: 7px 0 0 5px;
}

.onlyHorn {
    display: flex;
    flex-direction: row;
}

.onlyLights {
    display: flex;
    flex-direction: row;
}

.silentAlarm {
    display: flex;
    flex-direction: row;
}

.cameraAlwaysOn {
    display: flex;
    flex-direction: row;
	width: 100%;
	align-items: left;
}

.cameraAlwaysOn p {
    font-size: 18px;
    margin: 7px 0 0 5px;
}

.pirSensor {
	display: flex;
	flex-direction: row;
	width: 100%;
	align-items: left;
}

.pirSensor p {
	font-size: 18px;
	margin: 7px 0 0 5px;
}

#settingsSaveButton {
    margin-top: 20px;
    margin-bottom: 100px;
}

/* FÖR SWITCHARNA */

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-bottom: 5px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(31, 31, 31);
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #ddb312;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #ddb312;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  /* FÖR SWITCHARNA */

.secret-link a {
  text-decoration: none;
  color: grey;
} 

.secret-link a:link {
  text-decoration: none;
  color: grey;
}

.secret-link a:visited {
  text-decoration: none;
  color: grey;
}

.error-message {
  background-color: #ffdddd;
  color: #d8000c;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #d8000c;
  border-radius: 5px;
  text-align: center;
  width: 97%;
  /* max-width: 600px; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1);
  animation: popIn 0.5s ease-out forwards;
  box-sizing: border-box;
}

/* Animation */
@keyframes popIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 3 snapshots */
.snapshot-container {
  max-width: 680px; /* Se till att containern tar upp hela viewportens bredd */
  display: flex;
  justify-content: center;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 0 20px 0;
  -webkit-overflow-scrolling: touch;
}

.image-wrapper {
  display: flex;
  justify-content: flex-start; /* Centrerar bilderna i containern */
  gap: 10px; /* Lägger till mellanrum mellan bilderna */
  flex-wrap: nowrap;
  scroll-snap-align: start;
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  flex: 0 0 auto; /* Förhindrar att bilderna krymper eller växer */
  scroll-snap-align: center;
}

/* För datorskärmar */
@media (min-width: 1024px) {
  .image-wrapper img {
    max-width: 680px; /* Bredden på bilderna på datorskärmar */
  }
    .image-wrapper img {
    max-width: none;
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .image-wrapper img {
    width: auto;
  
  }
}

/* scrollbar */
/* För WebKit-baserade webbläsare som Chrome, Safari, etc. */
::-webkit-scrollbar {
  width: 12px; /* Bredd på scrollbaren */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* Färg på spåret scrollbaren rör sig längs */
}

::-webkit-scrollbar-thumb {
  background: #ddb312; /* Färg på själva scrollbaren (tumgreppet) */
}

::-webkit-scrollbar-thumb:hover {
  background: #bda106; /* Färg på scrollbaren vid hovring */
}

/* För Firefox */
* {
  scrollbar-width: thin; /* "auto" eller "thin" */
  scrollbar-color: #ddb312 #f1f1f1; /* Tumgrepp och spår */
}

/* pilar för att visa att det finns fler bilder */
.scroll-indicator {
  position: absolute;
  top: 255px;/* 50%; /* Centrera vertikalt */
  transform: translateY(-50%);
  color: white; /* Eller någon annan färg som passar din design */
  font-size: 24px; /* Justera storleken på dina pilar */
  cursor: pointer;
  z-index: 10; /* Se till att pilarna ligger ovanpå bilderna */
  opacity: 0.5; /* Gör pilarna lite transparenta */
}

@media (max-width: 767px) {
  .scroll-indicator {
    top: 50%;
  }
}

.left-indicator {
   left: 20px; /* Position till vänster */
}

.right-indicator {
   right: 20px; /* Position till höger */
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.scroll-indicator {
  animation: pulse 2s infinite; /* Lägg till pulserande animation */
}

#image-title {
  margin: 0;
  padding: 10px;
}

/* loading updateimage */

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: transparent; /* Ingen färg initialt */
  z-index: 1000; /* Se till att den ligger över andra element */
}

@keyframes loadingAnimation {
  0% {
    background-color: transparent;
    width: 0%;
  }
  50% {
    background-color: #ddb312;
    width: 50%;
  }
  100% {
    background-color: transparent;
    width: 100%;
  }
}

/* batterysettings */

.batteryProfile {
  display: none;
  flex-direction: row;
  width: 100%;
  align-items: left;
  margin-top: 10px;
}

.batteryProfileInterval {
  display: none;
  flex-direction: row;
  width: 100%;
  align-items: left;
  marigin-top: 10px;
}

select {
  background: rgb(36, 36, 36);
  color: #fff;
  border: 1px solid #ddb312;
  outline: none;
  height: 35px;
  width: 210px;

}

.batteryProfileInterval select {
  width: 100px;
  margin: 10px 10px 10px 0;
}

.snapshotInterval {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: left;
  margin-top: 10px;
}
