/*
    NAME:          layout.css
    AUTHOR:        Alan Davies (Lecturer Health Data Science)
    EMAIL:         alan.davies-2@manchester.ac.uk
    DATE:          04/02/2023
    INSTITUTION:   University of Manchester (FBMH)
    DESCRIPTION:   Main layout of screen and elements style sheet.
*/

a:link {
    color: #FCC520;
}
  
a:visited {
    color: #FCC520;
}
  
a:hover {
    color: white;
}
  
a:active {
    color: blue;
}
  
body {
    background-color: #2B2B35;
    color: white;
    user-select: none; 
}
  
#main-screen {
    width: 100%;
    display: grid;
    height: calc(100vh - 20px);
    justify-items: stretch;
    align-items: stretch;
    justify-content: stretch;
    grid-template-columns: repeat(12, 1fr [col-start]);
    grid-template-rows: repeat(14, 1fr);
}
  
#logo-panel {
    grid-column: 1 / span 12;
    justify-self: stretch;
    display: grid;
    justify-items: stretch;
    align-items: stretch;
    justify-content: stretch;
    grid-template-columns: repeat(35, 1fr [col-start]);
    grid-template-rows: 1 / 35;
}
  
#graph-panel {
    grid-column: 1 / span 5;
	grid-row: 2 / span 9;
    background-color: #2B2B35;
}
  
#graph-pannel-inner {
    padding: 10px;
    margin: 20px;
    color: #FCC520;
    border: 2px solid black;
    border-radius: 15px;
    background-color: #363844;
    width: 90%;
    height: 90%;
}
  
#node-panel {
    grid-column: 6 / span 7;
    grid-row: 2 / span 8;
    background-color: #2A2B34;
}
  
#metrics-panel {
    grid-column: 1 / span 5;
    grid-row: 11 / span 4;
}
  
#metrics-panel-inner {
    padding: 10px;
    margin-left: 20px;
    margin-right: 20px;
    color: #FCC520;
    border: 2px solid black;
    border-radius: 15px;
    background-color: #363844;
    width: 90%;
    height: 90%;
    display: grid;
    justify-items: stretch;
	align-items: stretch;
	justify-content: stretch;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(12, 1fr);
    word-break: break-all;
}
  
 #node-actions-panel {
    grid-column: 6 / span 7;
	grid-row: 10 / span 5;
	border: 1px solid purple;
    overflow: auto;
    border: 2px solid black;
    border-radius: 10px;
    padding: 5px;
    user-select: none; 
    background-color: #363844;
}
  
#screen-mask {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:black;
    opacity:0.5;
}

#cycle-section {
    grid-column: 1 / span 3;	
    grid-row: 1 / span 12;	    
    display: grid;     
    justify-content: space-between;
    grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(12, 1fr);
}

#cycle-label {
    grid-column: 1 / span 12;	
    grid-row: 2 / span 1;
    justify-self: center;
}

#cycle-number {
    grid-column: 1 / span 12;	
    grid-row: 3 / span 5;
    justify-self: center;
}
  
#cycle-button {
    width:150px;
    height:150px;
    position: absolute;
    bottom: 0px;
    justify-self: center;
    background-image: url('../images/Refresh.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
}

#cycle-button:active {
    background-image: url('../images/Refresh-pressed.png');
}

#metrics-section {
    grid-column: 4 / span 9;	
    grid-row: 1 / span 12;				  
}

.metric-bar-block {
    padding: 10px;
    width: 95%;
    height: 92%;
    border-radius: 10px;
    background-color: #1E7EA8;
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(12, 1fr);
}
  
#metrics-cycle-table {
    width: 100%;
    height: 100%;
    text-align: center;    
    border: 1px solid red;
    grid-column: 1 / span 3;	
    grid-row: 1 / span 12;		
}
  
#time-bar-empty {
    background-color: #629FB4;
    grid-column: 5 / span 7;	
    grid-row: 3 / span 1;
 }

 #time-bar-full {
    height: 100%;
    width: 100%;
    background-color: #FCC723;
    grid-column: 5 / span 7;	
    grid-row: 3 / span 1;
}

#resource-bar-empty {
    background-color: #629FB4;
    grid-column: 5 / span 7;	
    grid-row: 6 / span 1;
}

#resource-bar-full {
    height: 100%;
    width: 100%;
    background-color: #FCC723;
    grid-column: 5 / span 7;	
    grid-row: 6 / span 1;
}

#budget-bar-empty {
    background-color: #629FB4;
    grid-column: 5 / span 7;	
    grid-row: 9 / span 1;
}

