Physics behind Thermos flask

Who doesn’t like a hot cup of coffee or tea on a cold winter evening or having a chilling cold drink on hot summer days? But, the laws of nature