/* Copyright (c) 2016 ZipSocket, Inc.  */
/* All rights reserved.      */

/* Contains all the popups, including the following */
/* Warning Popup - shows warning messages */
/* Feedback Dialog - form for sending feedback comments */
/* Exit Dialog - overlay confirming leaving the meeting */

/*--- Start Warning Popup ---*/
#warningContainer {
   position: fixed;
   top: 20px;
   right: 0px;
   max-width: 550px;
   margin: 0px 30px;
   z-index: 13; /* control panel expander + 1 */
   text-align: center;
   white-space: nowrap;
   /*
   border-bottom-right-radius: 6px;
   border-bottom-left-radius: 6px;
   */
   border: 1px solid #CCC;
   background-color: rgba(255,255,255,.97);
   padding-top: 2px;
   padding-bottom: 5px;
   padding-left: 5px;
   padding-right: 5px;
   opacity: 0;
   visibility: hidden;
   overflow: hidden;
   box-shadow: 0px 0px 6px rgba(0,0,0,0.4);
   
   transition: top .5s ease-in-out,
               opacity 0.5s ease-in-out;
   
   /* flexbox */
   display: flex;
   flex-flow: row nowrap;
   justify-content: space-between;
   align-items: center;
}


.showWarningPopup {
   top: 48px !important; /* header bar height */
   opacity: 1 !important;     
}


#warningText {
   padding: 3px 10px;
   white-space: normal;
   text-align: center;
   font-weight: 300;
   
   flex-grow: 1;
}

#warningText h1, #warningText h2, #warningText h3 {
   margin-top: 10px;
   margin-bottom: 10px;
}

#warningText b {
   font-weight: 400;
}

#warningText p {
   margin: 4px 12px;
}

#warningText hr {
   width: 85%;
   border-top: 1px solid #DDD;
   margin-top: 4px;
   margin-bottom: 4px;
}

#warningText li {
   text-align: left;
}

#warningDismissButton {
   text-align: right;
   cursor: pointer;
   width: 20px;
   padding: 2px 4px 2px 4px;
   user-select: none;
   -moz-user-select: none;
   
   flex-grow: 0;
   flex-shrink: 0;
   align-self: flex-end;
}

html.useHover #warningDismissButton:hover {
   color: #3AACD6;
}
/*--- End Warning Popup ---*/



/*--- Start Feedback Popup ---*/
#feedbackPopup {
   position: fixed;
   left: 50%;
   top: 50%;
   width: 360px;
   height: 440px;
   min-width: 280px;
   min-height: 320px;
   max-width: 95%; /* backup for when calc is unavailable */
   max-width: calc(100% - 20px);
   max-height: 95%; /* backup for when calc is unavailable */
   max-height: calc(100% - 20px);
   
   padding: 30px;
   z-index: 17; /* above the thank you popup */
   transform: translate(-50%, -50%);
   transition: opacity 0.15s linear;
   background-color: rgb(250,250,250);
   box-sizing: border-box;
   border: 1px solid rgba(0,0,0,0.3);
   border-radius: 2px;

   box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
   resize: both;
   overflow: auto;

   /* flexbox */
   display: flex;
   flex-flow: column nowrap;
   justify-content: space-between;
   align-items: stretch;

   /* inherit */
   color: #555;
   font-size: 1.1em;
   font-weight: 300;
   font-family: sans-serif;
   text-align: center;
}

#feedbackDismissButton {
   position: absolute;
   top: 12px;
   right: 12px;
   width: 20px;
   cursor: pointer;
   user-select: none;
   -moz-user-select: none;
}

html.useHover #feedbackDismissButton:hover {
   color: #3AACD6;
}

.feedbackTitle {
   flex: 0 0 auto;
   font-size: 1.4em;
   font-weight: 300;
   margin: 0px;
}

#feedbackCommentsLabel {
   flex: 0 0 auto;
   text-align: left;
   margin-top: 20px;
   margin-bottom: 8px;
}

#feedbackCommentsTextArea {
   flex: 1 1 auto;
   font-size: 1em;
   font-weight: 300;
   outline: 0;
   border: 1px solid #CCC;
   transition: border 0.5s linear;
   box-sizing: border-box;  
   resize: none;
}

#feedbackCommentsTextArea:focus {
   border: 1px solid #3AACD6;
}

#feedbackEmailRow {
   display: flex;
   flex-flow: row nowrap;
   justify-content: space-between;   
   align-items: center;
   
   flex-grow: 0 0 auto;
   align-self: stretch;
   
   margin-top: 10px;
   margin-bottom: 30px;
}

#feedbackEmailRow label {
   flex: 0 0 auto;
   margin-right: 10px;
}

