/* ==========================================================================
   TrueConf.me — profile/call page styles (consolidated, only used rules)
   Source: css/general/v2/base.css + css/me/style.css + materialize_btn.css
           + css/general/v2/btn.css + colorbox.css + ui-kit-grid/typography
   ========================================================================== */

/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    border: none;
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #555;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
    font-family: 'Open Sans', Tahoma, sans-serif;
    color: #474747;
    font-weight: 400;
}

/* ---------- Base (base.css) ---------- */
a:hover {
    text-decoration: none;
}

a:active,
a:hover {
    outline: 0;
}

a, a b {
    color: #0097a7;
}

h1, h2, .h1, .h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    color: #0097a7;
    margin: 30px 0 15px 0;
}

h1 a, h2 a {
    font-size: 24px;
}

h3, .h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 32px;
    color: #0097a7;
    margin: 30px 0 15px 0;
    text-decoration: none;
}

h4, .h4 {
    font-size: 21px;
    font-weight: 400;
    line-height: 32px;
    color: #333;
    margin: 30px 0 15px 0;
    text-decoration: none;
}

h4 a {
    font-size: 21px;
}

h5, .h5 {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    color: #333;
    margin: 30px 0 15px 0;
    text-decoration: none;
}

h6, .h6 {
    font-size: 19px;
    font-weight: 400;
    line-height: 32px;
    color: #333;
    margin: 30px 0 15px 0;
    text-decoration: none;
}

p {
    margin-bottom: 15px;
}

small {
    font-size: 11px;
}

strong {
    font-weight: 600;
}

.gray {
    color: rgb(153, 153, 153);
}

ul, ol {
    margin-bottom: 15px;
}

ol {
    padding-left: 15px;
}

ul {
    list-style: none;
}

ul li img {
    vertical-align: middle;
}

/* ---------- Layout ---------- */
#wrapper {
    background: inherit;
    max-width: 1140px;
    margin: 0 auto;
    border-radius: 35px;
    padding-top: 80px;
    padding-bottom: 80px;
}

#container {
    padding: 0 25px;
    position: relative;
}

#header {
    width: 177px;
    height: 50px;
    margin: 0 auto;
}

img.left, a.left {
    display: block;
    float: left;
}

/* ---------- User info ---------- */
div.user-info {
    margin: 25px 0 35px;
    overflow: hidden;
    clear: both;
}

div.user-info > img {
    float: left;
    margin-right: 17px;
}

.user-info img.avatar {
    max-width: 160px;
    max-height: 160px;
}

/* ---------- Call button ---------- */
div.call-button {
    margin: 10px 0;
    text-align: center;
}

div.call-button p {
    text-align: left;
}

div.call-button a.dialog {
    color: #999;
    font-size: 10px;
    text-decoration: none;
}

#callMe,
#chatMe,
#profileMe {
    display: inline-block;
    float: unset;
}

div.call-another-user {
    margin: 10px 0;
}

/* ---------- Join instruction ---------- */
.join_instruction {
    clear: both;
}

.join_instruction img {
    max-width: 100%;
}

.join_instruction ol.st_s > li {
    margin: 5px 0 10px;
}

.join_instruction ol ul {
    display: inline-block;
    margin-bottom: 0;
    padding: 1em 0;
}

.join_instruction ol ul li {
    background: none;
    float: left;
    text-align: center;
}

/* Step 1 */
.join_instruction .st_1 li {
    display: none;
    min-height: 65px;
}

.join_instruction .st_1 ul li.show {
    display: inline;
}

.fleft {
    float: left;
}

.join_instruction .st_1 ul a {
    display: block;
}

.join_instruction .all_platforms a,
.join_instruction .st_1 ul li.unknown {
    line-height: 30px;
}

.join_instruction .st_1 p,
.join_instruction .st_1 li {
    transition: color 1s ease 0s;
}

/* Step 2 */
.join_instruction .st_2 li {
    padding: 1em 0 1em 15px;
}

/* Step 3 */
.join_instruction .st_3 li {
    padding: 1em 0 1em 15px;
}

.join_instruction .st_3 .mac_new {
    height: 100px;
    width: auto;
    padding: 15px 0 0 15px;
}

.join_instruction .st_3 .linux_new,
.join_instruction .st_3 .windows_new {
    height: 100px;
    margin: 0 15px;
}

.join_instruction .st_3 .windows_new {
    height: 160px;
}

.join_instruction .st_3 p img {
    margin: 0 0.5ex;
}

