/* =============================================================================
   dafyomiPage.css - DafYomi_Page.aspx (also loaded by MediaPage.aspx)
   Sections:
     1.  Element / global overrides
     2.  Header & layout
     3.  Container & panel components
     4.  Navigation
     5.  Round-box container chrome (shared)
     6.  Form & layout panels (legacy)
     7.  Buttons & inputs
     8.  Body text & content
     9.  Utility helpers
    10.  Search on this page
    11.  Highlighting
    12.  Link overrides
    13.  Font controls & action buttons
    14.  Animation
   ============================================================================= */


/* =============================================================================
   1. Element / global overrides
   ============================================================================= */

/* Extends master-old.css h1: adds display:inline and page-specific padding */
h1 {
    display: inline;
    padding: 0 10px;
}

h1 img {
    vertical-align: middle;
    margin-top: 3px;
}

input, select, textarea, button {
    font: 13px Arial;
    padding: 3px;
    border-radius: 5px;
    vertical-align: middle;
}

iframe {
    border: 0;
}

/* =============================================================================
   3. Container & panel components
   ============================================================================= */

div.clsContainerPix {
    background-image: url("images/container_left-top_pix.gif");
    background-repeat: repeat-x;
}

/* Parallel to .clsContainer h1 from master-old.css; h2 heading variant */
.clsContainer > h2 {
    padding: 7px 30px 0 0;
    margin: 0;
    font-size: 18px;
    padding-left: 10px;
    height: 33px;
    color: #781F23;
    background: url(../images/container_right-top.gif) no-repeat right top;
}

/* Overrides global hr reset from master-old.css inside .clsContainer */
.clsContainer hr {
    border: solid 1px #E5DFBB;
    height: unset;
    background: unset;
    background-color: unset;
    font-size: unset;
}


/* =============================================================================
   4. Navigation
   ============================================================================= */

div.nav {
    width: 800px;
    margin-right: 5px;
    position: relative;
}

    div.nav div {
        height: 40px;
        float: right;
    }

    div.nav .first {
        width: 21px;
        background: url(../images/container_right-top.gif);
    }

    div.nav .second {
        width: 758px;
        background: url(../images/container_left-top_pix.gif) repeat-x;
    }

    div.nav .third {
        width: 21px;
        background: url(../images/container_left-top.gif);
    }

.navWrapper {
    position: absolute;
    top: 10px;
}

    .navWrapper a.prev,
    .navWrapper2 a.prev {
        background: url(../images/arrow_right.gif) left no-repeat;
        display: inline-block;
        margin-right: 10px;
        padding-left: 20px;
    }

    .navWrapper a.next,
    .navWrapper2 a.next {
        background: url(../images/arrow_left.gif) right no-repeat;
        display: inline-block;
        padding-right: 20px;
    }

a.noDec {
    text-decoration: none;
    font-weight: bold;
    color: #700308;
    font-size: 12px;
}

    a.noDec span {
        text-decoration: underline;
    }

.toolBar {
    display: flex;
    gap: 10px;
    width: fit-content;
    align-items: center;
}

    .toolBar label {
        font-weight: normal;
        margin-left: 0;
    }

    .toolBarTopRow {
        float: left;
        margin-left: 10px;
    }

/* =============================================================================
   5. Round-box container chrome  (shared with MediaPage.aspx)
   ============================================================================= */

.divPage .divRoundBox,
.divPage .roundBoxMargin {
    position: relative;
}

.roundBoxMargin {
    margin-top: 10px;
    margin-bottom: 10px;
}

.divRoundBox .top {
    background: url(../images/container_left-top_pix.gif) repeat-x;
    height: 40px;
}

.divRoundBox .top .right {
    background: url(../images/container_right-top.gif) no-repeat;
    position: absolute;
    width: 21px;
    height: 40px;
}

.divRoundBox .top .left {
    background: url(../images/container_left-top_narrow.gif) no-repeat;
    position: absolute;
    left: 0;
    width: 11px;
    height: 40px;
}

.divRoundBox .bottom {
    border-left: solid 1px #b6a258;
}

.divRoundBox .bottom .form2 {
    position: relative;
    top: -25px;
    padding-right: 15px;
}

.divRoundBox h2 {
    font-size: 18px;
    color: #781f23;
}

.hdrPageMassechet {
    display: inline;
    padding: 0 10px;
}

.navWrapper2 {
    margin-bottom: 20px;
}

.divInnerTextView {
    padding: 0 20px 10px 10px;
    background-image: url(../images/container_right_middle_pix_wide.gif);
    background-repeat: repeat-y;
    background-position: right center;
}