#feedbackEmailInput {
   flex: 1 1 auto;
   font-size: 1em;
   font-weight: 300;
   margin: 0px;
   outline: 0;
   width: 111px;
   border: 1px solid #CCC;
   transition: border 0.5s linear;
}

#feedbackEmailInput:focus {
   border: 1px solid #3AACD6;
}

#feedbackSubmitRow {
   flex: 0;
}

#feedbackSubmitButton {
   font-size: 0.9em;
   font-weight: 300;
/*   border-radius: 3px; */
   background-color: #FFF;
   border: 1px solid #888;
}

html.useHover #feedbackSubmitButton:hover {
   border: 1px solid #3AACD6;
}

#feedbackSubmitButton:active {
   color: #3AACD6;
}

#thankyouPopup {
   position: fixed;
   left: 50%;
   top: 50%;
   width: 360px;
   height: 250px;
   max-width: 95%;
   max-height: 95%;
   padding: 25px;
   z-index: 16; /* above the header, warning container, control panel, etc */
   transform: translate(-50%, -50%);
   transition: opacity 0.15s linear;
/*   border-radius: 6px;*/
   background-color: rgb(250,250,250);
   box-sizing: border-box;
   border: 1px solid rgba(0,0,0,0.3);
   box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
   resize: none;
   overflow: auto;

   /* flexbox */
   display: flex;
   flex-flow: column nowrap;
   justify-content: space-between;
   align-items: stretch;

   /* inherit */
   color: #555;
   font-size: 1.1em;
   font-weight: 300;
   font-family: sans-serif;
   text-align: center;
}

#thankyouPopup h2 {
   font-size: 1.3em;   
}

#thankyouOkText {
   margin: 20px 0px;
}

#thankyouOkRow {
   flex-grow: 0;
}

#thankyouOkButton {
   font-size: 0.9em;
   font-weight: 300;
/*   border-radius: 3px;*/
   background-color: #FFF;
   border: 1px solid #888;
}

html.useHover #thankyouOkButton:hover {
   border: 1px solid #3AACD6;
}

#thankyouOkButton:active {
   color: #3AACD6;
}

/*--- End Feedback Popup ---*/



/*--- Start Exit Meeting Overlay ---*/
#exitOverlay {
   position: fixed;
   background-color: rgba(0,0,0,0.5);
   width: 100%;
   height: 100%;
   top: 0;
   right: 0;
   bottom: 0;
   transition: opacity 0.15s linear;

   /* inherit */
   color: #DDD;
   text-align: center;
   font-weight: 300;
   
   z-index: 20; /* on top of everything */
}


#exitDialog {
   position: absolute;
   left: 0px;
   top: 50%;
   background-color: rgba(0,0,0,0.75);
   width: 100%;
   height: 200px;
   transform: translate(0px, -50px);
   

   /* flex */
   display: flex;
   flex-flow: column nowrap;
   justify-content: center;
   flex-grow: 0;
}

#exitProgress {
   position: absolute;
   background-color: #3AACD6;
   left: 0px;
   top: 0px;
   height: 5px;
   width: 0%;
   transition: width 5s linear; /* this animation controls the duration of the exit overlay */
}

.exitHeaderText {
   font-size: 1.9em;
   margin: 10px 20px;

   flex-grow: 0;
}

.exitButtonRow {
   flex-grow: 0;

   /* flex */
   display: flex;
   flex-flow: row nowrap;
   justify-content: center;
}

.exitConfirmationButton {
   padding: 5px 10px;
   border: 1px solid #888;
   font-size: 1.2em;
   margin: 10px 15px;
   border-radius: 8px;
   cursor: pointer;
   user-select: none;
   -moz-user-select: none; 
}

html.useHover .exitConfirmationButton:hover {
   border: 1px solid #3AACD6;
}

/*--- End Exit Meeting Overlay ---*/


.chromeDesktopBlockerHelpImage {
   width: 100%;
   max-width: 450px;
   vertical-align: middle;
   margin: 10px;
}

.chromeAndroidBlockerHelpImage {
   width: 100%;
   max-width: 250px;
   vertical-align: middle;
   margin: 10px;
   box-shadow: 0px 0px 6px rgba(0,0,0,0.2);   
}

.reopenTabHelpImage {
   width: 17px;
   height: 17px;
   margin: 0px 3px;
   padding: 0px;
}

.microphoneBlockImage {
   width: 16px;
   vertical-align: middle;
   margin: 0px 2px;
}

.firefoxScreenBlockImage {
   width: 20px;
   vertical-align: middle;
   margin: 0px 4px;
}

#zipsocketTab {
   font-size: 0.9em;
   margin: 3px;
}

@media (min-width: 767px) {
   #feedbackPopup {
      width: 460px;
   }
   
   #feedbackDismissButton {
      width: 16px;
   }
   
   #warningDismissButton {
      width: 14px;
   }
}

