@media only screen and (max-width: 480px) {
  body {
    padding: 0 !important;
  }
  
  .party-hat { display: none; }
  
  div.mobile {
    display: block !important;
  }
  
	.ad-plea,
  embed {
    display: none !important;
  }
  
  .small .thread,
  .extended-small .thread {
    width: 155px !important;
  }
  
  div.boardBanner > img {
    height: 50px !important;
    margin: 5px 0 !important;
    max-width: 100% !important;
    width: 150px !important;
  }
  
  .boardBanner {
    margin-top: 40px;
  }
  
  form[name="post"] {
    margin: auto;
    max-width: 100%;
  }
  
  #threadWatcher {
    max-width: none;
    padding: 3px 0;
    top: 30px;
    left: 0;
    width: 100%;
    border-left: none;
    border-right: none;
  }
  
  #twClose {
    position: relative;
    top: 0;
    margin-top: -1px;
    float: left;
    right: 0;
  }
  
  #watchList {
    padding: 0 10px;
  }
  
  #postForm {
    width: auto;
  }
  
  #postForm .mobile {
    display: table-row !important;
  }
  
  #postForm textarea,
  #postForm input[type="text"] {
    margin-right: 0;
    width: 220px;
  }
  
  #postForm input[name="sub"] {
    width: 160px;
  }
  
  #postForm input[type="password"] {
    margin-right: 0;
    width: 70px;
  }
  
  #postForm input[type="submit"] {
    margin: 0;
    padding: 2px 4px 3px;
    width: 60px;
  }
  
  .rules {
    display: none;
  }
  
  .recaptcha_image_cell {
    width: auto !important;
    padding: 0 !important;
  }

  #captchaFormPart > td > div {
    margin-left: 8px;
  }

  #recaptcha_table tr > td:last-child {
    display: none;
  }

  #recaptcha_table tr[height="73"] {
    height: auto !important;
  }

  #recaptcha_table tr > td {
    padding: 0 !important;
  }

  #recaptcha_image {
    width: 280px !important;
  }

  #recaptcha_response_field {
    width: 272px !important;
    margin: -1px 2px 0 3px !important;
    font-size: 10pt !important;
  }

  #recaptcha_image > img {
    width: 280px !important;
  }

  table#recaptcha_table > tbody > tr:first-child > td:nth-child(2) {
    display: none;
  }
  
  table#recaptcha_table > tbody > tr:first-child > td:nth-child(2),
  #recaptcha_table tr > td:last-child {
    display: none;
  }
  
  #toggleMsgBtn .mobile,
  #boardNavMobile {
    display: block !important;
  }
  
  div#boardNavMobile,
  div#boardNavMobile select,
  div#boardNavMobile option {
    font-size: x-small;
  }

  .absbot .mobile,
  .desktop {
    display: none !important;
  }
  
  #boardNavMobile {
    font: 10px arial,helvetica,sans-serif;
    overflow: hidden;
    padding: 2px 4px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
  }
  
  .burichan_new #boardNavMobile,
  .yotsuba_b_new #boardNavMobile {
    background-color: #D6DAF0;
    border-bottom: 2px solid #B7C5D9;
  }
  
  .futaba_new #boardNavMobile,
  .yotsuba_new #boardNavMobile {
    background-color: #F0E0D6;
    border-bottom: 2px solid #D9BFB7;
  }
  
  .tomorrow #boardNavMobile {
    background-color: #1D1F21;
    border-bottom: 2px solid #282a2e;
  }
  
  .photon #boardNavMobile {
    background-color: #ddd;
    border-bottom: 2px solid #ccc;
  }
  
  .boardSelect {
    float: left;
  }
  
  .boardSelect strong {
    padding-right: 5px;
  }
  
  .pageJump {
    float: right;
    font-size: 7.5pt;
    padding-right: 5px;
    padding-top: 3px;
  }
  
  .boardnav .pageJump a {
    padding: 0 5px 0 0;
    text-decoration: none;
  }
  
  #filters {
    width: 310px !important;
    margin-left: -160px !important;
  }
  
  #filters-search { display: none; }
  
  .filter-boards {
    width: 30px !important;
  }
  
  .filter-pattern {
    width: 90px !important;
  }
  
  #theme {
    width: 310px !important;
    margin-left: -160px !important;
  }
  
  #theme-css {
    width: 300px !important;
    min-width: 300px !important;
  }
  
  #globalToggle {
    background-color: #FFADAD;
    background-image: url('/image/buttonfade-red.png');
    border: 1px solid #C45858;
    border-radius: 3px 3px 3px 3px;
    color: #880000;
    font-weight: bold;
    padding: 6px 10px 5px;
    text-align: center;
    font-size: 10pt;
    margin: 0 auto 10px;
    width: 200px;
    display: block !important;
    text-decoration: none;
  }
  
  #absbot,
  #styleSwitcher {
    display: none;
  }
  
  #bottomnav {
    padding-bottom: 40px;
  }
  
  #toggleMsgBtn {
    display: none !important;
  }
  
  #togglePostForm {
    margin: 11px 0;
    font-size: inherit;
    display: block;
  }
  
  #ctrl {
    text-align: center;
  }
  
  #info {
    float: none !important;
    line-height: 30px;
  }
  
  #settings {
    line-height: 40px;
    text-align: center !important;
  }
  
  #ctrl hr.mobile {
    display: block !important;
    margin-top: 10px;
  }
  
  .ctrl-wrap {
    white-space: nowrap;
  }
  
  .navLinks {
    display: block;
    margin-top: 25px;
    text-align: center;
  }
  
  .navLinksBottom {
    margin-bottom: 25px;
  }
  
  .bottomad {
    margin-bottom: 10px;
  }
  
  .hideMobile {
    display: none;
  }
  
  #info .navLinks {
    margin-top: 10px;
  }
  
  #search-label-bottom { display: none !important; }
  
  input[type="text"], input[type="password"], textarea {
    font-size: 16px !important;
  }

  img.topad, .topad > div, .topad a img {
    width: 300px !important;
    height: 250px !important;
  }

  img.middlead, .middlead > div, .middlead a img {
    width: 234px !important;
    height: 30px !important;
    max-width: 100%;
    overflow: hidden;
    margin: auto;
  }

  img.bottomad, .bottomad > div, .bottomad a img {
    width: 320px !important;
    height: 40px !important;
    max-width: 100%;
    overflow: hidden;
    margin: auto;
  }
  
  .mobilebtn .btn-wrap {
    border-radius: 3px 3px 3px 3px;
    font-weight: bold;
    padding: 6px 10px 5px;
    background-repeat: repeat-x;
    cursor: pointer;
  }
  
  .mobilebtn .btn-wrap .button {
    text-decoration: none;
    color: inherit;
  }
  
  .mobilebtn .btn-wrap:before,
  .mobilebtn .btn-wrap:after {
    content: '';
  }
  
  .yotsuba_b_new .mobilebtn .btn-wrap,
  .burichan_new .mobilebtn .btn-wrap {
    background-color: #D6DAF0;
    background-image: url("/image/buttonfade-blue.png");
    border: 1px solid #B7C5D9;
    color: #34345C;
  }
  
  .yotsuba_new .mobilebtn .btn-wrap,
  .futaba_new .mobilebtn .btn-wrap {
    background-color: #F0E0D6;
    background-image: url("/image/buttonfade.png");
    border: 1px solid #C0A69D;
    color: #880000;
  }
  
  .burichan_new .boardSelect strong,
  .yotsuba_b_new .boardSelect strong {
    color: #000;
  }
  
  .tomorrow .mobilebtn .btn-wrap {
    background-color: rgb(27,28,30);
    background-image: url("/image/buttonfade-dark.png");
    background-repeat: repeat-x;
    border: 1px solid #282A2E;
    color: #707070;
  }

  .photon .mobilebtn .btn-wrap {
    background: rgb(238,238,238);
    background: -moz-linear-gradient(top, rgba(238,238,238,1) 0%, rgba(224,224,224,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(238,238,238,1)), color-stop(100%,rgba(224,224,224,1)));
    background: -webkit-linear-gradient(top, rgba(238,238,238,1) 0%,rgba(224,224,224,1) 100%);
    background: -o-linear-gradient(top, rgba(238,238,238,1) 0%,rgba(224,224,224,1) 100%);
    background: -ms-linear-gradient(top, rgba(238,238,238,1) 0%,rgba(224,224,224,1) 100%);
    background: linear-gradient(to bottom, rgba(238,238,238,1) 0%,rgba(224,224,224,1) 100%);
    border: 1px solid #CCCCCC;
    color: #333;
  }
}