.divBelowForm1 {
    border-top: 1px solid #b6a258;
    margin-right: 10px;
    height: 1px;
    margin-top: -2px;
    position: relative;
}

.divBelowForm2 {
    background: url(../images/container_left-bottom.gif) repeat-x left top;
    height: 10px;
    margin-right: 8px;
    margin-top: -1px;
}


/* =============================================================================
   6. Form & layout panels  (legacy — kept for BookFiles.aspx compatibility)
   ============================================================================= */

.form {
    clear: both;
    width: 791px;
    margin-right: 13px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: 1px solid #B6A258;
    background: url(../images/container_right_middle_pix.gif) right repeat-y;
}

.form input {
    vertical-align: middle;
}

.belowForm {
    width: 790px;
    border-top: 1px solid #B6A258;
    margin-right: 15px;
    height: 5px;
    background: url(../images/container_left-bottom.gif) no-repeat left top;
}

.pushLeft {
    margin-right: 20px;
}


/* =============================================================================
   7. Buttons & inputs
   ============================================================================= */

input.button,
input.buttonWide {
    height: 19px;
    border: 0;
    text-align: center;
    color: #771E23;
    font-weight: bold;
    padding-bottom: 3px;
    cursor: pointer;
    background-color: transparent;
}

input.button {
    background: url(../images/btn_bg.gif) 0;
    width: 49px;
}

input.buttonWide {
    background-image: url(../images/btn_bg2.gif);
    width: 100px;
}


/* =============================================================================
   8. Body text & content
   ============================================================================= */

#oContent .clsBody,
.textView {
    font-size: 15px;
    line-height: 19px;
    text-align: justify;
}

/* Pins search form to base 13px when nested inside the 15px .clsBody area */
.clsSearchForm {
    font-size: 13px;
}


/* =============================================================================
   9. Utility helpers
   ============================================================================= */

/* Overrides main.css .inner (changes margin-left from 20px to 10px) */
.inner {
    display: inline-block;
    margin-left: 10px;
}

.innerLess {
    display: inline-block;
    margin-left: 8px;
}

.clear {
    clear: both;
}

#byline {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5em;
}


/* =============================================================================
  10. Search on this page
   ============================================================================= */

#searchOnThisPageTextBox {
    color: #999;
    direction: rtl;
    text-align: right;
}

    #searchOnThisPageTextBox.active {
        font-style: normal;
        color: #000;
    }

#searchOnThisPage input {
    width: 150px;
}


/* =============================================================================
  11. Highlighting
   ============================================================================= */

#oContent .clsBody .highlight  { background-color: #fdb458; }
#oContent .clsBody .highlight2 { background-color: #c1aab8; }
#oContent .clsBody .highlight3 { background-color: #97B762; }
#oContent .clsBody .highlight4 { background-color: #83BDB1; }


/* =============================================================================
  12. Link overrides
   ============================================================================= */

/* Removes bold weight inherited through the cascade on a.clsRedLinkU */
a.clsRedLinkU {
    font-weight: normal;
}


/* =============================================================================
  13. Font controls & action buttons
   ============================================================================= */

.font-button-container {
    margin-top: 10px;
    float: left;
    display: inline-block;
}

.font-button {
    margin-right: 5px;
    color: #781F23;
    border: 1px dotted #781F23;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    font-weight: bold;
}

.enlarge {
    font-size: 20px;
}

.shrink {
    font-size: 14px;
}

.roundButton {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url(../images/container_left-top_pix.gif);
    background-repeat: repeat-x;
    background-size: contain;
    background-position-y: -2px;
    border-radius: 20px;
    border: solid 1px;
    border-color: #B6A258;
    box-sizing: border-box;
    align-content: space-around;
    text-align: center;
}

    .roundButton img {
        width: 24px;
        height: 24px;
    }

.shareButton {
    position: absolute;
    z-index: 5;
    left: 10px;
    margin-top: -10px;
    background-color: white;
}

.toggleButton {
    float: right;
    width: 20px;
    height: 20px;
    padding: 5px;
    text-align: center;
    margin: 4px 15px 0 5px;
    border-radius: 20px;
    border: 1px dotted #b6a258;
    font-size: 18px;
    color: #781F23;
    cursor: pointer;
}


/* =============================================================================
  14. Animation
   ============================================================================= */

.spin {
    animation: mymove 1s infinite;
    animation-play-state: paused;
}

@keyframes mymove {
    100% {
        transform: rotate(360deg);
    }
}