@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=VT323&display=swap');

html {
    background-image: url("images/background2.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    display: grid;
    width: 70%;
    margin: 30px auto;
    align-items: center;
    justify-content: center;

    grid-template-areas:
        "title title"
        "container container"
}

.title {
    grid-area: title;
    height: 100px;
    display: flex;
    justify-content: left; 
    align-items: left;    
    overflow: hidden;     
    cursor: pointer;
}

.title img {
    max-height: 100%;       
    width: auto;           
    display: block;
}

.container{
    display: grid;
    margin: 0px auto;
    
    /*background: url(/images/background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;*/

    grid-template-areas:
        "banner banner"
        "message message"
        "main main"
        "extra extra"
        "footer footer";
    
}

.banner {
    grid-area: banner;

    background: url("images/banner4.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 35%;

    border: 5px solid black;
    height: 250px;
}

.message {
    grid-area: message;
    display: flex;

    background: url("images/background3.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: 20px;

    border: 5px dashed #85002c;
    
    display: flex;
    height: 80px;
    overflow: hidden;
    scrollbar-width: none;
}

.group{
    display: flex;
    align-items: center;
    justify-content: space-around;
    animation: modern-marquee 15s linear infinite;
}

.group img{
    padding: 1em;
}

@keyframes modern-marquee {
    from{translate: 0;}
    to {translate: -100%;}
}

main {
    grid-area: main;

    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-template-areas:
        "nav content";
}

nav {
    grid-area: nav;

    display: grid;
    grid-template-rows: repeat(4, 70px);
    gap: 120px;

    background: rgba(10, 10, 15, 0.75);
    border: 5px double rgba(211, 211, 211, 0.5); 
    border-radius: 5px;

    margin-top: 20px;
    margin-bottom: 20px;
    align-content: center;
    padding: 50px;
}

nav button {
    font-family: 'Orbitron', sans-serif;
    font-size: 25px;
    cursor: pointer;
    background: #a70038;
    border: 10px inset black;
    transform: skewX(-15deg);
}

nav button:hover{
    transform: skewX(-15deg) translate(2px, 3px);
}

nav button:active{
    transform: skewX(-15deg) translate(0px, 0px);
}


.content {    
    display: grid;

    border: 5px solid black;
    
    background: rgba(10, 10, 15, 0.75);
    border: 5px double #ff00558a;
    border-radius: 5px;
    color: white;

    width: auto;
    margin: 20px;
    margin-right: 0;
    height: 800px;
    overflow: auto;
    scrollbar-width: none;
}
.content h2{
    text-align: center;
    margin-bottom: 0;
    font-family: "Black Ops One", system-ui;
    font-weight: 400;
    font-style: normal;
}

.content article{
    padding-bottom: 20px;
    padding-top: 20px;
    font-family:'Courier New', Courier, monospace;
    /*border-bottom: solid white; Habilita esto con dos posts o más*/
}

.content img{
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.media-player{
    margin: 20px auto;
    display: grid;
    background-color: silver;
    border-style: outset;
    height: 120px;
    width: 900px;
    grid-template-areas: 
            "screen controls";
    grid-template-columns: 1fr 7fr;

    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
}

.cover-container{
    grid-area: screen;
    margin-left: 7px;
    margin-top: 7px;
    width: 100px;
    height: 100px;
}

.media-player img {
    height: 100px;
    width: auto;
    object-fit: cover;
    border-style: inset;
}

.controls{
    grid-area: controls;

    grid-template-areas: "song-title"
                         "tracktime-bar"
                         "play-buttons";

    grid-template-rows: 2fr 1fr;
    gap: 5px;
}

.song-title-container{
    background: rgb(0, 6, 19);
    color: rgba(0, 255, 0, 0.952);
    border-style: inset;
    text-align: center;
    margin: 10px;
    height: 30px;
    padding-top: 10px;
    padding-left: 10px;
}

#song-title{
    margin: 0;
    animation: 1s parpadeo step-end infinite;
}

@keyframes parpadeo {
    50%{
        visibility: hidden;
    }
}

#tracktime-bar{
    grid-area: tracktime-bar;   

    cursor: pointer;
    pointer-events: none;
    margin-left: 15px;
    width: 760px;
}

.play-buttons{
    grid-area: play-buttons;

    display: flex;
    margin-top: 5px;
    margin-left: 15px;
    gap: 10px;
    
}

.play-buttons button{
    border-style: outset;
    cursor: pointer;
}

.play-buttons button:active {

  transform: scale(0.90);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.034);

}

#volume-bar {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent; /* Permite controlar el fondo del carril */
}

#volume-bar::-webkit-slider-runnable-track {
    background: rgb(100, 100, 100);
    border-style: inset;
    height: 10px;
}

#volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: red;
    height: 15px;
    width: 8px;
    margin-top: -5px;
    cursor: pointer;
}

.last-posts{
    margin-top: 50px;
}


section {
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

/*.pinned-pictures {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.pinned-pictures-container {
    display: grid;
    grid-template-columns: repeat(3, auto);

}

.pinned-pictures-container img {
    width: 100%;
}*/

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, auto);
}

.gallery-container img {
    width: 100%;
}

.extra-content{
    grid-area: extra;

    display: grid;
    grid-template-columns: repeat 2;
    grid-template-areas: "calendary chatroom";  
    gap: 30px;
    margin-bottom: 20px;
    height: 400px;
}

.calendary{
    grid-area: calendary;

    text-align: center;

    background: rgba(10, 10, 15, 0.75);
    border: 5px double #ff00558a; 
    border-radius: 5px;

    color: white;
}

.chatroom{
    grid-area: chatroom;

    text-align: center;

    background: rgba(10, 10, 15, 0.75);
    border: 5px double #ff00558a;   
    border-radius: 5px;

    color: white;
}

footer {
    grid-area: footer;

    padding-top: 10px;
    border: 5px solid black;
    text-align: center;
    background: url(images/camo.jpg);
    color: white;
    height: 90px;
}

