
.view.comms  {
    xborder:1px solid lime;
}



.view.comms > .bottom-bar > .buttons > .button.disconnect,
.view.comms > .bottom-bar > .buttons > .button.topics {
    display:none;
}



.view.comms > .section.available   {
    xborder:1px solid lime;
    flex:1;
   
    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 1em;
    border-image-outset: 0;
    border-image-repeat: stretch;

    background-color: #101215;
	background-image: repeating-linear-gradient(180deg, #0e0e0e, #0e0e0e 0.2em, #101215 0.2em, #101215 0.4em);
}

.view.comms > .section.available > .list   {
    xborder:1px solid lime;
    height:90%;
    overflow-y:scroll;
    xbackground-color:rgba(0,0,0,0.5);
    padding:5px;
    xbox-shadow: inset 0px 0px 10px 5px rgba(0, 0, 0, 0.6), 5px 5px 5px 0px rgba(0, 0, 0, 0.0);

    
    
}

.view.comms > .section.available > .list > .item {
    width:100%;
    height:10%;
    padding:5px;
    font-size:1.2em;
    xfont-family:Caslon;
    transition: height 0.1s;
    xoutline: 2px solid lime;
    display:flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.view.comms > .section.available > .list > .item.selected  {
    xoutline: 2px solid lime;
    xborder:2px solid rgb(0, 203, 0);;
    border-left:0;
    border-right:0;
    xheight:20%;
    height: 50%;
    background-color:rgba(0,0,0,0.5);
    
    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 0em;
    border-image-outset: 0;
    border-image-repeat: stretch;
    
}

.view.comms > .section.available > .list > .item > .title {
    width:100%;
    xheight:100%;
    pointer-events: none;
    display:flex;
    align-items: center;
    justify-content: start;
}

.view.comms > .section.available > .list > .item > .title > .abbrev {
    xborder:1px solid grey;
    margin-right:10px;
    color:rgb(0, 203, 0);
    xwidth:10%;
    font-family: Roboto Mono, Consolas, monospace, Courier New;
    font-family: 'WhiteRabbit';
    pointer-events: none;
}

.view.comms > .section.available > .list > .item > .title > .ship-name {
    pointer-events: none;
}

.view.comms > .section.available > .list > .item > .info {
   
    display:none;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    color:grey;
    font-family: Roboto Mono, Consolas, monospace, Courier New;
    xfont-family: 'WhiteRabbit';
}

.view.comms > .section.available > .list > .item.selected > .info {
    display:flex;
}





.view.comms > .modal{
    xbackground-color:green;
    width:100%;
    height:100%;
    position:absolute;
    background-color: rgba(0,0,0,0.8);
    z-index:2;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.3s;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} 

.view.comms > .modal.pre-hail {
    xbackground-color:green;
} 

.view.comms > .modal.confirm-disconnect {
    xbackground-color:green;
} 

.view.comms > .modal > .modal__box {
    xborder: 1px solid grey;
    width:95%;
    height:60%;
    xpadding:20px;
    position:relative;
    display:flex;
    flex-direction: column;
    xjustify-content: start;
    justify-content: space-around;
    align-items: start;
    background-color:rgba(0, 0, 0, 0.5);

    box-shadow: inset 0px 0px 5px 10px rgba(0, 0, 0, 0.8), 0 0 18px 3px rgba(0, 0, 0, .3);
    xbackdrop-filter: blur(2px);

    xborder:5px double rgb(71, 71, 71);
    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 1em;
    border-image-outset: 0;
    border-image-repeat: stretch;
    xbackground-color:rgb(24, 24, 31);

    font-family: 'WhiteRabbit';
}

.view.comms > .modal > .modal__box::after {
    /*
    background-color: rgba(255, 255, 255, .6);
    bottom: 49.65%;
    width:100%;
    content: '';
    filter: blur(8px);
    left: .865%;
    position: absolute;
    right: .865%;
    top: 49.65%;
    transform: rotate(-45deg) skewX(20deg);
    z-index: -1;
    */
    padding:-20px;
    position:absolute;
    background-color: rgba(255, 255, 255, .1);
    width:100%;
    height:100%;
    content: '';
    clip-path: polygon(0 0, 100% 0, 0% 100%, 0 0);
    xclip-path: polygon(0 0, 80% 0, 0% 100%, 0 100%, 0 0);
    xclip-path: polygon(0 0, 100% 0, 100% 10%, 0% 90%, 0 0);
    z-index:-1;

    xbackground: rgb(0,255,218);
    xbackground: linear-gradient(150deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1.3) 100%);
    background: radial-gradient(rgba(255,255,255,0.2) 0%, rgba(0,0,0,0) 100%);
}



.view.comms > .modal.pre-hail  > .modal__box {
    justify-content: start;
}


.view.comms > .modal > .modal__box > .title {
    xborder:1px solid grey;
    width:100%;
    text-align: center;
    padding:20px;
    font-size:1.5em;

}   

.view.comms > .modal > .modal__box > .options {
    xborder:1px solid grey;
    display:flex;
    justify-content: space-around;
    align-items: center;
    width:100%;
    height: 40%;

}

.view.comms > .modal > .modal__box > .options > .button {
    xborder:1px solid grey;
    width:40%;
    height: 100%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: consolas,monospace;
    border-radius: 5px;
    margin:5px;
    background-color: rgb(37, 51, 71);
    xborder-bottom:5px solid rgb(0, 0, 0);
    border-top:2px solid rgba(255,255,255,0.2);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    filter:brightness(1);
}

.view.comms > .modal > .modal__box > .options > .button:active:not(.button.disabled) {
    color:rgb(68, 171, 255);
    border-bottom:0px solid rgb(0, 0, 0);
    border-top:0px solid rgba(255,255,255,0.2);
    background-color: rgb(18, 25, 36);
    box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.8);
    text-shadow:0px 0px 10px rgba(0, 0, 0, 0.5), 
        0px 0px 3px rgba(0, 0, 0, 0.5),
        2px 2px 0px rgba(55, 5, 5, 0),
        0px 0px 15px rgb(0, 234, 255),
        0px 0px 10px rgba(255, 255, 255, 0.3)
    ;  
    color: #ffd748;
    text-shadow: 0 0 1vw #FA1C16, 0 0 3vw #FA1C16, 0 0 10vw #FA1C16, 0 0 0vw #FA1C16, 0 0 .4vw #FED128, 1px 1px 0px #806914;
} 



