html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
	font-family: "Noto Sans TC", sans-serif;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

:root {
  --header-height: 75px;
}

.header {
  position: relative;
  z-index: 99;
  background-color: #E56A7F;
}

.header .container {
  max-width: 1300px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.udn-logo {
  display: block;
  width: 56px;
  aspect-ratio: 56 / 50;
}

.udn-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upbrain {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.upbrain-logo {
  display: block;
  width: 62px;
  aspect-ratio: 62 / 63;
}

.upbrain-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upbrain-text {
  font-size: 33px;
  font-weight: 500;
  white-space: nowrap;
}

.upbrain-text a {
  color: #FFF;
  text-decoration: none;
}

.main {
  height: calc(100dvh - var(--header-height));
  background-color: #FFEEF3;
}

.main .container {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
}

.social-aside {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(calc(-100% - 20px), -50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-aside::before {
  content: "快把這個工具分享給朋友吧~";
  position: absolute;
  top: -20px;
  right: 0;
  transform: translate(0, -100%);
  width: 120px;
  background-color: #FFF;
  padding: 10px 20px;
  border-radius: 10px;
  color: #E56A7F;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.social-aside::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 30px;
  transform: translate(0, -100%);
  width: 0;
  height: 0;
  border-bottom: 10px solid transparent;
  border-right: 20px solid #FFF;
  filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.3));
}

.social-aside a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #999;
  text-decoration: none;
  box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

.social-aside a:active {
  box-shadow: inset 5px 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.line-button:hover {
  color: #00C300;
}

.facebook-button:hover {
  color: #1877F2;
}

.threads-button:hover {
  color: #000;
}

#ccbot_anchor {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media screen and (max-width: 1519px) {
  .main .container {
    max-width: 970px;
  }
}

@media screen and (max-width: 1339px) {
  .main .container {
    max-width: 767px;
  }
}

@media screen and (max-width: 1135px) {
  :root {
    --header-height: 50px;
  }

  .header .container {
    justify-content: center;
    gap: 8px;
  }

  .udn-logo {
    width: 32px;
  }

  .upbrain {
    gap: 6px;
  }

  .upbrain-logo {
    width: 36px;
  }

  .upbrain-text {
    font-size: 18px;
  }
  
  .main .container {
    max-width: 767px;
  }

  .social-aside {
    position: fixed;
    top: 50px;
    left: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    width: 100%;
    background-color: #FFF;
  }

  .social-aside::before {
    display: none;
  }

  .social-aside::after {
    display: none;
  }

  .social-aside a {
    box-shadow: none;
  }

  .social-aside a:active {
    box-shadow: none;
  }

  #ccbot_anchor {
    position: absolute;
    bottom: 0;
    height: calc(100% - var(--header-height));
  }
}

@media screen and (max-width: 767px) {
  .main .container {
    max-width: 100%;
  }
}