/* +++++ Reseting +++++ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ----- Reseting ----- */



/* +++++ Main +++++ */

body {
  background: #ecf0f3;
}

.url_color_white {
  color: #fff;
}

.url_color_black {
  color: #000;
}

.wrapper {
  max-width: 90%;
  margin: 30px auto;
  padding: 10px 10px 10px 10px;
  background-color: #ecf0f3;
  box-shadow: 13px 13px 20px #cbced1, -13px -13px 20px #fff;
}

@media screen and (max-width: 800px) {
  .wrapper {
    width: 100%;
  }
}

hr {
  border-top: 1px solid black;
}

/* ----- Main ----- */



/* +++++ Flags +++++ */

span.log-in {
  /* font-weight: bolder; */
  color: #0000cc;
}

span.log-out {
  color: #880000;
}

span.img-open {
  color: #bb0000;
}

span.img-sent {
  color: #008800;
}

/* ----- Flags ----- */


/* +++++ Form +++++ */

.wrapper .form-field {
  margin: 0px 0px 20px 0px;
}

.error_text {
  float: right;
  color: #c62828;
}

/* ----- Form ----- */



/* +++++ Chat +++++ */


#menu {
  /* display: flex; */
  margin-bottom: 10px;
  padding-bottom: 10px;
}


.header-red,
.header-orange {
  width: 100%;
  margin: 5px 0px 10px 0px;
  padding: 5px 0px 5px 0px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.1em;
}

.header-red {
  background-color: red;
  color: white;  
}

.header-orange {
  background-color: orange;
  color: black;  
}

@keyframes blink {
    0%, 79% { /* Visible for the first half of the animation */
        opacity: 1;
    }
    80%, 100% { /* Invisible for the second half */
        opacity: 0;
    }
}

.blink-text {
    animation: blink 2s infinite; /* Name, duration, and iteration count */
    display: inline-block; /* Essential for proper animation behavior on inline elements */
}







    .scrolling-container {
      width: 100%; /* Or a fixed width */
      overflow: hidden;
      white-space: nowrap; /* Prevents text from wrapping */

      margin: 5px 0px 10px 0px;
      padding: 5px 0px 5px 0px;
      background-color: orange;
    }

    .scrolling-text {
      display: inline-block;
      animation: scrollText 15s linear infinite; /* Adjust duration for speed */

      color: black;
      font-weight: 900;
      text-align: center;
      text-transform: uppercase;
      font-size: 1.1em;
    }

    @keyframes scrollText {
      0% { transform: translateX(100%); }
      100% { transform: translateX(-100%); } /* Moves the duplicated text into view */
    }





#online {
  display: none;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

#online .user_g,
#online .user_m {
  float: left;
  width: 45%;
  text-align: center;
  font-size: 0.8em;
}


#chatbox,
#msgbox,
#logbox,
#storybox {
  clear: both;
  margin: 10px 0px 3px 0px;
  padding: 10px;
  height: 460px;
  border: thin solid #cad0d1;
  border-bottom: 4px solid #a7a7a7;
  border-radius: 4px;
  background: #f2f6f9;
  overflow: auto;
  font-size: 16px;
}

#msgbox,
#logbox,
#storybox {
  height: 100%;  
}

#storybox {
  font-size: 1.2em;
}


.msgwrap {
/*  clear: both; */
  padding: 5px;
}

.msgln_1,
.msgln_2 {
  float: left;
  width: 80%;

  margin: 3px;
  padding: 5px 10px;
  background: #e8f7fb;
  border-radius: 8px;
  box-shadow: inset 1px 1px 1px #cbced1, inset -1px -1px 1px #fff;
}

.msgln_2 {
  float: right;
  background:   #f8f1fd;
}

div.chat-time {
  font-size: 0.7em;
  text-align: right;
  font-weight: bolder;
  /* color: #888888; */
}

.wrapper #usermsg {
  clear: both;
  width: 100%;
  display: block;
  color: #666;
  padding: 3px 5px 3px 3px;
  margin: 10px 0px 5px 0px;
}

.wrapper #submitmsg {
  width: 100%;
  padding: 10px 0px;
}

.msgln b.user-name, .msgln b.user-pass {
  font-weight: bold;
  color: red;
  font-size: 90%;
}



#canvas {
  margin-top: 10px;
}

.logout,
.erase,
.camera,
.send,
.back {
  float: left;
  width: 45%;
  background: #bb0000;
  margin-bottom: 10px;
  padding: 5px 0px;
  text-align: center;
}

.camera {
  background: #0380dd;
}

.back {
  background: #009f1e;
}

.erase,
.camera,
.back {
  float: right;
}