/* ---------- Buttons (style.css + materialize_btn.css + btn.css) ---------- */
.btn {
    font-size: 14px !important;
    font-family: 'Open Sans', Tahoma, sans-serif !important;
    display: inline-block !important;
    float: none;
    height: auto;
    white-space: nowrap;
    text-transform: none;
    padding: 0 1rem;
    letter-spacing: normal;
    margin: 0 3px;
}

.btn:hover,
.btn-large:hover,
.btn:active,
.btn-large:active {
    opacity: 0.9;
    color: #ffffff !important;
}

button {
    color: inherit;
    font: inherit;
    margin: 0;
    overflow: visible;
    text-transform: none;
    -webkit-appearance: button;
    cursor: pointer;
}

.btn, .btn-large,
.btn-flat {
    border: none;
    border-radius: 2px;
    display: inline-block;
    height: 36px;
    line-height: 36px;
    padding: 0 2rem;
    text-transform: none;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.btn, .btn-large {
    text-decoration: none;
    color: #fff;
    background-color: #26a69a;
    text-align: center;
    letter-spacing: .5px;
    -webkit-transition: .2s ease-out;
    transition: .2s ease-out;
    cursor: pointer;
}

.btn:hover, .btn-large:hover {
    background-color: #2bbbad;
}

.light-blue.darken-2 {
    background-color: #0097a7 !important;
}

.waves-effect {
    position: relative;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
    z-index: 1;
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
}

.btn, .btn a {
    display: block;
    float: left;
    cursor: pointer;
}

.btn span {
    text-align: center;
    font-size: 14px;
    padding: 0 0.5rem;
}

li > .btn {
    display: block;
    float: initial;
}

li > .btn span {
    color: white;
}

ul.platforms li {
    padding-left: 10px;
}

ul.platforms li a span,
div.join_to_conference a span {
    display: inline;
}

li > .btn_download_linux {
    margin: unset;
}

.btn_download > span {
    background-image: url(/images/buttons/download_server_button_new.png);
    background-repeat: no-repeat;
    background-position: 0px;
}

.btn_download_linux {
    margin-bottom: 15px;
}

.btn_download_win > span {
    background-image: url(/images/buttons/win-icon.png);
    background-repeat: no-repeat;
    background-position: -2px;
}

.btn_download_linux > span {
    background-image: url(/images/buttons/linux-icon.png);
    background-repeat: no-repeat;
    background-position: -2px;
}

.btn_download_mac > span {
    background-image: url(/images/buttons/mac-icon.png);
    background-repeat: no-repeat;
    background-position: -2px;
}

.btn_osx_app > span, .btn_win_app > span, .btn_webrtc > span,
.btn_cloud > span, .btn_vcs > span, .btn_info > span,
.btn_download_win > span, .btn_download_mac > span, .btn_linux_app > span,
.btn_buy > span, .btn_download_android > span, .btn_download_apple > span,
.btn_delete > span, .btn_download_linux > span,
.btn_cart > span, .btn_chat > span {
    padding: 0 0 0 25px;
    background-repeat: no-repeat;
}

.btn_download > span {
    padding: 10px 10px 10px 25px;
}

/* ---------- Footer ---------- */
#footer {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 32px;
}

#footer div {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

#footer a {
    background-repeat: no-repeat;
    background-position: 0 0;
    text-decoration: none;
    margin: 0 1px;
    display: inline-block;
    color: rgba(55, 59, 60, 0.40);
    text-decoration-line: underline;
}

#footer a:hover {
    text-decoration: none;
}

#footer.profile .terms {
    margin: 60px 0 0;
}

#footer .terms a {
    width: auto;
    height: auto;
}

div#legalLink {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ---------- Language dropdown ---------- */
.worldwide {
    position: relative;
    float: left;
    margin-left: 50px;
    margin-top: 2px;
}

.worldwide a {
    display: block;
    color: #FFFFFF;
}

.worldwide a > * {
    display: inline-block;
    vertical-align: baseline;
}

.worldwide a > span {
    width: 20px;
    height: 15px;
}

.worldwide a.dropdown-button {
    width: auto !important;
    height: auto !important;
    font-size: 12px;
    line-height: 12px;
}

.worldwide .dropdown-button .sprite-common {
    background-size: contain;
    border: solid #d0d0d0 1px;
}

