body {
  padding: 0;
  margin: 0;
  font: 14px 'Lucida Grande', Helvetica, Arial, sans-serif;
}
a {
  color: #00b7ff;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.login {
  padding: 5em;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-left: 0;
  border-right: 0;
  margin-top: 5em;
  font-size: 17px;
}
.login * {
  font-size: 17px;
  color: #666;
}
.login label {
  width: 5em;
  text-align: right;
  display: inline-block;
  font-weight: bold;
  color: #333;
}
.login p {
  text-align: center;
}
.login p > input {
  width: 12em;
  border: 0;
  border-bottom: 1px dashed #aaa;
  margin-left: 10px;
  padding: 0.3em;
}
.login .loginBtn {
  text-align: center;
}
.login .loginBtn input {
  margin-right: 2.5em;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 0.3em 1em;
}
#siteList {
  background: rgba(200, 200, 200, 0.8);
  opacity: 0.9;
  position: fixed;
  width: 100%;
  top: 0;
  text-align: center;
  z-index: 1000;
}
#siteCount {
  overflow-y: hidden;
  width: 100%;
  display: block;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
#siteCount a {
  display: inline-block;
  background: #666;
  line-height: 1.2em;
  padding: 0.2em 0.5em;
  margin: 0.7em 0.2em 0 0.2em;
  color: #fff;
  border: 1px solid #ddd;
}
#siteCount a.active {
  color: #fff;
  background: #fd6666;
  border-color: #fc0107;
}
#itemSubject {
  margin: 0.3em;
  font-weight: bold;
  font-size: 1.2em;
  text-shadow: 1px 1px #fff, -1px 1px #fff, 1px -1px #fff, -1px -1px #fff, 1px 1px 5px #000;
}
#itemBox {
  position: relative;
  margin-top: 5em;
}
#itemBox .item {
  padding: 0;
  width: 90%;
  border-top: 0;
  margin: 0 auto;
  border: 1px solid #ccc;
  margin-bottom: 10em;
}
#itemBox .item .title {
  background: #eee;
  padding: 0.3em 2em;
  border-bottom: 1px solid #ccc;
}
#itemBox .item .title p {
  margin: 0.5em 0 0.1em 0;
}
#itemBox .item .title p:nth-child(2) {
  margin: 0 0 0.5em 0;
  font-size: 0.9em;
}
#itemBox .item .title a,
#itemBox .item .title button {
  border: 1px solid #e9eba2;
  background: #fff;
  font-size: 14px;
  margin: 0 0 0 1em;
  color: #fd8008;
  padding: 0.3em 1em;
  cursor: pointer;
  display: inline-block;
}
#itemBox .item .title .subject {
  font-size: 1.2em;
}
#itemBox .item .title .site {
  color: #999;
}
#itemBox .item .title .site:before {
  content: '[';
}
#itemBox .item .title .site:after {
  content: '] ';
}
#itemBox .item .title .date {
  color: #999;
}
#itemBox .item .content {
  padding: 1em 2em;
  word-wrap: break-word;
}
#itemBox .item .content p {
  font-size: 16px;
}
#itemBox .item .content p.remove {
  border: 1px dotted red;
  opacity: 0.6;
  background: #eee;
}
#itemBox .item .content p.remove:after {
  content: '삭제하쉴?';
  display: block;
  font-size: 3em;
  color: red;
}
#itemBox .item .content img,
#itemBox .item .content video {
  max-width: 100%;
}
#itemBox .item .content img + .size,
#itemBox .item .content video + .size {
  font-size: 12px;
  color: #999;
  margin-left: -10em;
  position: relative;
  top: 1em;
  display: inline-block;
  width: 10em;
  text-align: right;
}
#itemBox .item .content img + .size:after,
#itemBox .item .content video + .size:after {
  content: 'mb';
}
#itemBox .item .content button.size {
  margin-left: 0.5em;
}
#itemBox .item .content button.crop {
  margin-left: 0.5em;
  background: #4CAF50;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}
#itemBox .item .content button.crop:hover {
  background: #45a049;
}
#itemBox .item .content button.restore {
  margin-left: 0.5em;
  background: #ff9800;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}