.logout #exit,
.erase #erasemsg,
.camera #start-camera,
.send #send-photo,
.back #back-message {
  text-decoration: none;
  font-weight: bolder;
  color: white;
  display: inline-block;
  width: 100%;
}

.send {
  float: right;
  font-size: 1.3em;
  margin-top: -160px;
  border-radius: 14px;
  background: #0380dd;
}

.send #send-photo {
  padding: 30px 0px;
}


#tools {
  overflow: auto;
}


.photo {

}

.upload {

}

.video {
  width: 100%;
}

#local-video {
  width: 100%;
}

.msghdr {
  clear: both;
  width: 100%;  
  margin-bottom: 10px;
  padding-top: 20px;
  text-align: center;
  border-bottom: solid thin #aaa;
}

.msgtxt {
  position: relative;
}

.msg_lock  {
  padding-top: 20px;
  font-size: 1.4em; 
  color: #bb0000;
  font-weight: bolder;
}

.msg_icon  {
  padding-top: 10px;
  font-size: 1.2em; 
  font-weight: bolder;
}

.link-in-text {
  color: #bb0000;
  font-weight: bolder;
}

.msgtxt-red {
  padding: 5px 5px 5px 10px;
  background: #bb0000;
  color: white;
  font-weight: bolder;
}

.msgtxt-green {
  padding: 5px 5px 5px 10px;
  background: #aaffaa;
  color: black;
  font-weight: bolder;
}

.watermark {
  position: absolute;
  bottom: 2px;
  left: 16px;
  font-size: 1.5em;
  font-weight: bolder;
  color: white;
/*
  -webkit-text-stroke: 1px black;
*/
  text-shadow:
     2px  2px 0 #000,
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;

}

.close_img {
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 99;
}

.close_img a {
  color: white;
}

#submitmsg {
  padding: 10px 0px;
  color: white;
  background-color: #0073c8;
}

#submitmsg:hover {
  background-color: #00528f;
}




/* +++++ Photo +++++ */

button {
  width: 120px;
  padding: 10px;
  display: block;
  margin: 20px auto;
  border: 2px solid #111111;
  cursor: pointer;
  background-color: white;
}

#video {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px auto 0 auto;
  border: thin solid #ccc;
}

#canvas {
  display: block;
  width: 40%;
  height: auto;
}

.msg_photo {
  width: 100%;
  border: 3px solid #000;
}



* +++++ Shift +++++ */

  shift {
    float: right;
    width: 50px;
    margin-left: 80px;
  }


#main_shift {
  margin-top: 50px;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: red;
  /*
  padding-top: .2rem;
  padding-bottom: .2rem;
  */
}

.navbar a {
  color: white;  
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

table {
  width: 90%;
  border-collapse: separate;
  margin-left: auto;
  margin-right: auto;
}

table, th, td {
  border: 1px solid #000;
}

th {
  text-align: center;
  font-size: 1.2em;
  background-color: #030fa5;
  color: white;
}

td {
  text-align: center;
}

.month {
  text-align: center;
  color: white;
}

.td_day {
  font-size: 1.1em;
  font-weight: 600;
}

.td_shift {
  font-size: 1.2em;
  text-transform: capitalize;
  font-weight: 900;
}

.td_odmor,
.td_O {
  background-color: #f1fdd9;
}

.td_prva,
.td_I {
  background-color: #e5eaff;
}

.td_druga,
.td_II {
  background-color: #fffac7;
}

.td_treća,
.td_III {
  background-color: #ffcdc8;
}

/* ----- Shift ----- */


/* ++++++ Job ++++++ */

.ads {
  padding: 10px;
  margin: 10px;
  border: solid 2px #A02334;
  border-top: solid 12px #A02334;
}

/* ------ Job ------ */


/* ++++ Gallery ++++ */

.selector {
    text-align: center;
    margin-bottom: 20px;
}

.selector button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 5px;
    cursor: pointer;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.item {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.item video {
    width: 150px;
    border-radius: 10px;
}

.gallery-section {
    display: none; /* Sekcije su skrivene po default-u */
}

#photos {
    display: block; /* Po defaultu prikazujemo slike */
}

button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
}


/* ---- Gallery ---- */


/*++++++ Story ++++++*/

#story_item {
    margin: 70px 20px 20px 20px;
    font-size: 1.3em;
}

.story_link {
  /* background-color: #009f1e; */
  padding: 2px 5px 2px 5px;
}


.story_link a {
  font-weight: 900;
  text-decoration: none;
}

/*------ Story ------*/


