@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100&display=swap');

.dropbtn {
    margin-top: 10px;
    background: #adb9d4;
    color: #000000;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    border-radius: 10px;
    position: absolute;
    align-self: center;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background: #8d99b8;

}

.mainPlaceHolder {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 90%;
    width: 90%;
    max-height: 90%;
    max-width: 90%;
    align-self: center;
}

.header {
    font-size: 35px;
}

.graphHeader {
    font-size: 18px;
    color: white;
    font-family: Inter;
}

.graphPlaceHolder {
    border-radius: 10px;
    background: #E3E7F1;
    height: 80%;
    width: 90%;
}

.contentPlaceHolder {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    height: 100%;
    width: 100%;
    margin-top: -25px;
}

.graphAndButtons {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.graph {
    background: #52688F;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    padding: 10px;
    height: 90%;
    align-self: center;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.animationContainer {
    position: absolute;
    width: 17.2%;
    margin-top: -4%;
}

.widgets {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: 25%;
    height: 90%;
    gap: 20px;
    margin-bottom: 2%;
}

.widget {
    color: white;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    display: flex;
    flex-direction: column;
    height: 33%;
    min-height: 33%;
    background: #52688F;
    border-radius: 8px;
    align-items: center;

}

.weatherImg {
    background: #9BACCF;
    padding: 10px;
    width: 50px;
    height: 50px;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.weather {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.location {
    font-weight: 1000;
    font-family: Inter;
    font-size: 18px;
    align-self: center;
    color: #ffffff;
}

.weatherData {
    display: flex;
    flex-direction: row;
    margin-top: -12%;
    gap: 120px;
    color: white;
}


.temperature {
    font-size: 20px;
    font-family: Inter;
    font-weight: bold;
    color: white;
}

#prog-bar-cont {
    background: gainsboro;
    width: 75vh;
    height: 2.5em;
    padding: 0.5em;
    position: relative;
    top: 50%;
    left: 50%;
    margin-top: 5px;
    transform: translateX(-50%) translateY(-50%);
    border-radius: 50px;
    box-sizing: border-box;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.75) inset, 0 0 4px 0 rgba(0, 0, 0, 0.5);
}

#prog-bar-cont #prog-bar {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 1px 3px rgba(255, 255, 255, 0.75) inset;
    background: transparent;
}

#prog-bar-cont #prog-bar:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset, 0 0 5px 2px rgba(255, 255, 255, 0.8) inset;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

#prog-bar-cont #prog-bar:after {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    width: 96%;
    left: 2%;
    border-radius: 20px;
    height: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 30%, transparent 120%);
}

#prog-bar-cont #prog-bar #background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(-90deg, green, #70dc23, yellow, orange, #ff1076);
    clip-path: inset(0 100% 0 0);
    transition: all 3s;
}

#prog-bar-cont #prog-bar #background:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, #000 10px, #000 20px);
    opacity: 0.75;
    mix-blend-mode: overlay;
    border-radius: 50px;
}

.overallSatisfaction {
    margin-top: -2%;
    margin-right: 20vh;
    align-self: center;
    position: relative;
}

.dateTime {
    align-self: center;
    height: 100%;
    width: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10%;
    margin-bottom: 20%;
}

#errorMessage {
    position: absolute;
    z-index: 99;
    font-size: 40px;
    align-self: center;
    text-align: center;
    color: red;
    margin-left: 5%;
    padding:20px;
    background-color: white;
    display: none;
    border-radius: 10px;
}

.date {
    font-size: 30px;
}

.time {
    margin-top: -20px;
}

.field {
    font-family: Inter;
    font-weight: 800;
    z-index: 99;
    text-shadow: 1px 5px 25px rgba(128, 128, 128, 0.74);
    margin-top: -10px;
}

.widgetHeader {
    font-family: Inter;
    margin-bottom: 2px;
}

/*COMPASS PART*/
/*CREDIT: https://codepen.io/xixao/pen/OPovyN?editors=1100 */
/*STYLE CHANGED */
.compass {
    display: block;
    width: 55px;
    align-self: center;
    height: 55px;
    border-radius: 100%;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    position: relative;
    font-weight: bold;
    background: #ffffff;
    font-family: 'Dosis';
    color: #000000;
}

.compass:before {
    font-weight: bold;
    position: absolute;
    text-align: center;
    width: 100%;
    content: "N";
    color: red;
    font-size: 14px;
    font-family: inter;
    top: 2px;
}

.direction {
    height: 100%;
    width: 100%;
    border-radius: 100%;
}

.windSpeed {
    text-align: center;
    position: relative;
    font-family: Inter;
    top: 15%;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 12px;
}

.arrow {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
}

.arrow:after {
    content: "";
    width: 0;
    height: 0;
    color: red;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid red;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -5px;
    z-index: 99;
}

.arrow.nne {
    transform: rotate(22.5deg);
}

.arrow.ne {
    transform: rotate(45deg);
}

.arrow.ene {
    transform: rotate(67.5deg);
}

.arrow.e {
    transform: rotate(90deg);
}

.arrow.ese {
    transform: rotate(112.5deg);
}

.arrow.se {
    transform: rotate(135deg);
}

.arrow.sse {
    transform: rotate(157.5deg);
}

.arrow.s {
    transform: rotate(180deg);
}

.arrow.ssw {
    transform: rotate(202.5deg);
}

.arrow.sw {
    transform: rotate(-135deg);
}

.arrow.wsw {
    transform: rotate(-114.5deg);
}

.arrow.w {
    transform: rotate(-90deg);
}

.arrow.wnw {
    transform: rotate(-69.5deg);
}

.arrow.nw {
    transform: rotate(-45deg);
}

.arrow.nnw {
    transform: rotate(-24.5deg);
}
