/**
 * Style sheet for all detector and sub-detector pages (/detector/*)
 */


/* Add space between the two central pictures on the main detector page */
#CERN-EX-0607014-02 {
    margin-top: 2%;
}
  
/* Position of the title on the different detector pages */
div[data-history-node-id="91"] .text-component-title, 
div[data-history-node-id="92"] .text-component-title,
div[data-history-node-id="93"] .text-component-title,
div[data-history-node-id="94"] .text-component-title,
div[data-history-node-id="95"] .text-component-title,
div[data-history-node-id="97"] .text-component-title
{
    margin-top: 0;
}

div[data-history-node-id="96"] > .layout__region > .field > .field--item > .component-row > .component-row__row > .component-row__column > .text-component > .text-component-title {
    margin-top: 0;
  }

div[data-history-node-id="96"] .vertical-line {
    padding-left: 2%;
    margin-left: 0;
}

/* Reduce the size of number images (/detector/trigger-daq) */
.img-nb {
    max-width: 90px !important;
}

/* Align stat elements on the detector page */
.stat > * {
    display: inline-block;
    margin-left: 1%;
    width: 23%;
    height: 240px;
    border-radius: 4%;
    vertical-align: bottom;
    background-color: #f5f5f5
}

.img-stat {
    padding-top: 30px;
    height: 120px;
}

@media screen and (max-width: 970px) {
    .stat > * {
        width: 80%;
        display: block;
        margin-left: 10%;
        margin-bottom: 5%;
    }
}

/* Styling of the different button over the detector image */
.btn-detector {
    display: inline-block;
    background-color: #0b80c3;
    padding-left: 6px;
    padding-right: 4px;
    padding-top: 3px;
    padding-bottom: 1px;
    border-radius: .25rem;
    transition: unset !important;
}

#wrapper-img-detector {
    position: relative;
}

.glyphicon-plus {
    color: #ffffff;
}

#button-inner-detector {
    position: absolute;
    top: 44%;
    left: 50%;
}

#button-calorimeter {
    position: absolute;
    top: 36%;
    left: 60%;
}

#button-muon-spectrometer {
    position: absolute;
    top: 35%;
    left: 30%;
}

#button-magnet {
    position: absolute;
    top: 40%;
    left: 75%;
}

@media screen and (max-width: 800px) {
    #button-calorimeter{
        left: 60%;
        top: 29%;
    }
    #button-inner-detector{
        left: 45%;
        top: 40%;
    }
}

/* Styling of the labels */
.label-component {
    background-color: #0B80C3;
    height: 35px;
    width: 150px;
    text-align: center;
    border: solid #0B80C3 2px;
    position: absolute;
    border-radius: 5px;
}

.arrow-label {
    position: absolute;
    content: " ";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #0B80C3 transparent;
    left: 45%;
}

.wrapper-label {
    position: relative;
}

.wrapper-label p {
    color: white;
    margin-top: 2% !important;
    font-size: 14px !important;
}

.wrapper-label p a {
    color: white !important;
    text-decoration: none !important;
}

.wrapper-label p a:hover {
    color: #063f60 !important;
}

/* Position the different labels on the detector */
#label-inner-detector {
    top: 52%;
    left: 45%;
}

#label-inner-detector .arrow-label {
    bottom: 100%;
}

#label-calorimeter {
    top: 28%;
    left: 55%;
}

#label-calorimeter .arrow-label {
    transform: rotate(-180deg);
    top: 100%;
}

#label-muon-spectrometer {
    top: 43%;
    left: 25%;
}

#label-muon-spectrometer .arrow-label {
    bottom: 100%;
}

#label-magnet {
    top: 48%;
    left: 70%;
}

#label-magnet .arrow-label  {
    bottom: 100%;
}

@media screen and (min-width: 970px) and (max-width: 1150px) {
    #label-muon-spectrometer  {
        top: 45%;
        left: 24%;
    }

    #label-inner-detector {
        top: 54%;
        left: 44%;
    }

    #label-calorimeter {
        top: 24%;
        left: 54%;
    }

    #label-magnet {
        top: 50%;
        left: 69%;
    }
}

/* Remove the labels for the mobile version */
@media screen and (max-width: 970px) {
    .label-component {
        display: none;
    }
}