.worldwide .dropdown-button .sprite-common.ru { background-image: url("/images/1-tc-web-flags/src/ru.svg"); }
.worldwide .dropdown-button .sprite-common.en { background-image: url("/images/1-tc-web-flags/src/us.svg"); }
.worldwide .dropdown-button .sprite-common.cs { background-image: url("/images/1-tc-web-flags/src/cz.svg"); }
.worldwide .dropdown-button .sprite-common.de { background-image: url("/images/1-tc-web-flags/src/de.svg"); }
.worldwide .dropdown-button .sprite-common.fr { background-image: url("/images/1-tc-web-flags/src/fr.svg"); }
.worldwide .dropdown-button .sprite-common.it { background-image: url("/images/1-tc-web-flags/src/it.svg"); }
.worldwide .dropdown-button .sprite-common.es { background-image: url("/images/1-tc-web-flags/src/es.svg"); }
.worldwide .dropdown-button .sprite-common.pt { background-image: url("/images/1-tc-web-flags/src/pt.svg"); }
.worldwide .dropdown-button .sprite-common.pl { background-image: url("/images/1-tc-web-flags/src/pl.svg"); }
.worldwide .dropdown-button .sprite-common.zh { background-image: url("/images/1-tc-web-flags/src/cn.svg"); }

.worldwide .dropdown-button svg.dropdown-arrow {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    box-shadow: 0px 0px 10px 2px rgba(176, 176, 176, 1);
}

.dropdown-content.open {
    display: block;
}

#worldwide-dropdown {
    min-width: 160px;
    left: -120px;
    bottom: -12px;
    background-color: #F0F0F0;
    z-index: 20;
}

#worldwide-dropdown li {
    background-image: none;
    padding-left: 0;
    line-height: 1;
    min-height: 0;
    margin: 0;
}

#worldwide-dropdown a {
    color: #000000;
    background-image: none;
    text-decoration: none;
    cursor: pointer;
    font-weight: 400;
    padding: 3px 0;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

#worldwide-dropdown a > img {
    display: inline;
    width: 20px;
    margin: 0 1ex;
    border: solid #d0d0d0 1px;
}

#worldwide-dropdown > li:hover > a,
#worldwide-dropdown > li:focus > a {
    color: #008ed1;
}

/* ---------- Screenshot lightbox (colorbox replacement) ---------- */
a.colorbox-separate,
a.colorbox-video {
    position: relative;
    line-height: 1px;
    cursor: pointer;
    outline: none;
    outline-color: transparent;
}

a.colorbox-separate {
    display: inline-block;
    margin: 0 auto;
}

a.colorbox-separate span,
a.colorbox-video span {
    opacity: 0.25;
    background: #000 url(/images/v2/loupe.png) no-repeat center center;
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    cursor: pointer;
}

a.colorbox-separate:hover span,
a.colorbox-video:hover span {
    display: block;
}

.cbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    text-align: center;
}

.cbox-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.cbox-close {
    display: none;
    position: fixed;
    top: 12px;
    right: 16px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    z-index: 1001;
}

.cbox-overlay.open .cbox-close {
    display: block;
}

.cbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ---------- Dialog (jQuery UI replacement) ---------- */
.tc-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 102;
    max-width: 350px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.tc-dialog.open {
    display: block;
}

.tc-dialog-title {
    padding: 12px 40px 12px 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.tc-dialog-content {
    padding: 16px;
    color: #555;
}

.tc-dialog-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.tc-dialog-close:hover {
    color: #333;
}

.tc-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 101;
}

.tc-dialog-overlay.open {
    display: block;
}

/* ---------- Cookie informer ---------- */
div#cookiesInformer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    height: 90px;
    z-index: 10;
}

div#cookiesInformer span {
    font-size: 17px;
    color: white;
}

div#cookiesInformer a {
    font-size: 17px;
}

div#cookiesInformer button.btn {
    margin-left: 30px;
}

div#cookiesInformer a:hover,
div#cookiesInformer a:focus {
    color: #039be5;
    text-decoration: underline;
}

/* ---------- Media queries ---------- */
@media all and (max-width: 770px) {
    #wrapper {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media all and (max-width: 920px) {
    div#cookiesInformer {
        height: 120px;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        padding: 10px;
    }
    div#cookiesInformer button.btn {
        margin: unset;
    }
    div#cookiesInformer span {
        font-size: 14px;
        color: white;
    }
    div#cookiesInformer a {
        font-size: 14px;
    }
}

@media all and (max-width: 767px) {
    #footer #legalLink {
        flex-direction: column;
        margin: unset;
    }
    #footer .terms a {
        padding-top: 5px;
    }
    #footer div.worldwide {
        margin: unset;
        float: none;
    }
}

/* ---------- Social block icons ---------- */
/* Нормализуем размер иконок соц-сетей: некоторые SVG имеют жёстко
   зашитые width/height (напр. whatsapp_logo.svg 340x318), что раздувает их
   на фоне остальных. Приводим к единой высоте с сохранением пропорций. */
.social-block__link img {
    height: 24px;
    width: auto;
    vertical-align: middle;
}
