/*
-----------------------------------------------------
STYLESHEET FOR GREENHOUSE VEGETABLES
-----------------------------------------------------

This stylesheet is a bit of a mess
-----------------------------------------------------
*/

/*-----------------------------------------------------*/
/* TYPEFACE*/
/*-----------------------------------------------------*/

@font-face {
    font-family: "Instrument Serif";
    src: url("./InstrumentSerif-Regular.ttf");

}

/*-----------------------------------------------------*/
/* BASIC ELEMENTS */
/*-----------------------------------------------------*/

body {
    position: fixed;
    font-family: "Instrument Serif";
    font-size: 18px;
    background-color: rgb(239, 239, 239);
    transition: 500ms;
}

h1 {
    font-size: 60px;
    padding-left: 50px;
}

h2 {
    font-size: 30px;
}

svg text {
    font-family: "Instrument Serif";
}

button {
    display: block;
    margin-top: 50px;
    appearance: none;
    padding: 10px;
    border: 2px solid black;
    background-color: white;
    color: black;
    font-family: "Instrument Serif";
    font-size: 16px;
    cursor: pointer;
    transition: 200ms;
}
  
button:hover {
    background-color: rgb(0,255,0);
}

select {
    display: block;
    margin-top: 50px;
    appearance: none;
    padding: 10px;
    border: 2px solid black;
    background-color: white;
    color: black;
    font-family: "Instrument Serif";
    font-size: 16px;
    cursor: pointer;
    width: 200px;
    transition: 200ms;
}
  
select:hover {
    background-color: rgb(0,255,0);
}

/*-----------------------------------------------------*/
/* SPECIFIC CONTAINERS */
/*-----------------------------------------------------*/

#leftContainer {
    position: fixed;
    top: 0;
    left: 2%;
    transition: 600ms;
}

#rightContainer {
    position: fixed;
    top: 0;
    right: 2%;
    transition: 600ms;
}

#leftContainer.centered {
    transform: translate(45%, 0);
}

#rightContainer.hiddenMove {
    transform: translate(300%, 0);
}

#svg1 {
    margin-top: 170px;
    z-index: -2;
}

#svg2 {
    margin-top: 170px;
    z-index: -1;
}

#svgBG {
    position: fixed;
    right: 0;
    top: 0;
    z-index: -3;
    transition: 600ms;
}

#svgBG.hiddenMove {
    position: fixed;
    right: -100%;
}

.backgroundRect {
    fill: black;
}

#layerHeader {
    color: rgb(239, 239, 239);
    position: absolute;
    top: 6%;
}

#closeButton {
    position: absolute;
    top: 3%;
    right: 1%; 
}

.individualChart {
    stroke: rgb(0,255,0);
    fill: rgb(0, 176, 0);
    stroke-width: 2;
}

.individualTempChart {
    stroke: rgb(255, 0, 0);
    fill: transparent;
    stroke-width: 2;
}

#vegXAxis text,
#vegYAxis text,
#tempYAxis text {
    fill: rgba(255, 255, 255, 0.644);
}

#vegXAxis path,
#vegYAxis path,
#vegXAxis line,
#vegYAxis line,
#tempYAxis path,
#tempYAxis line {
    stroke-width: 1px;
    stroke: rgba(255, 255, 255, 0.212);
}

.yearLine {
    stroke-width: 1px;
    stroke: rgba(255, 255, 255, 0.212);
}

.tempDescription {
    color: rgb(255, 0, 0);
    margin-left: 45px;
    font-size: 13px;
}

.tempButton {
    background-color: black;
    color: rgba(255, 255, 255, 0.337);
    border-color: rgba(255, 255, 255, 0.277);
}

.tempButton:hover {
    background-color: black;
    color: rgb(255, 0, 0);
    border-color: rgb(255, 0, 0);
}

.tempButton.selected {
    background-color: red;
    color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
}

.tempButton.selected:hover {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 0, 0);
    border-color: rgb(255, 0, 0);
}

#dropDown {
    position: absolute;
    left: 0;
    bottom: 0;
}

.hidden {
    display: none;
}

#dropDownLabel {
    position: absolute;
    left: 0;
    bottom: 50px;
}
  