﻿body {
}
:root {
    --white: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: white;
    font-family: Helvetica, Arial, sans-serif;
    background-color: #00274C;
}

.container {
    flex: 80;
}



header nav ul li a {
    margin: 0 30px;
    font-weight: lighter;
    font-size: 1.3vw;
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid;
    padding-bottom: 2px;
}

.stock {
    height: 400px;
    background-image: url("../Images/stock.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    position: relative;
}

.profilepic {
    border: 3px var(--white) solid;
    border-radius:50%;
    min-height: 100px;
    max-height: 100px;
    max-width: 100px;
}

.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 50px;
    width: 90%;
    align-items: center;
}


header {
    background-color: #00274C;
    color: white;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 5px double white
}


header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.section-title {
    font-size: 35px;
    font-family: cursive;
    color: #024e76;
}


.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 15px;
    width: 80%;
}






.contact {
    flex: 150;
}






.card {
    position: relative;
    overflow: hidden;
    
    height: 100%;
    margin: 50px auto;
    margin-right: 25px;
    background-color: #00274C;
    border: 15px solid white;
    border-radius: 3px;
    box-shadow: 0 0 10px #2a264f;
}


.card .img1 {
    top: 0;
    left: 0;
    width: 100%;
    background-size: 310px 440px;
    background-position: left top;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}
.card .img2 {
   
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 35px;
    color: white;
    background-size: 310px 440px;
    transition: all 0.5s ease-in-out;
    margin: 0 auto;
}


    .card .text {
        position: absolute;
        bottom: 80px;
        height: 120px;
        left: 75px;
        padding: 15px 10px;
        text-align: center;
        font-size: 17px;
        color: #fff;
        transform: rotate(90deg);
        transform-origin: 0 100px;
        opacity: 0;
        transition: all 0.5s ease;
    }


    .card:hover .img1 {
        transform: rotate(10deg) scale(1.3) translate(0px, 150);
        transform-origin: 300px 300px;
        opacity: 0.5;
    }

    .card:hover .img2 {
        transform: rotate(90deg) translate(0px, 150px);
        transform-origin: -20px 200px;
    }

    .card:hover .text {
        opacity: 0.8;
        transform: rotate(0deg);
    }

@media screen and (max-width: 980px) {
header {
padding-bottom: 10px;
justify-content: center;
}

header h1 {
    width: 100%;
    text-align: center;
}

header nav ul {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    flex-direction: row;
    line-height: 1.5;
}

    header nav ul li a {
        font-size: 16px;
        font-weight: bold;
    }

.stock {
background-size: cover;
}

.profilepic {
border: 3px var(--white) solid;
border-radius: 50%;
min-height: 100px;
max-height: 100px;
max-width: 100px;
}




    .card .text {
        position: absolute;
        bottom: 80px;
        height: 120px;
        left: 75px;
        padding: 15px 10px;
        text-align: center;
        font-size: 17px;
        color: #fff;
        transform: rotate(90deg);
        transform-origin: 0 100px;
        opacity: 0;
        transition: all 0.5s ease;
    }


    .card:hover .img1 {
        transform: rotate(10deg) scale(1.3) translate(0px, 150);
        transform-origin: 300px 300px;
        opacity: 0.5;
    }

    .card:hover .img2 {
        transform: rotate(90deg) translate(0px, 150px);
        transform-origin: -20px 200px;
    }

    .card:hover .text {
        opacity: 0.8;
        transform: rotate(0deg);
    }
}