/* Shared auxiliary stylesheet for ZIP Extractor auxiliary pages */

/* Roboto font faces (local) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'),
       url('fonts/roboto-v20-all-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: local('Roboto Medium'), local('Roboto-Medium'),
       url('fonts/roboto-v20-all-500.woff2') format('woff2');
  font-display: swap;
}

html, body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  margin: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  line-height: 150%;
  font-weight: 400;
  background-color: #f9f9f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  justify-content: center;
}

/* Layout borrowed from app for visual continuity */
#mainScrollableContent {
  display: block;
  background-color: #fff;
  font-size: 16px;
  overflow-y: auto;
  height: calc(100% - 72px);
  overflow-x: hidden;
  padding: 12px;
  z-index: 1000;
}
@media (max-width: 639px) {
  #mainScrollableContent { height: calc(100% - 58px); }
}

.cardShadow {
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 6px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  margin-top: 4px;
  box-sizing: border-box;
}
@media (max-width: 479px) { .cardShadow { border: none; } }

.backToApp {
  margin-bottom: 16px;
  font-size: 16px;
}

p {
  font-size: 16px;
  margin: 0 0 16px;
  padding: 0;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0;
}
p.lastPara { margin-bottom: 0; }

li {
  font-size: 16px;
  line-height: 150%;
}

h1 {
  padding: 0;
  margin: 0 0 8px 0;
  cursor: default;
  font-size: 28px;
  color: #5f6368;
  line-height: normal;
  font-weight: 500;
}
@media (max-width: 639px) { h1 { font-size: 24px; } }

h2 {
  font-family: 'Roboto', sans-serif;
  padding: 0;
  margin: 0 0 8px 0;
  line-height: normal;
  font-weight: 400;
  color: #5f6368;
  font-size: 24px;
  padding-top: 2px;
}
@media (max-width: 639px) { h2 { font-size: 22px; } }

h3 {
  font-family: 'Roboto', sans-serif;
  padding: 0;
  margin: 12px 0 6px 0;
  line-height: normal;
  font-weight: 400;
  color: #5f6368;
  font-size: 20px;
}

#header {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  cursor: default;
  padding-bottom: 6px;
  background-color: #fff;
  padding-left: 14px;
  padding-right: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 6px rgba(0,0,0,0.1);
}
@media (max-width: 639px) {
  #header { height: 40px; min-height: 40px; max-height: 40px; padding-left: 10px; padding-right: 4px; }
}

#headerInfo {
  display: flex;
  margin-right: 8px;
  padding-top: 8px;
}
@media (max-width: 639px) { #headerInfo { padding-top: 5px; } }

#headerSubInfo {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 12px;
}

#headerIconImg { height: 40px; width: 40px; }
@media (max-width: 639px) { #headerIconImg { height: 36px; width: 36px; } }

#mainAppTitle {
  font-size: 26px;
  font-weight: 400;
  color: #5f6368;
  margin: 0;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 20px;
}
@media (max-width: 639px) { #mainAppTitle { font-size: 24px; } }

#mainAppSubTitle {
  padding: 0;
  margin: 0;
  cursor: default;
  font-size: 18px;
  font-weight: 400;
  color: #5f6368;
  line-height: normal;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 479px) { #mainAppSubTitle { display: none; } }
@media (max-width: 639px) { #mainAppSubTitle { font-size: 16px; } }

#centeredBodyContent { display: flex; height: 100% !important; width: 100%; }
#mainWrapper { height: 100% !important; min-width: 0; width: 100%; }
#appContent { height: 100% !important; display: flex; margin-top: 12px; margin-left: 16px; margin-right: 16px; justify-content: center; }
@media (max-width: 639px) { #appContent { margin-left: 0; margin-right: 0; margin-top: 6px; } }
#mainApp { flex: 1; min-width: 328px; height: 100% !important; }

/* Utility classes */
.mediumBold { font-weight: 500; }
.note { font-size: 14px; color: #5f6368; }
.hideOnMobileOrDisplayInline { display: inline; }
@media (max-width: 639px) { .hideOnMobileOrDisplayInline { display: none !important; } }
.hideOnMobileOrDisplayBlock { display: block; }
@media (max-width: 639px) { .hideOnMobileOrDisplayBlock { display: none !important; } }

/* Keyboard key presentation */
kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 90%;
  line-height: 1;
  color: #333;
  vertical-align: middle;
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  border-bottom: 2px solid #bbb;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Table of contents simple styling */
nav.toc { margin: 8px 0 16px 0; }
nav.toc ul { margin: 0; padding-left: 18px; }
nav.toc li { margin: 4px 0; }

/* Footer */
#footer {
  margin: 24px 16px;
  padding-top: 18px;
  border-top: 1px solid #ccc;
  color: #5f6368;
}
#about { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
#copyright { font-size: 14px; }
#applinks a { text-decoration: none; }
#applinks { font-size: 14px; }