#budget-bar-full {
    height: 100%;
    width: 100%;
    background-color: #FCC723;
    grid-column: 5 / span 7;	
    grid-row: 9 / span 1;
}

#actions-list-container {
    background-color: #1E7EA8;
    border-radius: 10px;
    margin: 10px;
}
  
#action-list {
    list-style-type: none;
    color: white;
    position: relative;
    background-color: #1E7EA8;
    overflow: auto;
    font-size: 1em;
    padding:2px;
    width:98%;
    margin-left: 1%;
    margin-top: 10px;
    display: none;
}
  
.action-list-new-item {
    border: 2px solid #D4EDDA;
    padding:5px;
    background-color: #629FB4;
    margin: 0.2em 0;
}

.action-list-new-item:hover {
    background-color: #1E7EA8;
    color: #EEC22B;
}

.action-list-item {
    border: 1px solid #629FB4;
    padding:5px;
    background-color: #629FB4;
    margin: 0.2em 0;
}
  
.action-list-item:hover {
    background-color: #1E7EA8;
    color: #EEC22B;
}

.vertical-spacer {
    margin-top: 45px;
}
  
.vertical-spacer-small {
    margin-top: 20px;
}
  
#image-preloader {
    display: none;
}
  
::-webkit-scrollbar {
    width: 10px;
}
    
::-webkit-scrollbar-track {    
    background: #2B2B35;
    border: 2px solid black;
}
    
::-webkit-scrollbar-thumb {
    background: #FBC524;
}

.icon-container {
    width: auto;
    height: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
    align-self: center;
}

#about-icon {
    background-image: url('../images/about.png');
}

#about-icon:hover {
    background-image: url('../images/about_hover.png');
}

#progress-icon {
    background-image: url('../images/progress.png');
    height: 75%;
    background-size: 100% auto;
}

#progress-icon:hover {
    background-image: url('../images/progress_hover.png');
}

#progress-status-text {
    grid-column: 3 / span 3;
    padding-left: 2px;
    font-weight: bold;
    align-self: center;
    justify-self: left;
}

#logos {
    width: auto;
    height: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
    background-image: url('../images/logos.png');
    align-self: center;
    grid-column: 9 / span 9;
}

#feedback-icon {
    background-image: url('../images/feedback.png');
    grid-column: 29 / span 1;
}

#feedback-icon:hover {
    background-image: url('../images/feedback_hover.png');
}

#help-icon {
    background-image: url('../images/help.png');
    grid-column: 30 / span 1;
}

#help-icon:hover {
    background-image: url('../images/help_hover.png');
}

#recentre-icon {
    background-image: url('../images/recentre.png');
    grid-column: 31 / span 1;
}

#recentre-icon:hover {
    background-image: url('../images/recentre_hover.png');
}

#new-icon {
    background-image: url('../images/new.png');
    grid-column: 32 / span 1;
}

#new-icon:hover {
    background-image: url('../images/new_hover.png');
}

#save-icon {
    background-image: url('../images/save.png');
    grid-column: 33 / span 1;
    display: none;
}

#save-icon:hover {
    background-image: url('../images/save_hover.png');
    display: none;
}

#load-icon {
    background-image: url('../images/load.png');
    grid-column: 34 / span 1;
    display: none;
}

#load-icon:hover {
    background-image: url('../images/load_hover.png');
    display: none;
}

#settings-icon {
    background-image: url('../images/settings.png');
    grid-column: 35 / span 1;
}

#settings-icon:hover {
    background-image: url('../images/settings_hover.png');
}

#strength-list {
    list-style-type: none;
    font-size: 1.2em;
    padding: 5px;
}

.strength-list-item {
    list-style-type: none;
    font-size: 1.2em;
    padding: 5px;    
    border: 2px dashed black;
}

.strength-list-item:hover {
    background-color: #FBC524;
    color:black;
}

.st-span {
    color: red;
}

#toast-bar {
    visibility: hidden;
    width: 100%;
    background-color: #FBC524;
    color: black;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 0px;
    bottom: 30px;
    font-size: 17px;
  }

  #toast-bar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }

  @-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
  }
  
  @keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
  }
  
  @keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }

  .chart-info-container {
    padding: 5px;
    color: white;
    background-color: #363844;
  }

  .visualisation-data-table {
    color: white;
    border: 2px solid gainsboro;
    border-collapse: collapse;
  }

  .visualisation-data-table-cell {
    border: 2px solid gainsboro;
    background-color: #1E7EA8;
    columns: white;
    padding: 2px;
  }

  .visualisation-data-table-header {
    text-align: center;
    font-weight: bold;
    background-color: black;
    color: #FBC524;
  }

  .viz-data-table-font {
    font-size: 12px;
  }