.view.comms > .modal > .modal__box > .hail-messages {
    padding:20px;
}

.view.comms > .modal > .modal__box > .hail-messages > .message {
    padding:5px;
}

.view.comms > .section.active-comm {
    xborder:10px solid lime!important;
    background-color:rgba(0, 0, 0, 0.5);
    xheight:100%;
    height:85%!important;
    xflex-grow:100;
    xflex-shrink:0;
}

.view.comms > .section.active-comm > .info {
    xborder: 1px solid grey;
    width:100%;
    height: 30%;
    display:flex;
    align-items: start;
    justify-content: start;
    margin-top:5px;
    background-color:black;

    /*
    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 1em;
    border-image-outset: 0;
    border-image-repeat: stretch;
    */
}

.view.comms > .section.active-comm > .info > .image-area {
    xborder: 1px solid red;
    height:100%;
    width:30%;
    xwidth:50%;
    xaspect-ratio: 1/1;
    display:flex;
    align-items: center;
    justify-content: center;
    xpadding:5px;
}

.view.comms > .section.active-comm > .info > .image-area.enlarged {
    xborder:5px solid lime;
    width:100%;
    height:85%;
    position:absolute;
    top:0;

}

.view.comms > .section.active-comm > .info .image-cont {
    height:100%;
    width:100%;
    position:relative;
    overflow:hidden;
}


.view.comms > .section.active-comm > .info .image-cont > .layer {
    position:absolute;
    xborder-radius:3px;
    height:100%;
    width:100%;
    xaspect-ratio: 1/1;
    opacity:1.0;
   
}

.view.comms > .section.active-comm > .info .image-cont > .layer:not(.layer.border) {
    xanimation: asd 5s ease-in-out 0s infinite;
} 

@keyframes asd {
    0% {
        transform: translateX(0%) translateY(0%);
	}
    50% {
        transform: translateX(2%) translateY(0%);
    }

	100% {
        transform: translateX(-2%) translateY(-2%);
	}
}

.view.comms > .section.active-comm > .info .image-cont > .image.layer {
    filter:saturate(1) brightness(0.9) contrast(1) hue-rotate(0deg);
    mix-blend-mode: normal; /* normal hard-light multiply  difference */
    box-shadow: inset 0px 0px 10px 5px rgba(0, 0, 0, 0.6), 5px 5px 5px 0px rgba(0, 0, 0, 0.1);
    xbackground-image: url('https://i.imgur.com/1E3GP4A.png');
    xbackground-image: url('../../img/portrait/4.webp');
    /*https://i.imgur.com/mNeSH3x.png https://i.imgur.com/1E3GP4A.png https://i.imgur.com/F2wfEys.jpeg */
    background-position: 40% 30%;
    background-repeat: no-repeat;
    background-size: 120%;
    animation: glitch 2s linear infinite;
}

.view.comms > .section.active-comm > .info > .image-area.enlarged > .image-cont > .image.layer {
    background-size:cover;
}
.view.comms > .section.active-comm > .info .image-cont > .image.layer.thumbnail {
    xbackground-image: url('https://i.imgur.com/6HjKw3U.jpeg');
}


