*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    color: #2a2a2a;
   

    
    font-family: Arial;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url(/web/20130806041918im_/http://yambler.net/images/body_bg.png);
}
header
{
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: 1vw;
    align-items: center;
    margin-left: 5vw;
    margin-top: 2vw;
}
header > a
{
    text-decoration: underline;
    
    color: #2a2a2a;
}
header > a:hover
{
    text-decoration: none;
}
header > a:nth-child(1)
{
    
    color: #2a2a2a;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}
header > a:nth-child(1):hover
{
    text-decoration: underline;
}
.input-search
{
  background-color: #fe8b24;
  padding: 12px 11px;
  border-radius: 4px;
  height: 46px;
  width: 80vw;
  display: flex;
  flex-wrap: nowrap;
  gap: 1vw;
}
input[type=search]
{
    width: 75vw;
    height: 22px;
}
input[type=submit]
{
    padding: 3px 4px;
    cursor: pointer;
    transition: all ease 0.3s;
}
input[type=submit]:hover
{
    scale: 110%;
}
input[type=text], textarea, input[type=password], input[type=email]
{
    padding: 1rem;
    border-radius: 10px;
}
.search
{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 1vw;
}
main
{
    margin-top: 3%;
    animation: fadeIn 0.3s ease-in-out;
    flex: 1;
}
section
{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1vw;
    margin-top: 2vw;
}
section > div
{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.row
{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.row > a
{
    text-decoration: none;
    color: inherit;
}
section > div:nth-child(2) > .row > img, section > div:nth-child(3) > img
{
    width: 150px;
    height: 150px;
}
section > div:nth-child(2) > .row 
{
    color: #0000CC;
    text-decoration: none;
    
    width: 100%;
}
footer
{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: Arial;
    line-height: 46px;
    font-size: 12px;
    background-color: #fe8b24;
    margin-top: auto;
}
.news-block
{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    padding: 20px;
    line-height: 2rem;
    gap: 30px;
    margin-bottom: 30px;
}
h2
{
    padding: 20px 0 10px 0;
    margin: 0;
    font-weight: normal;
}

section > div:nth-child(1) > .row > strong
{
    color: #184751;
    font-size: 12px;
    font-weight: bold;
}
section > div:nth-child(1) > .row > a:hover
{
    text-decoration: underline;
}
iframe
{
    align-self: center;
}
audio
{
    width: 50vw;
    display: none;
}
#songName, #PlayStop, #Next, #setHomepage, #sign
{
    background-color: #fe8b24;
    padding: 5px;
    border-radius: 4px;
    color: #fff;

}
.news-comments
{
    width: 40%;
}
fieldset
{
    padding: 10px;
    border-color: #fe8b24;
}
button
{
    cursor: pointer;
}
.sign-menu
{
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}
.sign-menu > form > input
{
    width: 30vw;
    min-width: 250px;
}
article
{
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    margin-left: 5vw;
    margin-right: 5vw;
    gap: 10px;
}
.edit > form > input, .edit > form > textarea
{
    width: 30vw;
    min-width: 250px;
}
article > .item > div > a, article > div > p > a
{
    color: inherit;
}
article > .item > div > a:hover
{
    text-decoration: none;
}
article > div > p > a:hover
{
    text-decoration: none;
}
article > .item
{
    width: 300px;
}
.flying-photo {
    position: absolute;
    transition: all ease 1s;
  }
  @media (max-width: 1271px)
{
    html body main section div table
    {
        width: 560px;
    }
}
@media (max-width: 560px) {
    #songName, #setHomepage {
        width: 100%;
    }
    header
    {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }
    html body main div.search div
    {
        width: 100%;
        text-align: center;
    }
    section > div:nth-child(2)
    {
        width: 80%;
    }
    iframe
    {
        width: 350px;
        height: 150px;
    }
    html body main section div table
    {
        width: 350px;
    }
    .sidebar
    {
        width: 100%;
        justify-content: center;
        align-items: center;
        
    }
    .mobile
    {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }
    
    
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) 
{
        .news-block
    {
        
        flex-flow: column wrap;
        justify-content: center;
        align-items: center;
        
    }
    .news-comments
    {
        width: 100%;
        padding: 15px;
    }
    
}
@media (max-width: 1000px)
{
    .sidebar
    {
        width: 100%;
        justify-content: center;
        align-items: center;
        
    }
    .mobile
    {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }
}

footer
{
    margin-top: 50px;
}
#chatButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #5f39c4;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    z-index: 9999;
  }

  #chatModal {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 450px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
  }

  #chatMessages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
    font-size: 14px;
  }

  .msg {
    display: flex;
    margin: 6px 0;
    align-items: flex-start;
  }

  .msg-user {
    justify-content: flex-end;
    text-align: left;
  }

  .msg-user .bubble {
    background: #e1e1e1;
    border-radius: 15px;
    padding: 8px 12px;
    max-width: 75%;
  }

  .msg-bot {
    justify-content: flex-start;
  }

  .msg-bot .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 6px;
    margin-top: 2px;
  }

  .msg-bot .bubble {
    background: #f0e9ff;
    color: #5f39c4;
    border-radius: 15px;
    padding: 8px 12px;
    max-width: 75%;
  }

  #chatForm {
    display: flex;
    gap: 5px;
  }

  #chatInput {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  #chatSend {
    padding: 5px 12px;
    background: #5f39c4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  .typing {
    font-style: italic;
    color: #888;
    margin-left: 34px;
    margin-top: 2px;
  }
button
{
    background-color: #fe8b24;
    padding: 5px;
    border-radius: 4px;
    color: #fff;
}
#paginationControls
{
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
body, a
{
    font-size: 1rem;
}
article
{
    width: 70%;
}