@import url("global.css");

*{
    margin: 0;
    padding: 0;
}

body{
    background-color: rgb(255, 255, 255);
    width: 100vw;
    overflow-x: hidden;
}

.header{
    width:100vw;
    height: 70vh;
    overflow: hidden;
    position: relative;
    background-size:cover;
    background-position: bottom;
}

#title-text{
    width: 100%;
    padding-top: 5rem;
}

#title-text h1{
    text-align: center;
}

#vid-container{
    width: fit-content;
    margin: 4rem 0 0 auto;
}

video {
    margin-top: .4rem;
    width: 100vw;
}


.bar{
    width: 0.35%;
    height: 25%;
    background-color: black;
    position: absolute;
    top: 70%;
    left: 5%;
    z-index: 1;
}

.heading{
    font-size: 30px;
    z-index: 1;
    position: absolute;
    top: 78%;
    left: 7%;
}

input{
    box-shadow: 2px 2px 7px #00000050;
    border: none;
    padding: .4rem;
    border-radius: .1rem;
    padding-left:7px ;
}

.input-row{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

.input-row2{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

#inputs-section{
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 4vw 5vw;
    flex-wrap: wrap;
}

#results-section p{
    padding: 1rem 0;
}

h4{
    padding: 1rem 0 .2rem 0;
}

.content{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#calculate-section{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

#calculate-section button{
    border: none;
    background-color: var(--buttonstock);
    color: white;
    width: 120px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: .2s ease-in-out;
}

#calculate-section button:hover{
    background-color: var(--buttonstockhover);
}

#results-section {
    margin-top: 10%;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 7%;
    width: 80%;
    padding: 20px;
    background-color: #EEF1F7;
    border-radius: 15px;
    box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.2);
    
}

#results-section h2 {
    color: #333333;
}

#results-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

#results-table {
    width: 60%;
    border-collapse: collapse;
}

#results-table th,
#results-table td {
    padding: 8px;
    border: 1px solid #AAAAAA;
}

#graph-canvas {
    width: 35%;
    border: 1px solid #AAAAAA;
}


@media(width < 930px) {
    .conversion tr{
        display: block;
        float: left;
    }
    .conversion td{
        display: block;
    }

    #results-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-top: 20px;
    }

    #graph-canvas {
        width: 90%;
        border: 1px solid #AAAAAA;
    }

    video {
        margin-top: 0rem;
    }
}