.view.comms > .section.active-comm > .info .image-cont > .layer.stripes {
    background-color: #101215;
	background-image: repeating-linear-gradient(180deg, #5b5b5b, #5b5b5b 2px, #ffffff 2px, #ffffff 4px);
    background-size: 100% 8px;
   
    background: linear-gradient(to top, #000000, #000000, #ffffff, #ffffff);
    background-size: cover;
    background-size: 100% 4px;

    filter:brightness(0.9);
    opacity:0.1;
    /* @keyframes duration | easing-function | delay | iteration-count | direction | fill-mode | play-state | name */
    animation: bg-move 10s linear 0s infinite;
}
@keyframes bg-move {
    0% {
        background-position: 0 0
	}
	100% {
        background-position: 0 100px
	}
}

.view.comms > .section.active-comm > .info .image-cont > .layer.border {
    xborder: 1em solid black;
    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 1em;
    border-image-outset: 0;
    border-image-repeat: stretch;
    
    z-index:1;
    background-color:rgba(0, 255, 0, 0.05);
    xborder: 5px solid lime;
    box-shadow: inset 0px 0px 10px 10px rgba(0, 0, 0, 1);
    xoutline: 10px ridge rgb(45, 45, 45);
}

.view.comms > .section.active-comm > .info > .text-area {
    xborder: 1px solid red;
    display:flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width:70%;
    height:100%;
    padding:10px;

    font-family: Roboto Mono, Consolas, monospace, Courier New;
    xfont-family: 'WhiteRabbit';

    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 1em;
    border-image-outset: 0;
    border-image-repeat: stretch;

    background-color: #101215;
	background-image: repeating-linear-gradient(180deg, #0e0e0e, #0e0e0e 0.2em, #101215 0.2em, #101215 0.4em);
}

.view.comms > .section.active-comm > .info > .text-area > .title {

}

.view.comms > .section.active-comm > .info > .text-area > .name {
    margin-bottom: 5px;
}

.view.comms > .section.active-comm > .info > .text-area > .ship {
    font-size:0.8em;
}

.view.comms > .section.active-comm > .info > .text-area > .ship-designation {
    font-size:0.8em;
}


.view.comms > .section.active-comm > .info > .text-area > .faction {
    xcolor:grey;
    font-size:0.8em;
}

.view.comms > .section.active-comm > .info > .text-area > .sub-faction {
    xcolor:grey;
    font-size:0.8em;
}

.view.comms > .section.active-comm > .info > .text-area > .aligment {
    xcolor:grey;
    font-size:0.8em;
}

/* Dialogue area */
.view.comms > .section.active-comm > .dialogue-area {
    width:100%;
    height:70%;
    xoverflow:auto;


    xdisplay:flex;
    xflex-direction: column;
    xalign-items: center;
    xjustify-content: space-between;
    

    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 1em;
    border-image-outset: 0;
    border-image-repeat: stretch;

    background-color: #101215;
	background-image: repeating-linear-gradient(180deg, #0e0e0e, #0e0e0e 0.2em, #101215 0.2em, #101215 0.4em);

    xborder:5px solid lime;
}

.view.comms > .section.active-comm > .dialogue-area > .messages {
    xborder:1px solid lime;
    padding:10px;
    overflow-y:scroll;
    height:70%;
    xheight:70%;
    xflex:1;
    xflex-grow:0;
}

.view.comms > .section.active-comm > .dialogue-area > .messages > .message {
    xborder:1px solid lime;
    margin-bottom:10px;
}

.view.comms > .section.active-comm > .dialogue-area > .messages > .message > .topic-link {
    xborder:1px solid grey;
    color:  #7280cc;
}

.view.comms > .section.active-comm > .dialogue-area > .messages > .message > .topic-link:active {
    color:  #2942cc;
}



.view.comms > .section.active-comm > .dialogue-area > .messages > .player.message {
    color:grey;
    text-transform: capitalize;
}

.view.comms > .section.active-comm > .dialogue-area > .topics {
    background-color:rgb(34, 34, 34);
  
    xwidth:calc(100% - 1em);
    width:100%;
    height:30%;
    xflex:1;
    transition: height 0.1s;
    xmargin-bottom:10px;
    padding:5px;

    border-style: solid;
    border-image-source: url('../../img/border.png');
    border-image-slice: 50;
    border-image-width: 1em 0em;
    border-image-outset: 0;
    border-image-repeat: stretch;

    overflow-y:scroll;
    
}

.view.comms > .section.active-comm > .dialogue-area > .topics > .topic {
    xborder:1px solid grey;
    xwidth:100%;
    xtext-transform: capitalize;
    display:inline-block;
    padding:5px;
    border-radius:5px;
    margin:2.5px;

    background-color:#353a3e;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
    xbox-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.6);
}

.view.comms > .section.active-comm > .dialogue-area > .topics > .topic.used {

    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0);
    color:grey;
    background-color:#1a1a1a;
}

.view.comms > .section.active-comm > .dialogue-area > .topics > .topic:active {
    background-color:rgba(0,0,0,0.5);

}