/*
button {
    width: 120px;
    padding: 10px;
    display: block;
    margin: 20px auto;
    border: 2px solid #111111;
    cursor: pointer;
    background-color: white;
}

#start-camera {
    margin-top: 50px;
}

#video {
    display: block;
    width: 100%;
    margin: 10px auto 0 auto;
    border: thin solid #ccc;
}

#click-photo {
    display: block;
}

#dataurl-container {
    display: block;
}

#canvas {
    display: block;
    width: 100%
    margin: 0 auto 20px auto;
}

#dataurl-header {
    text-align: center;
    font-size: 15px;
}

#dataurl {
    display: block;
    height: 100px;
    width: 320px;
    margin: 10px auto;
    resize: none;
    outline: none;
    border: 1px solid #111111;
    padding: 5px;
    font-size: 13px;
    box-sizing: border-box;
}
*/


/* ----- Photo ----- */



/* ----- Chat ----- */


/*
.wrapper .form-field input {
  width: 100%;
  display: block;
  outline: none;
  background: white;
  font-size: 1.2rem;
  color: #666;
  padding: 3px 5px 3px 15px;
}




#usermsg {
  width: 100%;
  height: 30px;
  margin-top: 10px;
  box-shadow: inset 4px 4px 4px #cbced1, inset -4px -4px 4px #fff;
  color: #666;
}


.msgexit {
  clear: both;
  margin: 10px 0px;
  text-align: center;
  color: #888888;
  
}

.exit-time {
  font-size: 0.6em;
}

.msghdr {
  clear: both;
  width: 400px;  
  margin-bottom: 10px;
  padding-top: 20px;
  text-align: center;
  border-bottom: solid thin #aaa;
}


.msgln .user_name {
  float: left;
  width: 30px;
  font-weight: bold;  
}

.msgln .msgtxt {
  width: auto;
}



#submitmsg {
  width: 100%;
}



.wrapper .name {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 1.3px;
  padding-left: 10px;
  color: #555;
}


.wrapper .form-field {
  padding-left: 10px;
  margin-bottom: 5px;
  border-radius: 20px;
  box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px 8px #fff;
}

.wrapper .form-field .fas {
  color: #555;
}

.wrapper .btn {
  box-shadow: none;
  width: 100%;
  height: 40px;
  background-color: #03A9F4;
  color: #fff;
  border-radius: 25px;
  box-shadow: 3px 3px 3px #b1b1b1,
      -3px -3px 3px #fff;
  letter-spacing: 1.3px;
}

.wrapper .btn:hover {
  background-color: #039BE5;
}

.wrapper a {
  text-decoration: none;
  font-size: 0.8rem;
  color: #03A9F4;
}

.wrapper a:hover {
  color: #039BE5;
}

@media(max-width: 380px) {
  .wrapper {
    margin: 30px 20px;
    padding: 40px 15px 15px 15px;
  }
}


/*

* {
  margin: 0;
  padding: 0;
}

body {
  margin: 20px auto;
  font-family: "Lato";
  font-weight: 300;
}

form {
  padding: 15px 25px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

form label {
  font-size: 1.5rem;
  font-weight: bold;
}

input {
  font-family: "Lato";
}

a {
  color: #0000ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#wrapper,
#loginform {
  margin: 0 auto;
  padding-bottom: 25px;
  background: #eee;
  width: 600px;
  max-width: 100%;
  border: 2px solid #212121;
  border-radius: 4px;
}

#loginform {
  padding-top: 18px;
  text-align: center;
}

#loginform p {
  padding: 15px 25px;
  font-size: 1.4rem;
  font-weight: bold;
}

#chatbox {
  text-align: left;
  margin: 0 auto;
  margin-bottom: 25px;
  padding: 10px;
  background: #fff;
  height: 300px;
  width: 530px;
  border: 1px solid #a7a7a7;
  overflow: auto;
  border-radius: 4px;
  border-bottom: 4px solid #a7a7a7;
}

#usermsg {
  flex: 1;
  border-radius: 4px;
  border: 1px solid #ff9800;
}

#name {
  border-radius: 4px;
  border: 1px solid #ff9800;
  padding: 2px 8px;
}

#submitmsg,
#enter{
  background: #ff9800;
  border: 2px solid #e65100;
  color: white;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 4px;
}

.error {
  color: #ff0000;
}

#menu {
  padding: 15px 25px;
  display: flex;
}

#menu p.welcome {
  flex: 1;
}

a#exit {
  color: white;
  background: #c62828;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.msgln {
  margin: 0 0 5px 0;
}

.msgln span.left-info {
  color: orangered;
}

.msgln span.chat-time {
  color: #666;
  font-size: 60%;
  vertical-align: super;
}

.msgln b.user-name, .msgln b.user-name-left {
  font-weight: bold;
  background: #546e7a;
  color: white;
  padding: 2px 4px;
  font-size: 90%;
  border-radius: 4px;
  margin: 0 5px 0 0;
}

.msgln b.user-name-left {
  background: orangered;
}