#itemBox .item .content button.restore:hover {
  background: #e68900;
}
#itemBox .item .control {
  width: 100%;
  background: #f9f6d4;
  text-align: center;
}
#itemBox .item .control a {
  height: 50px;
  border: 1px solid #fdd18b;
  width: 20%;
  margin: 1em 1.5%;
  font-size: 1em;
  background: #fff;
  display: inline-block;
  line-height: 50px;
  cursor: pointer;
}
#itemBox .item .control a:active {
  background: red;
}
#itemBox .item .control .size {
  padding-bottom: 10px;
  color: #666;
}
#itemBox .item .control .size::before {
  content: '총 크기 : ';
}
#itemBox .item.end .content {
  height: 900px;
  font-size: 10em;
  text-align: center;
}
#moveButton {
  position: fixed;
  right: 0;
  bottom: 30%;
}
#moveButton a {
  display: block;
  font-size: 4em;
  opacity: 0.6;
  cursor: pointer;
}
#moveButton a:active {
  opacity: 0.9;
}
#testSite a.site,
#noFileList a.site {
  display: inline-block;
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 0.2em 0.5em;
  margin: 0 0.5em;
}
#testSite a.site.atozyes,
#noFileList a.site.atozyes {
  background: #f7ee99;
}
#testSite .group,
#noFileList .group {
  background: #f7f7f7;
  border: 1px dotted #ddd;
  padding: 0.5em 0;
  margin: 0.5em 0;
}
#testSite .save,
#noFileList .save {
  display: block;
  text-align: center;
  margin: 0 auto;
  width: 27em;
  border: 1px solid #ddd;
  margin-top: 2em;
  padding: 1em;
  background: #aaa;
  color: #fff;
}
#testSite > div,
#noFileList > div {
  margin: 0 auto;
  display: block;
  width: 29em;
  border-bottom: 1px solid #ddd;
  text-align: center;
}
#testSite > div .option,
#noFileList > div .option {
  margin: 0.5em;
}
#testSite > div .option label,
#noFileList > div .option label {
  width: 10em;
  text-align: right;
  display: inline-block;
}
#testSite > div .option input,
#noFileList > div .option input {
  width: 15em;
  margin-left: 1em;
  padding: 0.5em;
  font-size: 1em;
}
#testSite > div .option p,
#noFileList > div .option p {
  font-size: 0.8em;
  color: #aaa;
  text-align: right;
}
#testSite > div a.button,
#noFileList > div a.button {
  padding: 1em;
  font-size: 1em;
  margin: 1em;
  display: inline-block;
  color: #999;
  border: 1px dotted #ddd;
  background: #f7f7f7;
}
#testSite > div .noFile,
#noFileList > div .noFile {
  display: inline-block;
  border: 1px dashed #ccc;
  padding: 0.5em;
  margin: 0.4em;
}
#testSite > div .noFile button,
#noFileList > div .noFile button {
  margin: 0 0.2em;
}
#listResult,
#contentResult,
#noFileList,
#listHtmlResult {
  display: block;
  width: 27em;
  margin: 0 auto;
  padding: 1em;
  font-size: 1em;
  margin-top: 1em;
}
#noFileList {
  width: 29em;
}
@media screen and (max-width: 600px) {
  #itemBox .item {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }
  #itemBox .item .title {
    padding: 0.3em 1em;
  }
  #itemBox .item .content {
    padding: 1em;
  }
}
.trend {
  padding: 15em 0 15em 0;
  border-bottom: 5px dotted #ea01ff;
}
.trend:nth-child(1) {
  padding-top: 0;
}
.trend .item[trend='trend'] .content {
  max-height: 300px;
  overflow-y: scroll;
}
.trend .item[trend='trend']:first-child .content {
  overflow: auto;
  max-height: none;
}
.trend .item[trend='trend']:first-child .open {
  display: none !important;
}
.crop-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.crop-modal {
  background: white;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.crop-modal-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crop-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}
.crop-modal-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-modal-header .close-btn:hover {
  background: #f0f0f0;
  border-radius: 4px;
}
.crop-modal-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}
.crop-modal-content .loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}
.crop-modal-content .crop-container {
  position: relative;
  display: inline-block;
}
.crop-modal-content .crop-container img {
  display: block;
  max-width: 100%;
  height: auto;
}
.crop-modal-content .crop-container canvas {
  position: absolute;
  top: 0;
  left: 0;
}
.crop-modal-footer {
  padding: 1rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.crop-modal-footer button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.crop-modal-footer button.crop-confirm-btn {
  background: #4CAF50;
  color: white;
}
.crop-modal-footer button.crop-confirm-btn:hover:not(:disabled) {
  background: #45a049;
}
.crop-modal-footer button.crop-confirm-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.crop-modal-footer button.crop-cancel-btn {
  background: #f0f0f0;
  color: #333;
}
.crop-modal-footer button.crop-cancel-btn:hover {
  background: #e0e0e0;
}
